From d08c07b68d0e88d863f597fe5e9ed72d84229ab7 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Wed, 4 May 2011 13:26:54 +0000 Subject: initial import --- Report/Box/ignore_05_CauldronISOBuild.php | 177 ++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 Report/Box/ignore_05_CauldronISOBuild.php (limited to 'Report/Box/ignore_05_CauldronISOBuild.php') diff --git a/Report/Box/ignore_05_CauldronISOBuild.php b/Report/Box/ignore_05_CauldronISOBuild.php new file mode 100644 index 0000000..254dcfb --- /dev/null +++ b/Report/Box/ignore_05_CauldronISOBuild.php @@ -0,0 +1,177 @@ + + * @license MIT License, see LICENSE.txt + * @link http://svnweb.mageia.org/svn/soft/dashboard/ +*/ + +/** +*/ +class Report_Box_CauldronISOBuild extends Report_Box +{ + /** + */ + var $title = "Cauldron ISO Build/QA/Pub"; + + /** + */ + function _get_var_definitions() { + return array( + ); + } + + /** + */ + function _get_links() + { + return 'View bcd site'; + } + + function render() + { + $obj = array( + array( + 'ts' => gmdate('c'), + 'type' => 'info', + 'value' => 'Built packages tree is not ready – no build planned.' + ), + array( + 'ts' => gmdate('c') - 5, + 'type' => 'info', + 'value' => 'Next build 1a1 should start in about 12 hours (at 2011-03-15 20:23:33), with a new context.' + ), + array( + 'ts' => gmdate('c') - 10, + 'type' => 'report', + 'build' => '1a0', + 'contextDiffLink' => '', + 'started_at' => '2011-03-14 23:03:15', + 'products' => array( + array( + 'name' => 'DVD i586', + 'build' => array(true, 'url'), + 'tests' => array(false, 'url'), + 'iso' => 'cauldron-2-dvd-i586-1a0-qafail.iso' + ), + array( + 'name' => 'DVD x86_64', + 'build' => array(true, 'url'), + 'tests' => array(true, 'url'), + 'iso' => 'cauldron-2-dvd-i586-1a0-qapass.iso' + ), + array( + 'name' => 'CD dual', + 'build' => array(false, 'url'), + 'tests' => null, + 'iso' => null + ), + array( + 'name' => 'netinstall', + 'build' => 'pending' + ) + ) + ) + ); + $values = array(); + foreach ($obj as $item) + { + if ($item['type'] == 'info') { + $values[] = array( + 't' => sprintf('

%s

', $item['value']), + 'c' => null + ); + } + elseif ($item['type'] == 'report') { + $lis = ''; + foreach ($item['products'] as $p) { + $st = $item['build'][0] ? 'ok' : 'failed'; + $lis .= <<{$p['name']}, + build {$st} (log), + tests {$st} (log), + {$p['iso']} +T; + } + $text = <<Build {$item['build']} + (context diff w/ build {$item['prev_build']}) + – {$item['ts']} +
    {$lis}
+T; + $values[] = array( + 't' => $text, + 'c' => null + ); + } + } + + return array( + 'title' => $this->title, + 'status' => 0, + 'values' => $values, + 'links' => $links + ); + } +/* +
  • DVD i586, + build ok (log), + tests failed (log), + cauldron-2-dvd-i586-1a0-qafail.iso
  • +
  • DVD x86_64, + build ok (log), + tests ok (log), + cauldron-2-dvd-i586-1a0-ok.iso
  • +
  • CD dual, + build failed (log)
  • +
  • building netinstall image...
  • + +
  • Build 199 + (context diff w/ build 198) + – 2011-03-12 23:03:15

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ItemBuildTestsDownload
    DVD i586OK (log)OK (log)cauldron-2-1a0-dvd-i586-ok.iso
    DVD x86_64OK (log)FAILED (log)cauldron-2-1a0-dvd-x86_64-qafail.iso
    CD dualFAILED (log)
    netinstallOK (log)OK (log)cauldron-2-1a0-netinstall-ok.iso
    + +
  • + +*/ +} -- cgit v1.2.1