Parse current ExUnit gate summaries

b164d60fef75 · AtlantisPleb · · parent a17c95ddea64

Parse current ExUnit gate summaries

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

Not deployed through the forge lane

No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.

Changed files

  • modified ops/ci/baseline.sh

Diff

1 file changed, +15 -3

ops/ci/baseline.sh modified +15 -3

@@ -66,9 +66,21 @@ if [ -n "$(git status --porcelain --untracked-files=all)" ]; then

66 66
fi
67 67
68 68
javascript_tests=$(awk '/^ℹ tests [0-9]+$/ {value=$3} END {print value}' "$run_root/precommit.log")
69
default_tests=$(awk '/^[0-9]+ tests, 0 failures/ {value=$1} END {print value}' "$run_root/precommit.log")
70
excluded_tests=$(awk '/^[0-9]+ tests, 0 failures \([0-9]+ excluded\)$/ {value=$5} END {gsub(/[()]/, "", value); print value}' "$run_root/precommit.log")
71
cluster_tests=$(awk '/^[0-9]+ tests, 0 failures \([0-9]+ excluded\)$/ {value=$1} END {print value}' "$run_root/coverage.log")
69
default_tests=$(awk '
70
  /^Result: [0-9]+ passed/ {value=$2}
71
  /^[0-9]+ tests, 0 failures/ {value=$1}
72
  END {print value}
73
' "$run_root/precommit.log")
74
excluded_tests=$(awk '
75
  /^Result: [0-9]+ passed, [0-9]+ excluded$/ {value=$4; gsub(/,/, "", value)}
76
  /^[0-9]+ tests, 0 failures \([0-9]+ excluded\)$/ {value=$5; gsub(/[()]/, "", value)}
77
  END {print value}
78
' "$run_root/precommit.log")
79
cluster_tests=$(awk '
80
  /^Result: [0-9]+ passed, [0-9]+ excluded$/ {value=$2}
81
  /^[0-9]+ tests, 0 failures \([0-9]+ excluded\)$/ {value=$1}
82
  END {print value}
83
' "$run_root/coverage.log")
72 84
coverage_percent=$(awk -F '|' '/Total/ {value=$2} END {gsub(/[% ]/, "", value); print value}' "$run_root/coverage.log")
73 85
74 86
for parsed_value in "$javascript_tests" "$default_tests" "$excluded_tests" "$cluster_tests" "$coverage_percent"; do

This page updates live while a promote is in flight · changelog