fix(ci): point E2E setup-node tool cache at RUNNER_TEMP #91

Merged
nrupard merged 1 commit from fix/e2e-runner-toolcache into main 2026-06-05 16:16:41 +02:00
Owner

Summary

Post-merge E2E run for PR #90 failed at Set up Node.js with EACCES: permission denied, mkdir '/opt/hostedtoolcache'. The opensuse-base runner doesn't grant write access to the default tool cache, so actions/setup-node@v4 errors out after successfully downloading and extracting Node (the cache-add is what trips it).

Fix: set RUNNER_TOOL_CACHE to ${{ runner.temp }}/toolcache at job-env level (per-job, writable, ephemeral) and pre-create it in a dedicated step.

Closes the E2E CI break; does not change any test behaviour.

Test plan

  • Merge to main; the post-merge E2E run reaches the Run E2E suite step (Node + Playwright install succeed, deploy-sync gate kicks in next).
## Summary Post-merge E2E run for PR #90 failed at `Set up Node.js` with `EACCES: permission denied, mkdir '/opt/hostedtoolcache'`. The opensuse-base runner doesn't grant write access to the default tool cache, so `actions/setup-node@v4` errors out after successfully downloading and extracting Node (the cache-add is what trips it). Fix: set `RUNNER_TOOL_CACHE` to `${{ runner.temp }}/toolcache` at job-env level (per-job, writable, ephemeral) and pre-create it in a dedicated step. Closes the E2E CI break; does not change any test behaviour. ## Test plan - [ ] Merge to main; the post-merge E2E run reaches the `Run E2E suite` step (Node + Playwright install succeed, deploy-sync gate kicks in next).
fix(ci): point E2E setup-node tool cache at RUNNER_TEMP
All checks were successful
Check / fmt + clippy + compile + tests (pull_request) Successful in 1m25s
Create release / Create release from merged PR (pull_request) Has been skipped
55eb53ce4b
The opensuse-base runner does not grant write access to the default `/opt/hostedtoolcache`, so `actions/setup-node@v4` fails the job with `EACCES: permission denied, mkdir '/opt/hostedtoolcache'` after the Node tarball has been downloaded and extracted (the cache-add is what trips the perms check; the install itself succeeds). The post-merge E2E run for PR #90 caught this in the wild.

Override `RUNNER_TOOL_CACHE` at job-env level to `${{ runner.temp }}/toolcache`, which is per-job, writable, and ephemeral, and pre-create it in a dedicated step so the action does not race the first mkdir.

#PMS-140
nrupard deleted branch fix/e2e-runner-toolcache 2026-06-05 16:16:41 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
psa-systems/mokosh-server!91
No description provided.