Skip to content

[R46-P2-S3] Test the cards script - #112

Merged
d6veteran merged 1 commit into
claude/r46-cardsfrom
claude/r46-p2-s3-cards-tests
Nov 20, 2026
Merged

d6veteran merged 1 commit into
claude/r46-cardsfrom
claude/r46-p2-s3-cards-tests

Conversation

@d6veteran

Copy link
Copy Markdown
Contributor

Stage R46-P2-S3 of docs/plan/2026-11-19-robins-card-loop.md. Tests only; no product code changed.

What it adds

Section 24 of tests/run.sh, 12 checks of scripts/cards.py. A stand-in for gh (tests/fixtures/cards/gh) answers from saved issue lists beside it and logs every call; any other gh is pointed at a host that does not exist, so no test reaches GitHub.

  • The verify list: closed bugs with a Test case: line and no verified label, rows read from that line only (bold or not, a link's address skipped), grouped by card.
  • The last named row of each card (09-D10 after 09-D4).
  • The list changes nothing on GitHub.
  • Each label change: verified, re-opened, and to verify after a merge, each removing the other label in the same call.
  • The regression match: only a closed verified bug naming that exact row.
  • The step after a merge: only issues with a Test case: line, in their own repository; a failed gh gives one line, never a traceback, and the merge step's call never raises.
  • The page's pills, per issue, including the four new ones; and the page's saved link.

Each case fails when its part is broken

Broken by hand one at a time, then restored: the verified filter, the grouping by card, the row order, the link skip, each of the three label changes, the exact-row match, the Test case check after a merge, the merge step's catch, the re-opened, to verify, verified and test case pills, and the link check. Each break failed at least one check.

Time added to one run of the suite

About 0.05 minutes (3 seconds of a 40-second run on the Mac).

🤖 Generated with Claude Code

Section 24 of tests/run.sh runs scripts/cards.py against a stand-in gh that answers
from saved issue lists in tests/fixtures/cards/ and logs each call. Covers the verify
list and its grouping, the last named row, each label change, the regression match,
the step after a merge (and its failure path), and the bug list page's pills.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@d6veteran
d6veteran marked this pull request as ready for review November 20, 2026 01:19
@d6veteran
d6veteran merged commit d0d7095 into claude/r46-cards Nov 20, 2026
1 check passed
@d6veteran

Copy link
Copy Markdown
Contributor Author

ck cost for this pull request: $1.72, built by [done] [R46-P2-S3] [Robin Opus medium] Test the cards script.

[done] [R46-P2-S3] [Robin Opus medium] Test the cards script cost summary

Lane Model Input Output Cache write Cache read Total
main opus-5-5 60 · $0.00 20k · $0.40 84k · $0.67 3.2M · $0.65 3.4M · $1.72
All 60 · $0.00 20k · $0.40 84k · $0.67 3.2M · $0.65 3.4M · $1.72

Prices from https://platform.claude.com/docs/en/about-claude/pricing.md, as of 2026-11-19.
Claude Code wrote no cost record for this session, so background calls are not counted.

@d6veteran
d6veteran deleted the claude/r46-p2-s3-cards-tests branch November 20, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant