home-sync's pcs job imports no package again (MQ-11) #348

Merged
merge-queue merged 1 commit from mq-11-home-sync-imports into main 2026-12-01 04:58:12 -08:00
Owner

https://openproject.home.romaine.life/wp/MQ-11: since pipeline-templates#347 (3:17 AM) home-sync.yml's pcs job fails on every shell-config and home-profile merge with ERR_MODULE_NOT_FOUND: Cannot find package '@iarna/toml' (runs https://forgejo.romaine.life/romaine-life/shell-config-profile-home/actions/runs/2566, https://forgejo.romaine.life/romaine-life/shell-config/actions/runs/333): the job imports release/deliver.mjs (through home-sync.mjs, for machines) from a _ci checkout with no node_modules, and #347 made deliver.mjs import release.mjs and protocol.mjs, which reach npm packages. So no PC ran home-sync since.

Changed: deliver.mjs loads release.mjs (syncMirrors) and protocol.mjs (draftState, missingParts) with a dynamic import inside the batch's own steps (publishBatch, draftReadiness), not at the top.

Added: tests/home-sync-imports.test.mjs: home-sync.mjs's static imports, at any depth, are node's own or files of ours. It fails on main (conventions.mjs imports @iarna/toml, …) and passes here.

Left alone: everything else; 341 suite tests pass.

🤖 Generated with Claude Code

https://openproject.home.romaine.life/wp/MQ-11: since pipeline-templates#347 (3:17 AM) home-sync.yml's `pcs` job fails on every shell-config and home-profile merge with `ERR_MODULE_NOT_FOUND: Cannot find package '@iarna/toml'` (runs https://forgejo.romaine.life/romaine-life/shell-config-profile-home/actions/runs/2566, https://forgejo.romaine.life/romaine-life/shell-config/actions/runs/333): the job imports `release/deliver.mjs` (through `home-sync.mjs`, for `machines`) from a `_ci` checkout with no node_modules, and #347 made deliver.mjs import `release.mjs` and `protocol.mjs`, which reach npm packages. So no PC ran home-sync since. **Changed**: `deliver.mjs` loads `release.mjs` (syncMirrors) and `protocol.mjs` (draftState, missingParts) with a dynamic import inside the batch's own steps (`publishBatch`, `draftReadiness`), not at the top. **Added**: `tests/home-sync-imports.test.mjs`: home-sync.mjs's static imports, at any depth, are node's own or files of ours. It fails on main (`conventions.mjs imports @iarna/toml`, …) and passes here. **Left alone**: everything else; 341 suite tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
home-sync's pcs job imports no package again: deliver.mjs loads release.mjs and protocol.mjs only in the batch's steps (MQ-11)
All checks were successful
CI / artifact-download (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 16s
CI / suite-tests-linux (pull_request) Successful in 1m2s
Suite release / scope (pull_request) Successful in 8s
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
CI / home-cache-linux (pull_request) Has been skipped
CI / home-cache-windows (pull_request) Has been skipped
CI / artifact-upload (ubuntu-latest) (pull_request) Has been skipped
Suite default / scope (pull_request) Successful in 8s
Suite release / module (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
CI / service-runtime (two) (pull_request) Successful in 34s
CI / service-runtime (one) (pull_request) Successful in 35s
Suite release / check-manifest (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 19s
CI / service-cancellation (pull_request) Successful in 44s
CI / setup-windows (pull_request) Successful in 2m44s
CI / suite-tests-windows (pull_request) Successful in 1m53s
CI / setup-linux (cluster) (pull_request) Successful in 1m53s
merge-queue landed on main
425663d19b
merge-queue deleted branch mq-11-home-sync-imports 2026-12-01 04:58:12 -08:00
Sign in to join this conversation.
No description provided.