Repository navigation
Check out the code inside the Linux containers - #6178
Merged
Merged
Conversation
…der can't fail the job
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
trunkbuild since ~14:00 has Linux jobs failing at checkout (exit 128), e.g. 27012, 27006.How AI was used in this PR
Claude Code found the cause in the job logs and wrote the change. I reviewed the diff.
Proposed Changes
rootin Docker, but the agent checks out the code as thebuildkite-agentuser, in a folder it reuses for the next job. When root-owned files are left there,git cleanand the folder's removal fail, the folder ends up half deleted, and from then on every job on that agent fails at checkout. Severaldefaultagents are in that state now.custom-checkoutwithskip_checkout: true) and check out inside the container, as root: empty the folder, fetch the build's commit (--depth 1), check it out. That repairs a broken folder instead of failing on it, and nothing a job leaves behind can break the next one.Testing Instructions
Pre-merge Checklist