hydra: fixed and re-enabled evaluation tests

[?]
Mar 24, 2011, 1:45 PM
RBZRCTALK2SLKX6HDMBS25BRNYPK3GK364MGAVCXP3MW5CEW5TKQC

Dependencies

  • [2] 6US6LEC7 * Add a NarSize field to Hydra manifests. This allows nix-env
  • [3] FAIJDQKZ
  • [4] YL5OIJNQ disabled evaluation tests until i figure out why it fails in buildfarm and succeeds locally
  • [5] V2MRXFBH
  • [6] DO432JDJ * Build Hydra with the Nix Perl bindings.
  • [7] YQWH4POV * Simplify.
  • [8] PBJJSE3D make sure jobs/* and Setup.pm is in tarball
  • [9] Y2BFYLLK * Install the SQL schemata in $out/share/hydra/sql.
  • [10] BKOIYITR added some json responses
  • [11] 6XJH4OFL add datetime to deps
  • [12] YFPZ46YK * hydra: added variant of build input type, 'build output (same system)' to allow better continous integration in one jobset for multiple system. it makes sure that the system of the build that is passed as input for a job has the same system as the job.
  • [13] T4LLYESZ * Nix expression for building Hydra.
  • [14] SZYDW2DG hydra: added some user admin
  • [15] SBKX3YH2 cleanup
  • [16] 3MDDGGSN * Install the manual.
  • [17] YT25ZGSZ
  • [18] SAFVRDTK * Put Hydra's dependencies so that they can easily be installed in a
  • [19] DFXIN6YW * Include jquery and tablesorter in the build.
  • [20] 7RO7CINM setup environment variables for tests
  • [21] JRVI4XTV tests: Use $(builddir) instead of `pwd`.
  • [22] CXRCPDSQ * added support for twitter notification
  • [23] G2ZB6464 first test, not yet in buildprocess
  • [24] WFJ3ZPRM add tests for scm inputs
  • [25] UQ6K57MS * Include nix-prefetch-svn in the Hydra binary distribution.
  • [26] WHS5RMPO
  • [27] PVBTVPKJ nix needs env vars as absolute paths
  • [28] HX4QYOYA add first evaluations tests
  • [*] ZHBEOOUQ show evaluation errors in log of tests

Change contents

  • edit in deps.nix at line 4
    [5.22][5.0:5]()
    let
  • edit in deps.nix at line 5
    [5.23][5.6:141](),[5.141][2.0:90](),[2.90][5.231:326](),[5.90][5.231:326](),[5.231][5.231:326]()
    nixPerl = buildPerlPackage {
    name = "Nix-0.15";
    src = fetchsvn {
    url = https://svn.nixos.org/repos/nix/nix-perl/trunk;
    rev = 24774;
    sha256 = "1akj695gpnbrjlnwd1gdnnnk7ppvpp1qsinjn04az7q6hjqzbm6p";
    };
    NIX_PREFIX = nixSqlite;
    doCheck = false; # tests currently don't work
    };
    in
  • replacement in deps.nix at line 28
    [5.22][5.327:337](),[5.24][5.327:337](),[5.57][5.327:337](),[5.71][5.327:337](),[5.49][5.327:337]()
    nixPerl
    [5.71]
    [5.497]
    perlPackages.nixPerl
  • replacement in release.nix at line 76
    [5.3404][5.382:383](),[5.1830][5.382:383]()
    [5.3404]
    [5.3405]
    LOGNAME="$USER";
  • replacement in tests/Makefile.am at line 12
    [5.354][5.0:45]()
    PATH=$(abs_top_srcdir)/src/script:$$PATH \
    [5.354]
    [5.291]
    PATH=$(abs_top_srcdir)/src/script:$(abs_top_srcdir)/src/c:$$PATH \
  • replacement in tests/Makefile.am at line 21
    [5.103][4.0:45]()
    query-all-tables.pl
    # evaluation-tests.pl
    [5.103]
    [5.428]
    query-all-tables.pl \
    evaluation-tests.pl
  • replacement in tests/evaluation-tests.pl.in at line 13
    [5.969][3.826:856]()
    use Test::Simple tests => 22;
    [5.969]
    [5.998]
    use Test::Simple tests => 28;
  • edit in tests/evaluation-tests.pl.in at line 43
    [5.2278]
    [30.28]
    for my $build (queuedBuildsForJobset($jobset)) {
    ok(runBuild($build), "Build '".$build->job->name."' from jobs/basic.nix should exit with code 0");
    my $newbuild = $db->resultset('Builds')->find($build->id);
    ok($newbuild->buildresultinfo->buildstatus == 0, "Build '".$build->job->name."' from jobs/basic.nix should have buildstatus 0");
    }
  • edit in tests/evaluation-tests.pl.in at line 49
    [30.29]
    [5.1679]
    ok(evalSucceeds($jobset), "Evaluating jobs/build-output-as-input.nix for second time should exit with return code 0");
    ok(nrQueuedBuildsForJobset($jobset) == 1 , "Evaluating jobs/build-output-as-input.nix for second time after building build1 should result in 1 build in queue");
    for my $build (queuedBuildsForJobset($jobset)) {
    ok(runBuild($build), "Build '".$build->job->name."' from jobs/basic.nix should exit with code 0");
    my $newbuild = $db->resultset('Builds')->find($build->id);
    ok($newbuild->buildresultinfo->buildstatus == 0, "Build '".$build->job->name."' from jobs/basic.nix should have buildstatus 0");
    }
  • edit in tests/evaluation-tests.pl.in at line 57
    [5.1680]
    [5.2279]