fix: a repo-root job gets every unit's mise tools and Playwright browser #94

Merged
cjournois merged 1 commit from fix/root-caller-tools into main 2026-11-03 17:22:22 +00:00
Collaborator

On 7.0.2, the repo-root callers (working_directory: ".") fail on three v7 migration PRs. The root justfile runs every unit's recipes, but the root job sets up only the root:

  • project/janus#102 ci: janus-root and cjournois/library#230 ci: library: sh: 1: cargo: not found. #93's nested mise install commit was pushed after the PR merged, so 7.0.2 never shipped it.
  • project/ergon#86 ci: ergon: services/ergon-device's test chains e2e-ui, and nothing installs chromium (browserType.launch: Executable doesn't exist). recipe.sh ui only looks for a playwright.config in the working directory itself.

Changes:

  • setup.sh mise-install runs mise install in every directory below the working directory that has a mise.toml (the a80da1f change).
  • recipe.sh tests first installs chromium in each nested unit that has a playwright.config and an e2e-ui recipe. It runs from that unit's directory, so its own Playwright picks the browser revision: bunx with a bun.lock, npx otherwise. ui shares the same install_chromium.
  • lib.sh nested_dirs is the one tree walk both use. It prunes node_modules and .git at any depth; the old find -mindepth 2 never pruned a top-level node_modules.
  • The mise cache key also hashes every mise.toml under the working directory, so a root job's cache holds every unit's tools instead of restoring root-only tools forever.

A unit job is unchanged unless it nests another unit. janus's e2e/playwright.config.ts has no e2e-ui recipe, so it is skipped.

Verified: just lint test passes (505 bats). New cases cover bunx and npx nested installs, a config without e2e-ui, one inside a top-level node_modules, and a failing install stopping before the tests.
Next: release 7.0.3, then repin the ten v7 PRs and telos#180.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3

On 7.0.2, the repo-root callers (`working_directory: "."`) fail on three v7 migration PRs. The root justfile runs every unit's recipes, but the root job sets up only the root: - project/janus#102 `ci: janus-root` and cjournois/library#230 `ci: library`: `sh: 1: cargo: not found`. #93's nested `mise install` commit was pushed after the PR merged, so 7.0.2 never shipped it. - project/ergon#86 `ci: ergon`: `services/ergon-device`'s `test` chains `e2e-ui`, and nothing installs chromium (`browserType.launch: Executable doesn't exist`). `recipe.sh ui` only looks for a `playwright.config` in the working directory itself. Changes: - `setup.sh mise-install` runs `mise install` in every directory below the working directory that has a `mise.toml` (the a80da1f change). - `recipe.sh tests` first installs chromium in each nested unit that has a `playwright.config` and an `e2e-ui` recipe. It runs from that unit's directory, so its own Playwright picks the browser revision: bunx with a `bun.lock`, npx otherwise. `ui` shares the same `install_chromium`. - `lib.sh nested_dirs` is the one tree walk both use. It prunes `node_modules` and `.git` at any depth; the old `find -mindepth 2` never pruned a top-level `node_modules`. - The mise cache key also hashes every `mise.toml` under the working directory, so a root job's cache holds every unit's tools instead of restoring root-only tools forever. A unit job is unchanged unless it nests another unit. janus's `e2e/playwright.config.ts` has no `e2e-ui` recipe, so it is skipped. Verified: `just lint test` passes (505 bats). New cases cover bunx and npx nested installs, a config without `e2e-ui`, one inside a top-level `node_modules`, and a failing install stopping before the tests. Next: release 7.0.3, then repin the ten v7 PRs and telos#180. Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
fix: a repo-root job gets every unit's mise tools and Playwright browser
Some checks failed
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 48s
ci: reusable-pipeline / CI Pipeline (push) Has been cancelled
42864a91e9
setup.sh mise-install also installs each nested mise.toml (cargo for janus, library).
recipe.sh tests installs chromium in each nested unit with an e2e-ui recipe first (ergon).
nested_dirs in lib.sh walks the tree once, pruning node_modules and .git at any depth.
The mise cache key hashes every mise.toml under the working directory.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
cjournois deleted branch fix/root-caller-tools 2026-11-03 17:22:22 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/reusable-pipeline!94
No description provided.