Fix the API test
[?]
Aug 12, 2015, 1:40 PM
Q3VTDUSQ75JD5L55VWQV6MGAS6IC4AWGSADL2ISMX5E7R3LBVBHACDependencies
- [2]
5QYMALGUFix Perl error in tests.api - [3]
WQ2VQ7H3Use hydra-module.nix in the tests - [4]
YI3BZG5NCleanup Jobset serialization - [5]
MQYHIUEECleanup eval serialization - [6]
LZVO64YGMerge in the first bits of the API work - [7]
SYLVCTT6Start api cleanup with the User model - [8]
ZIIXICG7Make the outputs' outpaths available via the Build JSON API - [9]
2DGIP6L4Cleanup build serialization - [10]
4VYSDP4IAdd eager fetching of relations and enable that for jobset->jobsetinputs - [11]
KYSBJAYNAllow dashes in jobset input names - [12]
NP7IOJ4QFlesh out the API a bit - [*]
T4LLYESZ* Nix expression for building Hydra.
Change contents
- edit in release.nix at line 16
virtualisation.writableStore = true; - replacement in release.nix at line 220
# Start the web interface with some weird settings.$machine->succeed("systemctl stop hydra-server hydra-evaluator hydra-queue-runner");$machine->mustSucceed("su - hydra -c 'NIX_STORE_DIR=/tmp/nix/store NIX_LOG_DIR=/tmp/nix/var/log/nix NIX_STATE_DIR=/tmp/nix/var/nix NIX_REMOTE= DBIC_TRACE=1 hydra-server -d' >&2 &");$machine->succeed("systemctl stop hydra-evaluator hydra-queue-runner");$machine->waitForJob("hydra-server"); - replacement in tests/api-test.pl at line 52
system("NIX_STORE_DIR=/tmp/nix/store NIX_LOG_DIR=/tmp/nix/var/log/nix NIX_STATE_DIR=/tmp/nix/var/nix NIX_REMOTE= hydra-evaluator sample default");system("hydra-evaluator sample default"); - replacement in tests/api-test.pl at line 59
# Ugh, cached for 30ssleep 30;system("echo >> /run/jobset/default.nix; NIX_STORE_DIR=/tmp/nix/store NIX_LOG_DIR=/tmp/nix/var/log/nix NIX_STATE_DIR=/tmp/nix/var/nix hydra-evaluator sample default");system("echo >> /run/jobset/default.nix; hydra-evaluator sample default"); - replacement in tests/api-test.pl at line 66
ok($build->{buildoutputs}->{out}->{path} =~ /^\/tmp\/nix\/store\/[a-zA-Z0-9]{32}-job$/, "The build's outpath is in the nix store and named 'job'");[3.39798]ok($build->{buildoutputs}->{out}->{path} =~ /^\/nix\/store\/[a-zA-Z0-9]{32}-job$/, "The build's outpath is in the Nix store and named 'job'");