fix: a repo-root job gets every unit's mise tools and Playwright browser #94
No reviewers
Labels
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cjournois/reusable-pipeline!94
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/root-caller-tools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:ci: janus-rootand cjournois/library#230ci: library:sh: 1: cargo: not found. #93's nestedmise installcommit was pushed after the PR merged, so 7.0.2 never shipped it.ci: ergon:services/ergon-device'stestchainse2e-ui, and nothing installs chromium (browserType.launch: Executable doesn't exist).recipe.sh uionly looks for aplaywright.configin the working directory itself.Changes:
setup.sh mise-installrunsmise installin every directory below the working directory that has amise.toml(thea80da1fchange).recipe.sh testsfirst installs chromium in each nested unit that has aplaywright.configand ane2e-uirecipe. It runs from that unit's directory, so its own Playwright picks the browser revision: bunx with abun.lock, npx otherwise.uishares the sameinstall_chromium.lib.sh nested_dirsis the one tree walk both use. It prunesnode_modulesand.gitat any depth; the oldfind -mindepth 2never pruned a top-levelnode_modules.mise.tomlunder 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.tshas noe2e-uirecipe, so it is skipped.Verified:
just lint testpasses (505 bats). New cases cover bunx and npx nested installs, a config withoute2e-ui, one inside a top-levelnode_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