Skip to content

Fix: the module-pool tests no longer depend on MIDI Scenes 0.3.0's size - #2224

Merged
repeat98 merged 4 commits into
mainfrom
fix/pool-tests-msc-size
Nov 26, 2026
Merged

repeat98 merged 4 commits into
mainfrom
fix/pool-tests-msc-size

Conversation

@repeat98

@repeat98 repeat98 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

src/engine/elekloader/module-set-memory.test.ts used a real set, the one a tester's unit refused on 24 Nov 2026, to cover two behaviours:

  • a set over OCTATRACK_POOL_BYTES is refused before the first write, naming its largest modules;
  • the modules already on the unit count.

That set was over the pool only because of MIDI Scenes 0.3.0 (282 kB). With MIDI Scenes 0.3.1 (#2149, 127 kB) it fits, so both tests fail on that branch even though the check they cover is unchanged. The tests depended on one module's size.

What changes (test only)

  • Three published packages (Tape Echo, Syntiz, Kits) are grown to the most a package may declare (image and bss 288 KiB, checkPackage). Each then takes over a third of the pool, which a new test asserts.
  • They go into a catalogue built from the published manifest (createRuntimeCatalogue). The three grown packages plus three small ones make a set over the pool whatever size any published module has.
  • Both behaviours stay covered the same way:
    • the over-pool set is refused with the message and the large modules named;
    • with Tape Echo already on the unit, adding the other two is refused because the staying module is counted;
    • with one large package out, the set syncs.
  • Fix: price an Octatrack sync with the modules it takes out still in the pool #2218's sync-peak tests (merged into main since) priced a tester's real 25 November set and pinned the peak at 795 kB; base 0.8.2's relinked packages read 796 kB, so Improvement: Octatrack base 0.8.2 cumulative draft #2079's CI fails on them. They now use the same grown packages: two on the unit fit, the two after the sync fit, all three at once do not, and the message names the module to take out first and the one to add after. The switched-off case is kept the same way.
  • No change to module-set.ts or to the check.

Tests

Guides: nothing (a test that pins one real module's size is the trap; the file's comment says why it uses grown packages).

Needed by #2149 and by #2079's CI (batch #2216).

🤖 Generated with Claude Code

The tests for a set over the module pool used a tester's real set, which was over the
pool only because of MIDI Scenes 0.3.0 (282 kB); with 0.3.1 (127 kB) it fits and both
tests failed though the check is unchanged. They now grow three published packages to
the most a package may declare (over a third of the pool each) in a catalogue built
from the published manifest, so the set is over the pool whatever any module weighs.
Both behaviours stay covered: refused before the first write naming its largest
modules, and modules already on the unit counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label Nov 26, 2026
repeat98 and others added 2 commits November 26, 2026 10:44
…es' sizes

#2218's three tests priced a tester's real 25 November set and pinned the
peak at 795 kB, so any package that grows by a kilobyte fails them: base
0.8.2's relinked packages read 796 kB (#2079). They now use the grown
packages the other pool tests use: two on the unit fit, two after the sync
fit, all three at once do not, and the message names the one to take out
first and the one to add after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 marked this pull request as ready for review November 26, 2026 09:51
@repeat98
repeat98 enabled auto-merge (squash) November 26, 2026 10:06
auto-merge was automatically disabled November 26, 2026 10:06

Pull Request is not mergeable

@repeat98
repeat98 merged commit 3e9ce92 into main Nov 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant