Repository navigation
Fix: the draft doctor test allows for the draft's own host tests - #2652
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What works: the module-contract check no longer fails a draft just because its own model tests are slow.
scripts/module-doctor.test.mjsrunsmodule:doctor --drafton a draft in the repository with a 30-second limit, but the doctor gives that draft'stest_*.pyup 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--draftruns 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
--draftdoctor runs in one test file changes; what they assert is unchanged.Details
npx vitest run scripts/module-doctor.test.mjs, 9/9 passed. On Cassettebox 0.1.0-experimental (draft): an '80s cassette and aged-VHS tape effect for FX1 or FX2 #2595's branch the doctor takes 125 s on the Cassettebox draft (its tests time out at 120 s); I'm making those tests faster in Cassettebox 0.1.0-experimental (draft): an '80s cassette and aged-VHS tape effect for FX1 or FX2 #2595 separately.🤖 Generated with Claude Code