Skip to content

Commit 0e178bc

Browse files
committed
[Bugfix] Make integration tests run after unit tests and timeout after 60 minutes
1 parent aafb637 commit 0e178bc

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.buildkite/pipeline.nix

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ in
8383
};
8484

8585
test-unit = commonAttrs // {
86-
dependsOn = [ compile ];
86+
dependsOn = [ compile test-bytes test-crypto test-rlp ];
8787
label = "unit tests";
8888
command = ''
8989
nix-shell --run '$SBT coverage test'
@@ -109,7 +109,7 @@ in
109109
};
110110

111111
test-evm = commonAttrs // {
112-
dependsOn = [ compile ];
112+
dependsOn = [ compile test-unit ];
113113
label = "EVM tests";
114114
command = ''
115115
nix-shell --run '$SBT coverage evm:test'
@@ -121,17 +121,8 @@ in
121121
];
122122
};
123123

124-
test-integration = commonAttrs // {
125-
dependsOn = [ compile ];
126-
label = "integration tests";
127-
command = ''
128-
nix-shell --run '$SBT coverageOff it:test'
129-
'';
130-
artifactPaths = [ "target/test-reports/**/*" ];
131-
};
132-
133124
test-ets = commonAttrs // {
134-
dependsOn = [ compile ];
125+
dependsOn = [ compile test-unit ];
135126
label = "ETS";
136127
command = ''
137128
nix-shell --run './test-ets.sh'
@@ -145,6 +136,16 @@ in
145136
];
146137
};
147138

139+
test-integration = commonAttrs // {
140+
dependsOn = [ compile test-ets test-evm test-unit ];
141+
label = "integration tests";
142+
command = ''
143+
nix-shell --run '$SBT coverageOff it:test'
144+
'';
145+
artifactPaths = [ "target/test-reports/**/*" ];
146+
timeoutInMinutes = 60;
147+
};
148+
148149
coverageReport = commonAttrs // {
149150
dependsOn = [ test-unit test-evm ];
150151
label = "coverage report";
@@ -154,7 +155,7 @@ in
154155
};
155156

156157
additional = commonAttrs // {
157-
dependsOn = [ compile ];
158+
dependsOn = [ compile test-integration ];
158159
label = "additional compilation & dist";
159160
command = ''
160161
nix-shell --run '$SBT benchmark:compile dist'

.buildkite/shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ with pkgs;
2121
mkShell {
2222
nativeBuildInputs = [ sbt solc lllc jdk8 protoc-wrapper retesteth netcat-gnu ];
2323
# SBT = "sbt -v -mem 2048 -J-Xmx4g -Dsbt.ivy.home=/cache/ivy2 -Dsbt.boot.directory=/cache/sbt -Dmaven.repo.local=/cache/maven -Dnix=true";
24-
SBT = "sbt -v -mem 2048 -J-Xmx4g -Dnix=true";
24+
SBT = "sbt -v -mem 2048 -J-Xmx3584m -Dnix=true";
2525
}

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ lazy val node = {
197197
libraryDependencies in Compile
198198
),
199199
buildInfoPackage := "io.iohk.ethereum.utils",
200-
fork in Test := true,
200+
fork in Test := false,
201201
buildInfoOptions in Compile += BuildInfoOption.ToMap
202202
)
203203
.settings(commonSettings("mantis"): _*)

0 commit comments

Comments
 (0)