Title: fix(ci): GHA cache keys unique vs shared by davdhacs · Pull Request #19580 · stackrox/stackrox · GitHub
Open Graph Title: fix(ci): GHA cache keys unique vs shared by davdhacs · Pull Request #19580 · stackrox/stackrox
X Title: fix(ci): GHA cache keys unique vs shared by davdhacs · Pull Request #19580 · stackrox/stackrox
Description: Fix key issues for GHA cache of GOCACHE: unit-tests.yaml: add key-suffix for GOTAGS matrix go and go-postgres have GOTAGS matrix ("" / release) sharing one cache key. Each variant's trim deletes ~3GB of the other's entries every run. Fix: add key-suffix: ${{ matrix.gotags }}. scanner-build.yaml: set GOARCH on cache step pre-build-scanner-go-binary cross-compiles for 4 architectures but doesn't set GOARCH on the cache step. go env GOARCH returns the runner's native amd64, so all arches share one cache key with incompatible entries. Fix: add env: GOARCH: ${{ matrix.goarch }}. build.yaml: only separate race-condition-debug pre-build-go-binaries: default and prerelease share 93% of GOCACHE entries (only 6 packages use release build tags). Only separate race-condition-debug (-race/CGO_ENABLED=1, 39% unique). Verification Local GOCACHE entry overlap measurements: Variant New entries vs default Unique % Action prerelease (GOTAGS=release) +691 7% share race (-race, CGO_ENABLED=1) +6300 39% separate GOTAGS="" vs release (tests) +691 7% separate (trim causes 3GB/run thrashing) All CI passed (Build, Unit Tests, Style, Scanner). Partially generated by AI.
Open Graph Description: Fix key issues for GHA cache of GOCACHE: unit-tests.yaml: add key-suffix for GOTAGS matrix go and go-postgres have GOTAGS matrix ("" / release) sharing one cache key. Each variant's t...
X Description: Fix key issues for GHA cache of GOCACHE: unit-tests.yaml: add key-suffix for GOTAGS matrix go and go-postgres have GOTAGS matrix ("" / release) sharing one cache key. Each variant...
Opengraph URL: https://github.com/stackrox/stackrox/pull/19580
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d20cd796-06e9-b64a-69d5-36671b8ab380 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D5D0:10FBE0:DEBC25:13AF97F:6A4CAE83 |
| html-safe-nonce | b3fbeb11ceae2045785a65c7ece22f4c5276aa93ef060bc991c7f8401542ebcd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUQwOjEwRkJFMDpERUJDMjU6MTNBRjk3Rjo2QTRDQUU4MyIsInZpc2l0b3JfaWQiOiIyMDczMTQyNDA4NzQ5Mjk3MjgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 16ab32736e1b81ac0cc12c139aa1299c4bd35398d320a92970e4e4acc4d936e8 |
| hovercard-subject-tag | pull_request:3441392617 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/stackrox/stackrox/pull/19580/files |
| twitter:image | https://avatars.githubusercontent.com/u/105243888?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/105243888?s=400&v=4 |
| og:image:alt | Fix key issues for GHA cache of GOCACHE: unit-tests.yaml: add key-suffix for GOTAGS matrix go and go-postgres have GOTAGS matrix ("" / release) sharing one cache key. Each variant's t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/stackrox/stackrox git https://github.com/stackrox/stackrox.git |
| octolytics-dimension-user_id | 40638982 |
| octolytics-dimension-user_login | stackrox |
| octolytics-dimension-repository_id | 434017296 |
| octolytics-dimension-repository_nwo | stackrox/stackrox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 434017296 |
| octolytics-dimension-repository_network_root_nwo | stackrox/stackrox |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width