Skip to content

Commit a2af369

Browse files
committed
hardfork test: add CI job for advanced fork method
1 parent a740a74 commit a2af369

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
let ContainerImages = ../../Constants/ContainerImages.dhall
2+
3+
let Cmd = ../../Lib/Cmds.dhall
4+
5+
let S = ../../Lib/SelectFiles.dhall
6+
7+
let Pipeline = ../../Pipeline/Dsl.dhall
8+
9+
let PipelineTag = ../../Pipeline/Tag.dhall
10+
11+
let PipelineScope = ../../Pipeline/Scope.dhall
12+
13+
let JobSpec = ../../Pipeline/JobSpec.dhall
14+
15+
let Command = ../../Command/Base.dhall
16+
17+
let Docker = ../../Command/Docker/Type.dhall
18+
19+
let Size = ../../Command/Size.dhall
20+
21+
let B = ../../External/Buildkite.dhall
22+
23+
let B/SoftFail = B.definitions/commandStep/properties/soft_fail/Type
24+
25+
in Pipeline.build
26+
Pipeline.Config::{
27+
, spec = JobSpec::{
28+
, dirtyWhen =
29+
[ S.strictlyStart (S.contains "src")
30+
, S.exactly "buildkite/src/Jobs/Test/HardForkTest" "dhall"
31+
, S.strictlyStart (S.contains "scripts/hardfork")
32+
, S.strictlyStart (S.contains "nix")
33+
, S.exactly "flake" "nix"
34+
, S.exactly "flake" "lock"
35+
, S.exactly "default" "nix"
36+
]
37+
, path = "Test"
38+
, name = "HardForkTestAdvanced"
39+
, scope = PipelineScope.AllButPullRequest
40+
, tags =
41+
[ PipelineTag.Type.Long
42+
, PipelineTag.Type.Test
43+
, PipelineTag.Type.Stable
44+
, PipelineTag.Type.Hardfork
45+
]
46+
}
47+
, steps =
48+
[ Command.build
49+
Command.Config::{
50+
, commands =
51+
[ Cmd.runInDocker
52+
Cmd.Docker::{
53+
, image = ContainerImages.nixos
54+
, privileged = True
55+
, useBash = False
56+
}
57+
"./scripts/hardfork/build-and-test.sh --fork-from origin/master --fork-method advanced"
58+
]
59+
, label = "hard fork test - advanced mode"
60+
, key = "hard-fork-test-advanced"
61+
, target = Size.Integration
62+
, soft_fail = Some (B/SoftFail.Boolean False)
63+
, docker = None Docker.Type
64+
, timeout_in_minutes = Some +420
65+
}
66+
]
67+
}

buildkite/src/Jobs/Test/HardForkTest.dhall renamed to buildkite/src/Jobs/Test/HardForkTestLegacy.dhall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ in Pipeline.build
3535
, S.exactly "default" "nix"
3636
]
3737
, path = "Test"
38-
, name = "HardForkTest"
38+
, name = "HardForkTestLegacy"
3939
, scope = PipelineScope.AllButPullRequest
4040
, tags =
4141
[ PipelineTag.Type.Long

0 commit comments

Comments
 (0)