Add node_modules/.vite-temp to .dockerignore to prevent Kaniko race condition #227
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/westside-app#227
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Type
Feature
Lineage
Discovered during validation of westside-landing#223. Pipeline #221 failed due to this race condition; #222 succeeded on retry.
Repo
forgejo_admin/westside-landingUser Story
As the CI pipeline
I want Kaniko builds to ignore Vite temp files
So that builds don't fail intermittently due to file race conditions
Context
Woodpecker pipeline #221 failed at the
build-and-pushstep. Kaniko'sCOPY . .directive listednode_modules/.vite-temp/vite.config.js.timestamp-*.mjsduring directory scan, but the file was deleted by the time COPY executed. This is a known Kaniko/Vite race condition. The retry (#222) succeeded because the temp file wasn't present. Fix is to addnode_modules/.vite-tempto.dockerignoreso Kaniko never tries to copy these transient files.File Targets
Files the agent should modify:
.dockerignore— addnode_modules/.vite-tempentryFiles the agent should NOT touch:
Dockerfile— no changes neededAcceptance Criteria
COPY . ., thennode_modules/.vite-tempis excludedTest Expectations
.dockerignorecontains the new entry.dockerignoreConstraints
.dockerignoreChecklist
Related
westside— project this affects