Skip to content

Check out the code inside the Linux containers - #6178

Merged
senadir merged 1 commit into
trunkfrom
checkout-linux-jobs-in-docker
Nov 24, 2026
Merged

senadir merged 1 commit into
trunkfrom
checkout-linux-jobs-in-docker

Conversation

@senadir

@senadir senadir commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Related issues

  • Every trunk build 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

  • The Linux jobs run as root in Docker, but the agent checks out the code as the buildkite-agent user, in a folder it reuses for the next job. When root-owned files are left there, git clean and the folder's removal fail, the folder ends up half deleted, and from then on every job on that agent fails at checkout. Several default agents are in that state now.
  • The six Linux Docker steps now skip the agent's checkout (custom-checkout with skip_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.
  • Mac and Windows steps are unchanged.

Testing Instructions

  • This PR's Linux jobs (Lint, Unit Tests on linux, CLI E2E on linux, E2E on linux) check out and pass, including on the agents that fail today.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@senadir
senadir requested a review from a team as a code owner November 24, 2026 15:03
@senadir
senadir enabled auto-merge (squash) November 24, 2026 15:03

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: senadir is a trusted author.

@senadir
senadir merged commit f7fac45 into trunk Nov 24, 2026
13 checks passed
@senadir
senadir deleted the checkout-linux-jobs-in-docker branch November 24, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant