Skip to content

fix(ci): relocate TMPDIR off the Ubuntu 26.04 tmpfs for Linux builds - #1644

Merged
skevetter merged 1 commit into
mainfrom
fix/release-linux-tmpdir
Oct 22, 2026
Merged

skevetter merged 1 commit into
mainfrom
fix/release-linux-tmpdir

Conversation

@skevetter

@skevetter skevetter commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Release runs 39722696322 and 39673237110 failed in Build CLI Binary on ubuntu-latest with compile: writing output: ... disk quota exceeded. ubuntu-latest now resolves to 26.04, which mounts /tmp as a ~7.8G RAM-backed tmpfs with a user quota (actions/runner-images#14777). Go writes its work dir to /tmp.

Adds a composite action .github/actions/relocate-tmp that points TMPDIR and GOTMPDIR at RUNNER_TEMP on Linux (no-op elsewhere), and uses it in the Go/Electron-heavy jobs: release build-cli and build-desktop, pr-ci build-cli/unit/credential-host/lint, desktop-ci build-desktop. Replaces the one-off GOTMPDIR in pr-ci build-cli.

Summary by CodeRabbit

  • Chores
    • Updated desktop, CLI, lint, and test build workflows to use runner temporary storage for Go build files, reducing the risk of temporary storage quota failures.

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 8bc9f53
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6ad9a26a7f17dc1ab5a9ce49

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit 8bc9f53
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6ad9a26a0e0e090ad491afd2

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7732d11c-b0c6-4854-8770-2eaa532ec6b8
📥 Commits

Reviewing files that changed from the base of the PR and between c395256 and 8bc9f53.

📒 Files selected for processing: 4
  • .github/actions/relocate-tmp/action.yml
  • .github/workflows/desktop-ci.yml
  • .github/workflows/pr-ci.yml
  • .github/workflows/release.yml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

📝 Walkthrough

A Linux-only composite action sets TMPDIR and GOTMPDIR to RUNNER_TEMP. Desktop CI, PR CI, and release build jobs run the action after checkout. The GoReleaser build step no longer sets GOTMPDIR separately.

Changes: CI temporary directory relocation

Layer / File(s) Summary
Define temporary-directory relocation
.github/actions/relocate-tmp/action.yml
The composite action runs on Linux and adds TMPDIR and GOTMPDIR, both set to RUNNER_TEMP, to GITHUB_ENV.
Apply relocation in build workflows
.github/workflows/desktop-ci.yml, .github/workflows/pr-ci.yml, .github/workflows/release.yml
Desktop CI, PR CI, and release jobs run the action after checkout. The GoReleaser build step no longer sets GOTMPDIR separately.

Priority: ⬆️ High

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related issues

  • Issue 1551 reports disk quota exceeded during build-cli when Go temporary data fills /tmp. This change sets TMPDIR and GOTMPDIR to RUNNER_TEMP in workflow jobs.

Suggested reviewers: atty303

Merge Risk: ⚪ Minimal · up to 8bc9f

Linux CI and release jobs direct Go temporary files to the runner temporary directory before the relevant commands; no material merge risk remains.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the failure, root cause, implementation, and affected jobs. However, it omits the required template sections for issue tracking, change type, AI assistance, testing, checklist… Use the repository template. Add the applicable change-type and AI-assistance selections, issue reference or "none", testing and manual verification details, checklist status, and any relevant reviewer notes. State why integration tests are…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the CI fix: moving temporary directories off the Ubuntu 26.04 tmpfs for Linux builds.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (4 skipped: 4 unsupported.)

Full details: Description check

Explanation

The description explains the failure, root cause, implementation, and affected jobs. However, it omits the required template sections for issue tracking, change type, AI assistance, testing, checklist items, and reviewer notes.

Resolution

Use the repository template. Add the applicable change-type and AI-assistance selections, issue reference or "none", testing and manual verification details, checklist status, and any relevant reviewer notes. State why integration tests are not needed for this CI-only change.

✨ Finishing Touches
✨ Simplify code
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@skevetter
skevetter merged commit f05e0c8 into main Oct 22, 2026
213 of 216 checks passed
@skevetter
skevetter deleted the fix/release-linux-tmpdir branch October 22, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant