Skip to content

Commit 850ed15

Browse files
committed
add instrumented suffix when using archive related tests
1 parent 80d1a33 commit 850ed15

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

buildkite/src/Command/PatchArchiveTest.dhall

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
let Artifacts = ../Constants/Artifacts.dhall
22

3+
let BuildFlags = ../Constants/BuildFlags.dhall
4+
35
let Command = ./Base.dhall
46

57
let Size = ./Size.dhall
@@ -21,6 +23,7 @@ in { step =
2123
( Artifacts.fullDockerTag
2224
Artifacts.Tag::{
2325
, artifact = Artifacts.Type.FunctionalTestSuite
26+
, buildFlags = BuildFlags.Type.Instrumented
2427
}
2528
)
2629
"./scripts/patch-archive-test.sh && buildkite/scripts/upload-partial-coverage-data.sh ${key}"

buildkite/src/Command/ReplayerTest.dhall

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
let Artifacts = ../Constants/Artifacts.dhall
22

3+
let BuildFlags = ../Constants/BuildFlags.dhall
4+
35
let Command = ./Base.dhall
46

57
let Size = ./Size.dhall
@@ -19,6 +21,7 @@ in { step =
1921
( Artifacts.fullDockerTag
2022
Artifacts.Tag::{
2123
, artifact = Artifacts.Type.FunctionalTestSuite
24+
, buildFlags = BuildFlags.Type.Instrumented
2225
}
2326
)
2427
"./buildkite/scripts/replayer-test.sh && buildkite/scripts/upload-partial-coverage-data.sh ${key}"

buildkite/src/Constants/Artifacts.dhall

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ let Profiles = ./Profiles.dhall
66

77
let Network = ./Network.dhall
88

9+
let BuildFlags = ./BuildFlags.dhall
10+
911
let Repo = ./DockerRepo.dhall
1012

1113
let Artifact
@@ -157,12 +159,14 @@ let Tag =
157159
, version : Text
158160
, profile : Profiles.Type
159161
, network : Network.Type
162+
, buildFlags : BuildFlags.Type
160163
, remove_profile_from_name : Bool
161164
}
162165
, default =
163166
{ artifact = Artifact.Daemon
164167
, version = "\\\${MINA_DOCKER_TAG}"
165168
, profile = Profiles.Type.Devnet
169+
, buildFlags = BuildFlags.Type.None
166170
, network = Network.Type.Berkeley
167171
, remove_profile_from_name = False
168172
}
@@ -177,20 +181,28 @@ let dockerTag =
177181

178182
else "${Profiles.toLabelSegment spec.profile}"
179183

184+
let build_flags_part =
185+
merge
186+
{ None = ""
187+
, Instrumented =
188+
"${BuildFlags.toLabelSegment spec.buildFlags}"
189+
}
190+
spec.buildFlags
191+
180192
in merge
181193
{ Daemon =
182194
"${spec.version}-${Network.lowerName
183-
spec.network}${profile_part}"
195+
spec.network}${profile_part}${build_flags_part}"
184196
, DaemonHardfork =
185197
"${spec.version}-${Network.lowerName
186198
spec.network}${profile_part}"
187-
, Archive = "${spec.version}"
199+
, Archive = "${spec.version}${build_flags_part}"
188200
, LogProc = "${spec.version}"
189201
, TestExecutive = "${spec.version}"
190202
, BatchTxn = "${spec.version}"
191203
, Rosetta = "${spec.version}-${Network.lowerName spec.network}"
192204
, ZkappTestTransaction = "${spec.version}"
193-
, FunctionalTestSuite = "${spec.version}"
205+
, FunctionalTestSuite = "${spec.version}${build_flags_part}"
194206
, Toolchain = "${spec.version}"
195207
}
196208
spec.artifact

0 commit comments

Comments
 (0)