Skip to content

Fix: an update's test procedure no longer stops at step 1 on the previous version's price and curve - #2561

Merged
repeat98 merged 1 commit into
repeat98:mainfrom
jrs1717:fix/procedure-update-price-waits
Dec 3, 2026
Merged

repeat98 merged 1 commit into
repeat98:mainfrom
jrs1717:fix/procedure-update-price-waits

Conversation

@jrs1717

@jrs1717 jrs1717 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

What works now: npm run test:procedure on an update of a listed Octatrack module no longer stops at step 1 because the price and instance curve still name the previous version. In step 1 (module:doctor -- --procedure) they wait for the run, as the qualification record already does: step 9 measures them, and module:qualify -- <id> --procedure DIR --write records them. 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: an update's step 1 failed on "its price was measured on 0.1.0-experimental, not 0.1.1-experimental" and "its curve is for 0.1.0-experimental", so the run stopped before the unit. The only way through was to measure the price separately first with device:price --write, about 3 more minutes on the unit, and nothing said so. This happened with Loopbox 0.1.1 (Loopbox 0.1.1-experimental: an automatic micro-loop effect for FX2 (LAYER, DUB, SLIDE) #2555).
  • What this changes:
    • scripts/module-cpu-price.mjs: the version-mismatch results of cpuPriceStatus and frameCostStatus carry stale: true.
    • scripts/module-doctor.mjs: with --procedure, for an update (the record names another version), a stale price or curve becomes an info line saying it waits for this run.
    • docs/TEST_PROCEDURE.md: one sentence.
    • The plain module:doctor (and so pr:ready) still refuses a stale price or curve.
  • How I checked it:
    • npx vitest run scripts/module-cpu-price.test.mjs: 27/27, with stale asserted on both mismatch cases and stale: false for a missing curve.
    • By hand: with Midiverb's version bumped and a release note added in a scratch worktree, module:doctor -- midiverb still fails both lines, and module:doctor -- --procedure midiverb 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 didn't say that an update's price and curve also wait for the run. It does now.

🤖 Generated with Claude Code

…ious version's price and curve

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 merged commit 015e264 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