Repository navigation
Fix: test:procedure re-tests a listed module changed after its qualification, before it is published - #2553
Conversation
…ication, before it is published Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@jrs1717 thanks, this looks right to me. A first release that changed after its qualification now runs step 1 like an update, and the plain doctor and What's missing: nothing on your side. Your #2561 changes the same sentence in Who acts: me. Next step: please hold pushes to this branch until it's merged. Anything you'd still like to change can go in a follow-up. Details
Generated by Claude Code |
# Conflicts: # docs/TEST_PROCEDURE.md
repeat98
left a comment
There was a problem hiding this comment.
Refreshed with main as promised (both sides of the conflict kept); merging once the checks pass.
What works now:
npm run test:procedurecan re-test a listed Octatrack module whose code changed after its qualification but before it was published. Before, step 1 stopped on the stale qualification record, and the only way through was to move the module back tosdk/drafts/, test it, and list it again (about 20 files each way). Nothing changes for musicians. Who acts: a maintainer reviews and merges. Ran on a unit: not needed (host tooling only).module:doctor -- --procedureonly for an update, where the record names the previous version. A first release that is listed but not yet published keeps its version when its code changes, for example after a code review. Its record then names an earlier source of the same version, so step 1 ran the plain doctor, which fails the stale record and stops the run before the unit. This happened with Glitchbox (Glitchbox 0.1.0-experimental (Octatrack): a glitch effect for FX2 with CHOP, STUT and ARPG #2492) on 2 December 2026.scripts/test-procedure.mjs: a listed module whose record'ssourceSha256differs from its current source also runs step 1 with--procedure.plan()stays pure:maincomputesctx.recordStale.scripts/module-doctor.mjs: with--procedure, a record whose only problem is the stale source hash waits for the run (an info line), as an update's record already does. A drafted field still fails.scripts/module-qualify.mjs: marks that problemstaleso the doctor can tell it apart.docs/TEST_PROCEDURE.md: one sentence.module:doctor(and sopr:ready) still fails a stale record. The run'smodule:qualify -- <id> --procedure DIR --writereplaces the record, as it does for updates.npx vitest run scripts/test-procedure.test.mjs scripts/module-qualify.test.mjs scripts/module-doctor.test.mjs: 64/64. A new case covers the plan with a stale record and with a current one, and the existing update cases are unchanged.module:doctor -- resonatorstill fails the qualification and module-rules lines.module:doctor -- --procedure resonatorshows both as waiting for the run.npm run pr:ready: passed.docs/TEST_PROCEDURE.mdcovered updates only. The step-1 paragraph now covers a listed first release that changed before publication.🤖 Generated with Claude Code