Skip to content

Fix: test:procedure re-tests a listed module changed after its qualification, before it is published - #2553

Merged
repeat98 merged 2 commits into
repeat98:mainfrom
jrs1717:fix/procedure-retest-unreleased-listed
Dec 3, 2026
Merged

repeat98 merged 2 commits into
repeat98:mainfrom
jrs1717:fix/procedure-retest-unreleased-listed

Conversation

@jrs1717

@jrs1717 jrs1717 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

What works now: npm run test:procedure can 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 to sdk/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).

  • What was wrong or hard: step 1 of a listed module runs module:doctor -- --procedure only 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.
  • What this changes:
    • scripts/test-procedure.mjs: a listed module whose record's sourceSha256 differs from its current source also runs step 1 with --procedure. plan() stays pure: main computes ctx.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 problem stale so the doctor can tell it apart.
    • docs/TEST_PROCEDURE.md: one sentence.
    • The plain module:doctor (and so pr:ready) still fails a stale record. The run's module:qualify -- <id> --procedure DIR --write replaces the record, as it does for updates.
  • How I checked it:
    • 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.
    • By hand: with one listed module's source changed in a scratch worktree, module:doctor -- resonator still fails the qualification and module-rules lines. module:doctor -- --procedure resonator shows both as waiting for the run.
    • npm run pr:ready: passed.
  • Tested on a unit: Not tested on a unit: host tooling only, it changes no built package or base.
  • Edge cases: none, because it changes no built package or base.
  • What the guides lacked or got wrong, and where I fixed it: docs/TEST_PROCEDURE.md covered updates only. The step-1 paragraph now covers a listed first release that changed before publication.

🤖 Generated with Claude Code

…ication, before it is published

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

repeat98 commented Dec 3, 2026

Copy link
Copy Markdown
Owner

@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 pr:ready still refuse a stale record.

What's missing: nothing on your side. Your #2561 changes the same sentence in docs/TEST_PROCEDURE.md (step 1, "A first release runs this as a draft"), so whichever of the two merges second will conflict there. I plan to merge #2561 first, then merge main into this branch myself, keep both sentences and let the checks run again.

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
  • The conflict is only in that doc line. scripts/module-doctor.mjs merges cleanly with Fix: an update's test procedure no longer stops at step 1 on the previous version's price and curve #2561: its price and curve change and your qualification change touch separate blocks.
  • main has moved in module-doctor.mjs and test-procedure.mjs since you branched: the doctor now runs the module rules against the merge base, and the unit queue now keeps one lane per instrument. The refresh lets CI check your change against both.
  • Your checks are waiting for my approval as a first-time contributor's. I'll approve them on the current head.

Generated by Claude Code

# Conflicts:
#	docs/TEST_PROCEDURE.md

@repeat98 repeat98 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refreshed with main as promised (both sides of the conflict kept); merging once the checks pass.

@repeat98
repeat98 enabled auto-merge (squash) December 3, 2026 18:10
@repeat98
repeat98 merged commit a4680ca into repeat98:main Dec 3, 2026
12 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