Repository navigation
ci: count integration results through bun's colour codes - #733
Merged
Merged
Conversation
The reporter matched /^\s*\d+ pass$/m against bun's captured stdout. Bun colours its counts whenever the environment asks for colour - FORCE_COLOR outranks NO_COLOR - and the line then reads ESC[0m ESC[32m 13 pass ESC[0m, which no longer matches. Every file landed in unread and the lane exited 1 with nothing having failed: all 24 had exited 0. Stripping the colour before counting is not the same as trusting the environment to withhold it, which is what NO_COLOR alone already failed to do.
pt-act
force-pushed
the
ci/count-tests-through-colour
branch
from
October 10, 2026 08:01
e809c06 to
3804b99
Compare
devswha
added a commit
that referenced
this pull request
Oct 10, 2026
## Change Release 0.4.6, from main at 2ae281d (24 PRs since v0.4.5: #615, #693-#748). - `package.json` and `herdr-plugin.toml`: 0.4.6. - CHANGELOG: `[Unreleased]` becomes `[0.4.6] - 2026-10-11`. #615's entry moves out of the 0.4.2 section, where its branch's merge left it. #697 and #695 get their links and credits. A Maintenance section covers #738, #733 and #696. The compare links are fixed. - `release-summaries.json`: 0.4.6 in en/ko/ja/zh (5 new, 3 improved, 5 fixed). - `REMOTE_BUNDLE_VERSION` 24 -> 25. Bridge routes were added since v0.4.5 (plugin actions, integrations, pane split/zoom/swap/resize/clear/move/focus, tab move, find, layout ratio, agent rename), so `remote-v25` is published before the app release. ## Validation - `bun scripts/release-notes.ts 0.4.6` renders the summaries and the full changelog. - `bun run typecheck` and `bun run test:unit` pass: 2459 tests, 0 fail. --------- Co-authored-by: devswha <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test:integrationdecides whether a file reported by matching/^\s*\d+ pass$/mand/^\s*\d+ fail$/magainst the stdout it captured.Bun colours its count lines whenever the environment asks it to, and
FORCE_COLORoutranksNO_COLOR, so on a runner that sets it the line arrives as:Neither pattern matches. Every file goes into
unread, the summary printsNO RESULTfor all of them, and the lane exits 1 — with nothing having failed. On my box all 24 files had exited 0 while the reporter said every one of them was unreadable, which reads exactly like a catastrophic failure and cost me two false alarms.The fix strips the colour before counting and reading, rather than trying to win an environment argument against
FORCE_COLOR.Proof, on the configuration that broke it
Same environment, same command, same 26 files.
This is not a bug I introduced and it does not affect CI today, which does not set
FORCE_COLOR. It is a trap for anyone whose editor, shell profile or container image does — and the failure mode is maximally confusing rather than merely wrong. Happy to close it if you would rather carry it; I hit it twice in one afternoon and would rather someone else did not have to.