mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
hydra-unstable: 2020-04-16 -> 2020-06-01
This commit is contained in:
parent
99b5c0bcbe
commit
c18016cfbf
|
@ -61,7 +61,7 @@ with pkgs.lib;
|
|||
'curl -L -s http://localhost:3000/build/1 -H "Accept: application/json" | jq .buildstatus | xargs test 0 -eq'
|
||||
)
|
||||
|
||||
out = original.succeed("su -l postgres -c 'psql -d hydra <<< \"\\d+ jobs\" -A'")
|
||||
out = original.succeed("su -l postgres -c 'psql -d hydra <<< \"\\d+ builds\" -A'")
|
||||
assert "jobset_id" not in out
|
||||
|
||||
original.succeed(
|
||||
|
@ -69,7 +69,7 @@ with pkgs.lib;
|
|||
)
|
||||
original.wait_for_unit("hydra-init.service")
|
||||
|
||||
out = original.succeed("su -l postgres -c 'psql -d hydra <<< \"\\d+ jobs\" -A'")
|
||||
out = original.succeed("su -l postgres -c 'psql -d hydra <<< \"\\d+ builds\" -A'")
|
||||
assert "jobset_id|integer|||" in out
|
||||
|
||||
original.succeed("hydra-backfill-ids")
|
||||
|
@ -79,7 +79,7 @@ with pkgs.lib;
|
|||
)
|
||||
original.wait_for_unit("hydra-init.service")
|
||||
|
||||
out = original.succeed("su -l postgres -c 'psql -d hydra <<< \"\\d+ jobs\" -A'")
|
||||
out = original.succeed("su -l postgres -c 'psql -d hydra <<< \"\\d+ builds\" -A'")
|
||||
assert "jobset_id|integer||not null|" in out
|
||||
|
||||
original.wait_until_succeeds(
|
||||
|
|
|
@ -24,14 +24,22 @@
|
|||
# so when having an older version, `pkgs.hydra-migration` should be deployed first.
|
||||
|
||||
hydra-unstable = callPackage ./common.nix {
|
||||
version = "2020-04-16";
|
||||
version = "2020-06-01";
|
||||
src = fetchFromGitHub {
|
||||
owner = "NixOS";
|
||||
repo = "hydra";
|
||||
rev = "87837f1d82904bf48e11b5641258b6be2f663c3b";
|
||||
sha256 = "1vs3lyfyafsl7wbpmycv7c3n9n2rkrswp65msb6q1iskgpvr96d5";
|
||||
rev = "750e2e618ac6d3df02c57a2cf8758bc66a27c40a";
|
||||
sha256 = "1szfzf9kw5cj6yn57gfxrffbdkdf8v3xy9914924blpn5qll31g4";
|
||||
};
|
||||
nix = nixFlakes;
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/NixOS/hydra/commit/d4822a5f4b57dff26bdbf436723a87dd62bbcf30.patch";
|
||||
sha256 = "1n6hyjz1hzvka4wi78d4wg0sg2wanrdmizqy23vmp7pmv8s3gz8w";
|
||||
})
|
||||
];
|
||||
|
||||
tests = {
|
||||
db-migration = nixosTests.hydra-db-migration.mig;
|
||||
basic = nixosTests.hydra.hydra-unstable;
|
||||
|
|
Loading…
Reference in a new issue