Skip to content

Commit d664273

Browse files
author
Jaap van der Plas
committed
fix annotations
1 parent ca28d16 commit d664273

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

nix/overlay.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

test-ets.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ if [ -z "$IN_NIX_SHELL" ]; then
44
export SBT_NIX="-Dnix=true"
55
fi
66

7-
git submodule init;
8-
git submodule update;
7+
git submodule init
8+
git submodule update
99

1010
echo "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>
3843
EOF
3944
}

0 commit comments

Comments
 (0)