Title: CI caching: cache Go build cache by go.sum hash and reuse artifacts between legs · Issue #288 · developing-today/code · GitHub
Open Graph Title: CI caching: cache Go build cache by go.sum hash and reuse artifacts between legs · Issue #288 · developing-today/code
X Title: CI caching: cache Go build cache by go.sum hash and reuse artifacts between legs · Issue #288 · developing-today/code
Description: Caching in the mcpx workflows is thinner than it should be: setup-go caches module downloads, but nothing caches the Go build cache (~/.cache/go-build), so the test leg recompiles packages from cold on most runs. The nix build leg (while...
Open Graph Description: Caching in the mcpx workflows is thinner than it should be: setup-go caches module downloads, but nothing caches the Go build cache (~/.cache/go-build), so the test leg recompiles packages from col...
X Description: Caching in the mcpx workflows is thinner than it should be: setup-go caches module downloads, but nothing caches the Go build cache (~/.cache/go-build), so the test leg recompiles packages from col...
Opengraph URL: https://github.com/developing-today/code/issues/288
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CI caching: cache Go build cache by go.sum hash and reuse artifacts between legs","articleBody":"Caching in the mcpx workflows is thinner than it should be:\n\n- setup-go caches module downloads, but nothing caches the Go build cache (~/.cache/go-build), so the test leg recompiles packages from cold on most runs.\n- The nix build leg (while it exists) starts from an empty store every run — no cachix and no magic-nix-cache anywhere in the repo.\n- Artifacts produced by one leg are never reused by another; each workflow re-does setup (checkout + four toolchain installs) from scratch.\n\nProposal: add actions/cache for the Go build cache and module cache keyed on go.sum hashes (with restore-keys fallbacks), and share build artifacts between legs via actions/upload-artifact + download-artifact where a second leg currently recomputes them. Cache keys must be content hashes (go.sum / bun.lock), never branch names. If the nix-in-GHA replacement lands first, scope this to whatever legs remain.\n\nAcceptance: cache hit rate visible in run logs; mcpx workflow wall time down measurably on repeat runs with unchanged go.sum.\n\n## Acceptance criteria\n\n- [ ] The mcpx workflows cache the Go build cache and module cache with keys derived from content hashes (go.sum / bun.lock) and restore-keys fallbacks — never branch names.\n- [ ] Run logs show cache hits on repeat runs with unchanged go.sum, and mcpx workflow wall time is measurably lower on those runs than on cold runs.\n- [ ] Where a second leg currently recomputes a first leg's output, the artifact is shared via upload/download-artifact instead.\n- [ ] If the nix-in-GHA replacement has landed by the time this is worked, the caching is scoped to the legs that remain.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-18T13:29:11Z","url":"https://github.com/developing-today/code/issues/288"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:46fe4dae-c3ba-f70d-7be4-4ff9f9f5db15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB68:DAF5F:7A6BFD:9E45ED:6B062902 |
| html-safe-nonce | 3bc8a9c772e6081ffb7fdb6baca237c977d935e3458e75025a38859b0da7ad67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjY4OkRBRjVGOjdBNkJGRDo5RTQ1RUQ6NkIwNjI5MDIiLCJ2aXNpdG9yX2lkIjoiMjA4NDkxMjc3ODUwMTI2NTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7781ccfb6e8e170b2212d7beab094e56ae288ac9d2afb0ff67a058d75ffd42be |
| hovercard-subject-tag | issue:5910018993 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/288/issue_layout |
| twitter:image | https://opengraph.githubassets.com/791c8ec518e49f4e8032b5cdc332f25d2538c2e0e4c8a06d0c2573b740ac71bb/developing-today/code/issues/288 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/791c8ec518e49f4e8032b5cdc332f25d2538c2e0e4c8a06d0c2573b740ac71bb/developing-today/code/issues/288 |
| og:image:alt | Caching in the mcpx workflows is thinner than it should be: setup-go caches module downloads, but nothing caches the Go build cache (~/.cache/go-build), so the test leg recompiles packages from col... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width