Skip to content

Fix: the draft doctor test allows for the draft's own host tests - #2652

Merged
repeat98 merged 1 commit into
repeat98:mainfrom
jrs1717:fix/draft-doctor-test-timeout
Dec 5, 2026
Merged

repeat98 merged 1 commit into
repeat98:mainfrom
jrs1717:fix/draft-doctor-test-timeout

Conversation

@jrs1717

@jrs1717 jrs1717 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

What works: the module-contract check no longer fails a draft just because its own model tests are slow. scripts/module-doctor.test.mjs runs module:doctor --draft on a draft in the repository with a 30-second limit, but the doctor gives that draft's test_*.py up to 120 seconds (scripts/module-tests.mjs). A draft whose tests took over about 25 seconds failed with empty output (expected '' to contain '<draft> (Octatrack)'), as on Cassettebox #2595. The --draft runs now get the host tests' 120 seconds on top; the other doctor runs keep 30.

What is broken: nothing known. Musically: nothing changes; this is CI only. Who acts: a maintainer reviews. Ran on a unit: no, a test-only change.

Not tested on a unit: changes only a Vitest timeout.

Edge cases: none, because only the time limit of two --draft doctor runs in one test file changes; what they assert is unchanged.

Details

🤖 Generated with Claude Code

module-doctor.test.mjs ran module:doctor --draft on an existing draft with a 30 s limit, while the doctor gives that
draft's test_*.py up to 120 s (scripts/module-tests.mjs). A draft with slower model tests failed module-contract with
empty output (Cassettebox, repeat98#2595). The --draft runs now get the host tests' 120 s on top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jrs1717 pushed a commit to jrs1717/modwerk that referenced this pull request Dec 5, 2026
… runs, every assertion kept)

The event tests (creases, dropout starts and glides, a worn tape, uneven heads, every knob) ran up to 60 s of
simulated silence each; the shorter runs keep every assertion, with the counts they reach noted. module:doctor gives
a draft's host tests 120 s and CI's draft-doctor test timed out on them (repeat98#2652 fixes that test's own limit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 merged commit e560b96 into repeat98:main Dec 5, 2026
10 checks passed
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