Skip to content

Let the corpus build again: rename the fixture ids #5508 made repeat an example's - #5527

Merged
max-sixty merged 1 commit into
mainfrom
grind/corpus-duplicate-ids
Nov 5, 2026
Merged

max-sixty merged 1 commit into
mainfrom
grind/corpus-duplicate-ids

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

leaf-dev corpus has refused to build since #5508, so every test that opens the corpus (named_source("corpus"), in test_render_gate, test_render_controls and test_interact_product) fails on main:

Error: id 'rate-threshold' is in both alert-thresholds.html and quoted-playground.html; rename one

#5508 gave every playground control and choice an id. The fixture quoted-playground.html copies part of examples/alert-thresholds.html, so nine of its new ids repeat the example's, and notification-playground.html's new title control repeats the h1 id in the fixture thread-journey-inline.html. The corpus composes every example and fixture into one document, where an id must be unique.

The two fixtures take the new names, since no test names their ids: the quoted playground's controls and choices take the quoted- prefix its other ids already carry, and the inline-thread fixture's heading becomes review-title. The shipped examples keep theirs. A playground value's for names its control's name, which is unchanged.

uv run leaf-dev corpus builds again, and a scan of every corpus input finds no other shared id. The quoted-playground browser tests and tests/model/test_interact_document.py pass.

This was written by Claude Code on behalf of max-sixty

…an example's

#5508 gave every playground control and choice an id. Nine in the
quoted-playground fixture repeat examples/alert-thresholds.html's, and
notification-playground's new `title` control repeats the inline-thread
fixture's heading, so `leaf-dev corpus` refused to compose them and every
test that opens the corpus failed. The fixtures take the new names; the
shipped examples keep theirs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@max-sixty
max-sixty merged commit 33c972b into main Nov 5, 2026
5 checks passed
@max-sixty
max-sixty deleted the grind/corpus-duplicate-ids branch November 5, 2026 18:59
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.

2 participants