Skip to content

Fix: isolate requested ColdFire workdirs by module id and label - #2599

Merged
repeat98 merged 3 commits into
repeat98:mainfrom
ilia-murzinov:fix/requested-label-workdir
Dec 4, 2026
Merged

repeat98 merged 3 commits into
repeat98:mainfrom
ilia-murzinov:fix/requested-label-workdir

Conversation

@ilia-murzinov

@ilia-murzinov ilia-murzinov commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

A fix outside a module. The isolated module package builder put every requested ColdFire unit under requested/<label>. Two machines that share a label (synth and CX OSC both use poly) then collide with FileExistsError during build-modules-isolated.sh.

Workdirs are now requested/<moduleId>__<label>, and object/group retain keys include moduleId for objects. Needed so CX OSC (#2293) can rebuild beside FM Synth without folding a shared tooling change into the module PR (owner ask).

After Fuzzbox (#2489) and Bounce In Place (#2548) landed: merged main, rebuilt in the pinned image (build-modules-isolated.sh), and restamped module-build.json. Package file bytes are identical; only compilerSha256 and sourceCommit moved.

Tested on a unit: Not tested on a unit: host-only builder change; no instrument image.

Edge cases

Case Why this change makes it a risk How run Result
Two modules, same unit label Shared requested/<label> directory build-modules-isolated with synth + cx-osc on #2293 tip pass: build completes with __ workdirs
Rebuild after Fuzzbox + Bounce compilerSha256 bound to builder build-modules-isolated.sh then modules:import --development pass: package files hashes unchanged; stamp only
One module alone Path shape change existing REQUESTED set on main not run here: same as before aside from directory names

Guides: nothing.

Two machines that share a unit label (for example poly) collided in
requested/<label> during the isolated package build.
ilia-murzinov added a commit to ilia-murzinov/modwerk that referenced this pull request Dec 4, 2026
Shared tooling lands in Fix repeat98#2599; pin compilerSha256 to this script.
ilia-murzinov added a commit to ilia-murzinov/modwerk that referenced this pull request Dec 4, 2026
@repeat98

repeat98 commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Thanks @ilia-murzinov, keying the workdirs and the object rows by module id is the right fix, and keeping it out of CX OSC is what I asked for.

Why it's red: module-source.test.mjs binds the release identity to the builder. module-build.json's compilerSha256 is the SHA-256 of scripts/build-module-packages.py, so any edit to the builder needs the packages rebuilt in the pinned image (build-modules-isolated.sh, as for CX OSC) and the record restamped. The package bytes should come out identical; please say so in the description once they do.

One ordering note: Fuzzbox (#2489) and Bounce In Place (#2548) also edit this file and module-build.json, and they're next to merge. Please do the rebuild after they land, so it's done once.

Who acts: you. Next step: the rebuild and restamp on main after those two; then I review and merge it, and CX OSC can rebuild on top.

@ilia-murzinov

Copy link
Copy Markdown
Contributor Author

Addressed: merged current main (Fuzzbox #2489 and Bounce #2548 are in), rebuilt with build-modules-isolated.sh, and restamped module-build.json.

Package file bytes are identical — only compilerSha256 and sourceCommit moved. Description updated.

@repeat98
repeat98 merged commit 49b8808 into repeat98:main Dec 4, 2026
12 of 13 checks passed
ilia-murzinov added a commit to ilia-murzinov/modwerk that referenced this pull request Dec 4, 2026
ilia-murzinov added a commit to ilia-murzinov/modwerk that referenced this pull request Dec 4, 2026
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