Skip to content

test: track the three era-corpus fixtures regression tests assert on, so CI runs them - #1403

Merged
dgunning merged 1 commit into
mainfrom
test/track-three-corpus-fixtures
Oct 2, 2026
Merged

dgunning merged 1 commit into
mainfrom
test/track-three-corpus-fixtures

Conversation

@dgunning

@dgunning dgunning commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Three regression tests read fixtures from the gitignored tests/fixtures/text_boundary_corpus with skipif(not exists), so they only ever ran on a developer machine. One of them, dt1f1's 2010 20-F test, went stale for five days after #1361 (re-pinned in #1401).

Change

The three files are copied into tests/fixtures/parity_gate, the convention the existing gate fixtures already follow:

Fixture Size Test
10-K/0000927356-01-000369.html 0.3 MB test_3dp_bare_textnode_headers
10-K/0001193125-21-101193.html 43 KB test_dt1f1_item_9at
20-F/0001144204-10-017467.html 3.5 MB test_dt1f1_wrapped_item_headers
  • Tests: they point at the tracked copies and lose their skipif, and their CORPUS NOTEs explain why.
  • Ratchet: test_section_parity_ratchet.TRACKED_GAP_FIXTURES lists all three, so they can't quietly disappear. build_corpus labels both trees by accession and prefers the tracked copy, so no local ratchet result moves.

Verification

  • Detached worktree (no ignored corpus, which is CI's view): the three test files plus the section ratchet give 23 passed, 0 skipped.
  • Locally: the three parity ratchets pass (16), fast regression passes (3,472), and check_regression_skips.py is OK.

🤖 Generated with Claude Code

… so CI runs them

Three regression tests read fixtures from the gitignored
tests/fixtures/text_boundary_corpus and carried skipif(not exists), so
they skipped in CI and only ever ran on a developer machine. One of them
(dt1f1's 2010 20-F) went stale for five days after #1361 changed three item
lengths, because only the CI-visible pins were updated (re-pinned in #1401).

Copied into tests/fixtures/parity_gate, the convention the 99-001234,
10-073212 and 16-000635 fixtures already follow:
- 10-K/0000927356-01-000369.html  (0.3 MB; test_3dp_bare_textnode_headers)
- 10-K/0001193125-21-101193.html  (43 KB; test_dt1f1_item_9at)
- 20-F/0001144204-10-017467.html  (3.5 MB; test_dt1f1_wrapped_item_headers)
The tests point at the tracked copies, lose their skipif, and their
CORPUS NOTEs say so. The section parity ratchet lists the three in
TRACKED_GAP_FIXTURES so they cannot quietly disappear; parity_benchmark's
build_corpus labels both trees by accession and prefers the tracked copy,
so no local ratchet result moves.

Verified in a detached worktree (no ignored corpus, CI's view): the three
files plus the section ratchet, 23 passed, 0 skipped. Locally: the three
parity ratchets 16 passed, fast regression 3,472 passed,
check_regression_skips OK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dgunning
dgunning enabled auto-merge (squash) October 2, 2026 12:17
@dgunning
dgunning merged commit 7abb9cc into main Oct 2, 2026
10 checks passed
@dgunning
dgunning deleted the test/track-three-corpus-fixtures branch October 2, 2026 12:32
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