devops: fix upload-artifact@v4 incompatibility and stabilise E2E CI #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Status
E2E networking is fixed — 27 E2E tests pass. However the job still shows as "failed" due to a separate problem with artifact uploading.
Root cause chain
1.
upload-artifact@v4not supported on Gitea (GHES)Both the unit test and E2E jobs use
actions/upload-artifact@v4to upload screenshots/results. Gitea does not support the v2+ artifacts API:This causes the entire job to be marked as failed even though all tests passed.
2. Playwright cache is never saved
Because the upload step fails,
success()evaluates tofalsefor all subsequent steps — including the Playwright browser cache save. This means the cache is never written, and every run re-downloads ~280 MiB of Chromium binaries.Fix
Option A — Downgrade to
upload-artifact@v3(compatible with Gitea):Option B — Add
continue-on-error: trueto the upload steps:Option A is cleaner. Option B keeps v4 but silences the failure.
Note: if artifact upload is not needed at all (screenshots are mainly for local debugging), the upload steps could simply be removed.
Changes required
Upload screenshotsstep inunit-testsjobUpload E2E resultsstep ine2e-testsjobAcceptance criteria