Repository navigation
fix: parse multi-digit control counts in the workflow summary - #65
Merged
Merged
Conversation
## What/Why Stop the summary from dropping leading digits of control counts. The greedy `.*` in each sed pattern swallowed all but the last digit, so "14 Passed" showed as 4 and "12 Failed" as 2. ## Proof it works - Two new bats tests cover a 14/3/12 summary line for the table and the `failed` output; both failed before the fix and pass after it - `make test` (21 tests) and `make lint` pass ## Risk Low. Only the three count-parsing patterns change. `fail-on-error` already worked, because a nonzero count stayed nonzero. ## AI role Claude Opus 5.5 wrote the tests and the fix. A human reviews it. ## Review focus The `[^0-9]` anchor in the three sed patterns. Signed-off-by: jmeridth <jmeridth@gmail.com>
eddie-knight
approved these changes
Oct 1, 2026
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.
Fixes #64
What/Why
Stops the workflow summary from dropping the leading digits of control counts. The greedy
.*in each sed pattern took all but the last digit, so "14 Passed" showed as 4 and "12 Failed" as 2.Proof it works
14 Passed, 3 Warnings, 12 Failedsummary line through the table and thefailedoutput. Both failed before the fix and pass after it.make test(21 tests) andmake lintpass.Risk
Low. Only the three count-parsing patterns change.
fail-on-erroralready worked, because a nonzero count stayed nonzero.AI role
Claude Opus 5.5 wrote the tests and the fix. A human reviews it.
Review focus
The
[^0-9]anchor in the three sed patterns.