Skip to content

Commit 5e9b08a

Browse files
dzajkowskinrdxp
andauthored
[Bugfix] Make integration tests run after unit tests and timeout after 60 minutes (#997)
* [Bugfix] Make integration tests run after unit tests and timeout after 60 minutes * call exec on launcher scripts Co-authored-by: Timothy DeHerrera <[email protected]>
1 parent b5b3818 commit 5e9b08a

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed

.buildkite/pipeline.nix

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,6 @@ 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 // {
134125
dependsOn = [ compile ];
135126
label = "ETS";
@@ -145,6 +136,16 @@ in
145136
];
146137
};
147138

139+
test-integration = commonAttrs // {
140+
dependsOn = [ compile ];
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-Xmx6g -Dnix=true";
2525
}

src/universal/bin/eckeygen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
cd $DIR/..
5-
./bin/mantis -- eckeygen "$@"
5+
exec ./bin/mantis -- eckeygen "$@"

src/universal/bin/faucet-server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
cd $DIR/..
5-
./bin/mantis -Dconfig.file=./conf/faucet.conf "$@" -- faucet
5+
exec ./bin/mantis -Dconfig.file=./conf/faucet.conf "$@" -- faucet

src/universal/bin/mantis-launcher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ elif [ -z "$1" ]; then
1111
CHAIN_PARAM="-Dconfig.file=./conf/etc.conf"
1212
fi
1313

14-
./bin/mantis ${CHAIN_PARAM:+"$CHAIN_PARAM"} "$@"
14+
exec ./bin/mantis ${CHAIN_PARAM:+"$CHAIN_PARAM"} "$@"

src/universal/bin/mantis-vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
cd $DIR/..
55

6-
./bin/mantis vm-server "$@"
6+
exec ./bin/mantis vm-server "$@"

src/universal/bin/signatureValidator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
cd $DIR/..
5-
./bin/mantis -- signature-validator "$@"
5+
exec ./bin/mantis -- signature-validator "$@"

0 commit comments

Comments
 (0)