Skip to content

fix(benchmarks): drop the leftover bash tail in the coverage step - #134

Merged
cuioss-oliver merged 1 commit into
mainfrom
fix/benchmark-coverage-leftover-bash
Jul 30, 2026
Merged

fix(benchmarks): drop the leftover bash tail in the coverage step#134
cuioss-oliver merged 1 commit into
mainfrom
fix/benchmark-coverage-leftover-bash

Conversation

@cuioss-oliver

Copy link
Copy Markdown
Collaborator

Intent

Follow-up to #131. Removes a leftover fragment of the bash implementation that the
manifest-driven coverage step replaced.

What happened

#131 switched the "Summarise benchmark coverage" step to call
benchmark-manifest.py summarise, but the replacement missed a trailing block: a
truncation-narrative if and a final echo, both still referencing ${missing} and
${missing_names}, which the deleted bash had defined.

The first post-merge Performance Benchmark run surfaced it — two verdict lines, the
second with an empty count:

Benchmark coverage: 0 of 12 expected summary document(s) absent (benchmark step outcome: success).
Benchmark coverage:  expected summary document(s) absent (benchmark step outcome: success).

Why it is not just cosmetic

The duplicate line is harmless. The truncation block is not.

The step runs under shell: /usr/bin/bash -e, and [ "${missing}" -gt 0 ] with an
unset operand is a syntax error. So on a failed benchmark run the step would abort
rather than print the truncation narrative — precisely the case that narrative exists
to explain. That path had not executed yet, because the run that exposed the leftover
succeeded.

Why a pure deletion

summarise already emits the same narrative in both branches (truncated, and
"failed after every goal produced a summary"), so nothing is lost by removing the bash
copy. Keeping it would also re-create the two-implementations-of-one-contract problem
that motivated calling summarise in the first place.

Verification

Quality gate green. The step's own behaviour only exercises in a post-merge
Performance Benchmark run; the summarise code path this defers to was verified in
#131 across all three exit semantics (complete coverage, missing document, absent
manifest) and is unchanged here.

skip-bot-review applied: a 17-line dead-code deletion with no reachable behaviour
change on the success path.

When the coverage step was switched to call benchmark-manifest.py summarise, the
replacement missed a trailing fragment of the bash implementation it superseded: a
truncation-narrative block and a final echo, both still referencing ${missing} and
${missing_names}, which no longer exist.

The first post-merge Performance Benchmark run shows the effect — two verdict
lines, the second with an empty count:

  Benchmark coverage: 0 of 12 expected summary document(s) absent (...)
  Benchmark coverage:  expected summary document(s) absent (...)

The duplicate line is cosmetic, but the truncation block is not. The step runs
under `bash -e`, and `[ "${missing}" -gt 0 ]` with an unset operand is a syntax
error, so on a FAILED benchmark run the step would abort instead of printing the
narrative — the one case the narrative exists for. That path had not run yet.

summarise already emits that narrative, in both the truncated and
not-truncated forms, so this is a pure deletion with no replacement needed.

Co-Authored-By: Claude <noreply@anthropic.com>
@cuioss-oliver cuioss-oliver added the skip-bot-review Skip automated review bots on this PR label Jul 30, 2026
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Excluded labels (none allowed) (1)
  • skip-bot-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: cuioss/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 61907e67-c068-47a8-9fd6-76f1dd9ba4ef

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@cuioss-oliver
cuioss-oliver added this pull request to the merge queue Jul 30, 2026
Merged via the queue into main with commit d332e8b Jul 30, 2026
27 checks passed
@cuioss-oliver
cuioss-oliver deleted the fix/benchmark-coverage-leftover-bash branch July 30, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-bot-review Skip automated review bots on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant