Merge pull request 'ci(ui-test): clean root-owned build artifacts so runner teardown succeeds' (#84) from feature/ci-ui-test-build-cleanup into development
Tests · UI / test (push) Successful in 3m15s
Tests · UI / test (push) Successful in 3m15s
This commit was merged in pull request #84.
This commit is contained in:
@@ -119,3 +119,16 @@ jobs:
|
|||||||
name: playwright-traces
|
name: playwright-traces
|
||||||
path: ui/frontend/test-results/
|
path: ui/frontend/test-results/
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
|
- name: Remove root-owned build artifacts
|
||||||
|
if: always()
|
||||||
|
# In host-mode the job runs as root, so vite (test:pwa),
|
||||||
|
# svelte-kit and Playwright write these outputs root-owned into
|
||||||
|
# the shared host workspace. The act_runner (non-root) then
|
||||||
|
# cannot remove them at teardown ("unlinkat ... permission
|
||||||
|
# denied"), which spuriously fails this or a sibling job that
|
||||||
|
# inherits the dirty workspace (observed on go-unit). Clean them
|
||||||
|
# here while the step still has root, after the uploads above.
|
||||||
|
run: |
|
||||||
|
rm -rf ui/frontend/build ui/frontend/.svelte-kit \
|
||||||
|
ui/frontend/test-results ui/frontend/playwright-report
|
||||||
|
|||||||
Reference in New Issue
Block a user