Commit 1f89a42
committed
fix(ci): guard count-elements step against bst show failures
With bash -e active (GHA default), `BST_SHOW_OUT=$(cmd 2>&1)` exits
immediately if cmd fails, so `rc=$?` never runs and the step exits
with the bst show exit code (255 when BST can't load the element graph
e.g. a patch queue fails to apply).
Wrap the assignment with `set +e` / `set -e` so the error is
captured in `rc` and the existing graceful fallback (total=0 warning)
executes instead of killing the build job entirely.
Fixes nvidia and default build failures observed in runs:
- 28056225668 (next branch, count step exits 255)
- 28056221904 (auto/track-next-junction, validate bst show fails)
Assisted-by: Claude Sonnet 4.6 via GitHub Copilot1 parent 8d63f4d commit 1f89a42
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments