Skip to content

ci(go): keep the vet job's build cache on disk - #5112

Merged
Quick104 merged 3 commits into
mainfrom
fix/ci-route-inventory-go-cache
Nov 22, 2026
Merged

Quick104 merged 3 commits into
mainfrom
fix/ci-route-inventory-go-cache

Conversation

@Quick104

@Quick104 Quick104 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: N/A (no client-visible change)

Since the go.sum change in #5047, ci / Go vet and contracts fails on main and on every pull request. route-inventory reports that the tree does not type-check ("loading compiled Go files from cache: reading srcfiles list: cache entry not found"), and the step then says the inventory is stale. The inventory itself is current.

The cause is a full build cache. setup-go mounts the Go build cache on a tmpfs with no size, which gets half of the hosted runner's 16 GB, so 8 GB. The vet job caches three builds of the tree (Linux vet, darwin vet, and the trimmed darwin node build), about 6 GB for one commit. After the go.sum change, the job restores the last saved cache across the go.sum boundary and recompiles nearly everything on top of it. That reaches about 11 GB. Go ignores cache writes that fail, but go list -compiled writes each cgo package's source file list and reads it straight back, so route-inventory's package load fails. Main never saves a new cache while the job fails, so every run restores the same stale cache and fails the same way.

Approach

setup-go skips the tmpfs for the vet cache, so that job keeps its build cache on disk, where size is not a problem. The other Go jobs keep the tmpfs; each of them caches one Linux build. The route-inventory check is unchanged.

The decision lives in the setup-go action, not in a workflow input: ci.yml runs trusted-linux-ci.yml from main, so a workflow change would not take effect on a pull request until it merged, but pull requests run the actions from their own head.

Validation

  • Local reproduction (go1.27.4), running the vet job's Go steps in order: a fresh cache at fd4282d reaches 5.9 GB, and 1d6a023 on top of it reaches 11 GB. On an 8 GB tmpfs the same sequence fills it to 100% and route-inventory fails with the CI error. On disk it passes.
  • This PR's ci / Go vet and contracts run restored the same stale cache main restores, skipped the tmpfs, and passed in under 8 minutes; route-inventory reported the inventory current.
  • With one route removed from contracts/api/v2/route-inventory.json, make verify-route-inventory still exits 1 with the stale-inventory error.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-5112/

Risks

The vet job's compile output now goes to the runner disk instead of memory, which can make that job a little slower. Only hosted runners are affected. Self-hosted runners never mounted the tmpfs.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a (CI configuration change, follow-up run)

🤖 Generated with Claude Code

Note

Keep the vet job's Go build cache on disk in the setup-go action

Changes the tmpfs mount step in action.yml so it is skipped when inputs.cache-name is vet. The vet cache is large, and tmpfs runs out of space, which makes cache writes fail. Other cache names still mount ~/.cache/go-build as tmpfs.

Macroscope summarized f32a5c8.

The Go vet and contracts job caches three builds of the tree, about 6 GB
for one commit. After the go.sum change in #5047, its restored cache plus
the recompiled tree passed the 8 GB tmpfs. Go drops cache writes it has no
room for, and route-inventory's go list then failed reading back the cgo
file list it had just failed to write, so the job failed on main and on
every pull request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 22, 2026
@silo-kody

silo-kody Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T09:04:31.011387Z f32a5c8 New commits
🔒 Security Review ✅ Completed 2026-11-22T09:06:27.717280Z f32a5c8 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The setup action now skips hosted-runner tmpfs setup when cache-name is vet. Comments describe the vet cache’s disk usage and the tmpfs capacity concern.

Changes: Go build cache configuration

Layer / File(s) Summary
Condition hosted-runner tmpfs setup
.github/actions/setup-go/action.yml
Comments describe the vet cache’s disk usage and the tmpfs capacity concern. The tmpfs setup step now runs only on GitHub-hosted runners when cache-name is not vet.

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

Change: Bug fix

Suggested reviewers: darthshadow, blurbery

Merge Risk: Minimal · up to f32a5

This keeps the vet job's Go build cache on disk instead of in memory, which avoids the reported tmpfs-full failure in route-inventory. No concrete defect was found. The cost is possibly slower compilation on hosted runners, and no successful run after the change is reported yet.

Architecture risk: Low · up to f32a5

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/actions/setup-go/action.yml: Added comments describing the vet cache’s disk usage and the tmpfs capacity and cache-write failure scenario, and stating that the conditional is defined in the action because pull requests use the base workflow with their own actions.
  • observed — Modified behavior in .github/actions/setup-go/action.yml: The tmpfs setup step now runs only on GitHub-hosted runners when inputs.cache-name is not vet; previously it ran for all GitHub-hosted runners.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "ci(go): keep the vet job's build cache on disk" names the main change: the Go vet job's build cache stays on disk instead of tmpfs. The changeset adds a build-cache-in-memory input to setup…
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.
Description check Passed The description explains the problem (vet job failing on main and PRs because the Go build cache fills the 8 GB tmpfs), the approach (skipping the tmpfs mount for the vet cache in the setup-go action)…
Full details: Title check

Explanation

The title "ci(go): keep the vet job's build cache on disk" names the main change: the Go vet job's build cache stays on disk instead of tmpfs. The changeset adds a build-cache-in-memory input to setup-go and sets it to false for the vet job, which matches the title. The title is specific and concise, and it uses a conventional commit prefix.

Full details: Description check

Explanation

The description explains the problem (vet job failing on main and PRs because the Go build cache fills the 8 GB tmpfs), the approach (skipping the tmpfs mount for the vet cache in the setup-go action), validation steps, and risks. It directly relates to the changeset, which modifies the tmpfs mount condition in .github/actions/setup-go/action.yml.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0b07eaa5-a460-4c8b-9526-92d84b3cf180
Commits

Reviewing files that changed from the base of the PR and between 4796e64 and f32a5c8.

Files selected for processing: 1

  • .github/actions/setup-go/action.yml

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

@silo-triage silo-triage Bot added bug Something isn't working priority: P2 Limited scope, workaround exists, or polish labels Nov 22, 2026
@silo-kody

silo-kody Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

… run from their own head

Pull requests run trusted-linux-ci.yml from main, so a workflow input
would not reach them until merged. Drop the input and the probe job.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@Quick104
Quick104 merged commit ce8bb52 into main Nov 22, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/ci-route-inventory-go-cache branch November 22, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant