3 <link rel="Shortcut Icon" href="//www.pld-linux.org/favicon.ico"/>
4 <title>PLD QA Reports</title>
5 <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="//srcbuilder.pld-linux.org/th/style.css">
7 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
10 $('#q').on('change', function(e) {
13 var v = o[o.selectedIndex].value;
14 location.href = "?q=" + v;
21 $report = isset($_GET['q']) ? basename($_GET['q']) : null;
23 "main" => "Main deps x86_64",
24 "main-ready" => "Main ready deps x86_64",
25 "main-ready-test" => "Main+ready+test deps x86_64",
27 "main-i686" => "Main deps i686",
28 "main-ready-i686" => "Main ready deps i686",
29 "main-ready-test-i686" => "Main+ready+test deps i686",
31 "main-x32" => "Main deps x32",
32 "main-ready-x32" => "Main ready deps x32",
33 "main-ready-test-x32" => "Main+ready+test deps x32",
35 "freshness" => "GIT vs FTP freshness",
37 "lint-PLD" => "rpmlint: main",
38 "lint-test" => "rpmlint: test",
39 "lint-ready" => "rpmlint: ready",
42 echo "Select report:";
43 echo "<select id=q name=q>\n";
44 foreach ($reports as $q => $title) {
45 printf("<option value=%s %s>%s</option>\n", $q, $q == $report ? 'selected' :'', $title);
49 if (isset($reports[$report])) {
50 echo "<a href=$report.txt>raw</a><br/>\n";
51 $file = "$report.txt";
52 $giturl = 'http://git.pld-linux.org/gitweb.cgi?p=packages/%1$s.git;f=%1$s.spec;h=HEAD;a=shortlog';
54 foreach (file($file) as $line) {
55 $line = preg_replace_callback('/^(?P<prefix>error:|GIT:)\s*\[(?P<spec>[^]]+)\]\s*(?P<msg>.+)$/', function($m) use ($giturl) {
56 $package = basename($m['spec'], '.spec');
57 $url = sprintf($giturl, $package);
58 return sprintf('<li><font color=red>%s</font> [<a href="%s">%s</a>] %s', $m['prefix'], $url, $m['spec'], $m['msg']);
60 echo $line, "<br/>\n";