File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ rev: final: prev: {
33
44 mantis = final . callPackage ./mantis.nix {
55 src = ../. ;
6- depsSha256 = "sha256-FpBrDvN0iR/eEpUunUIRRo6I9pWqpMyPRybEClCqTFs =" ;
6+ depsSha256 = "sha256-0AeemKFcIU3eVGse8QQGauJeRsF7IgCLo5Yqu2FZsMs =" ;
77 } ;
88
99 mantis-hash = final . mantis . override {
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ if [ -z "$IN_NIX_SHELL" ]; then
44 export SBT_NIX=" -Dnix=true"
55fi
66
7- git submodule init;
8- git submodule update;
7+ git submodule init
8+ git submodule update
99
1010echo " booting Mantis and waiting for RPC API to be up"
1111$SBT -Dconfig.file=./src/main/resources/conf/testmode.conf run & > mantis-log.txt &
@@ -26,14 +26,19 @@ function run_and_annotate {
2626 if [[ " $exit_code " -gt " 0" ]]; then
2727 final_exit_code=" $exit_code "
2828 style=" error"
29- fi ;
29+ fi
30+
31+ summary=$( sed -n ' /Total Tests Run/,$p' " retesteth-$1 -log.txt" )
32+ if [[ -z " $summary " ]]; then
33+ summary=" retesteth crashed; check the artifacts"
34+ fi
3035
3136 cat << EOF | buildkite-agent annotate --context "retesteth-$1 " --style "$style "
3237<details>
3338<summary>retesteth: $1 </summary>
34- \`\`\` term
35- $( sed -n ' /Total Tests Run/,$p ' " retesteth- $1 -log.txt " )
36- \`\`\`
39+ <pre class=" term"><code>
40+ $summary
41+ </code></pre>
3742</details>
3843EOF
3944}
You can’t perform that action at this time.
0 commit comments