Skip to content

[Bugfix] Make integration tests run after unit tests and timeout after 60 minutes #997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .buildkite/pipeline.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,6 @@ in
];
};

test-integration = commonAttrs // {
dependsOn = [ compile ];
label = "integration tests";
command = ''
nix-shell --run '$SBT coverageOff it:test'
'';
artifactPaths = [ "target/test-reports/**/*" ];
};

test-ets = commonAttrs // {
dependsOn = [ compile ];
label = "ETS";
Expand All @@ -145,6 +136,16 @@ in
];
};

test-integration = commonAttrs // {
dependsOn = [ compile ];
label = "integration tests";
command = ''
nix-shell --run '$SBT coverageOff it:test'
'';
artifactPaths = [ "target/test-reports/**/*" ];
timeoutInMinutes = 60;
};

coverageReport = commonAttrs // {
dependsOn = [ test-unit test-evm ];
label = "coverage report";
Expand All @@ -154,7 +155,7 @@ in
};

additional = commonAttrs // {
dependsOn = [ compile ];
dependsOn = [ compile test-integration ];
label = "additional compilation & dist";
command = ''
nix-shell --run '$SBT benchmark:compile dist'
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ with pkgs;
mkShell {
nativeBuildInputs = [ sbt solc lllc jdk8 protoc-wrapper retesteth netcat-gnu ];
# SBT = "sbt -v -mem 2048 -J-Xmx4g -Dsbt.ivy.home=/cache/ivy2 -Dsbt.boot.directory=/cache/sbt -Dmaven.repo.local=/cache/maven -Dnix=true";
SBT = "sbt -v -mem 2048 -J-Xmx4g -Dnix=true";
SBT = "sbt -v -mem 2048 -J-Xmx6g -Dnix=true";
}
2 changes: 1 addition & 1 deletion src/universal/bin/eckeygen
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
./bin/mantis -- eckeygen "$@"
exec ./bin/mantis -- eckeygen "$@"
2 changes: 1 addition & 1 deletion src/universal/bin/faucet-server
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
./bin/mantis -Dconfig.file=./conf/faucet.conf "$@" -- faucet
exec ./bin/mantis -Dconfig.file=./conf/faucet.conf "$@" -- faucet
2 changes: 1 addition & 1 deletion src/universal/bin/mantis-launcher
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ elif [ -z "$1" ]; then
CHAIN_PARAM="-Dconfig.file=./conf/etc.conf"
fi

./bin/mantis ${CHAIN_PARAM:+"$CHAIN_PARAM"} "$@"
exec ./bin/mantis ${CHAIN_PARAM:+"$CHAIN_PARAM"} "$@"
2 changes: 1 addition & 1 deletion src/universal/bin/mantis-vm
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..

./bin/mantis vm-server "$@"
exec ./bin/mantis vm-server "$@"
2 changes: 1 addition & 1 deletion src/universal/bin/signatureValidator
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

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