Skip to content

fix: parse multi-digit control counts in the workflow summary - #65

Merged
jmeridth merged 1 commit into
mainfrom
fix/summary-count-parsing
Oct 1, 2026
Merged

jmeridth merged 1 commit into
mainfrom
fix/summary-count-parsing

Conversation

@jmeridth

@jmeridth jmeridth commented Oct 1, 2026

Copy link
Copy Markdown
Member

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

  • Two new bats tests run a 14 Passed, 3 Warnings, 12 Failed summary line through 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.

## 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>
@jmeridth jmeridth self-assigned this Oct 1, 2026
@github-actions github-actions Bot added the fix label Oct 1, 2026
@jmeridth
jmeridth marked this pull request as ready for review October 1, 2026 14:34
@jmeridth
jmeridth requested a review from a team as a code owner October 1, 2026 14:34
@jmeridth
jmeridth requested a review from eddie-knight October 1, 2026 14:34
@jmeridth
jmeridth merged commit 1af7ff8 into main Oct 1, 2026
3 checks passed
@jmeridth
jmeridth deleted the fix/summary-count-parsing branch October 1, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflow summary drops the leading digits of two-digit control counts

2 participants