Title: chore(ci): use commit SHA for go-build cache key by davdhacs · Pull Request #19173 · stackrox/stackrox · GitHub
Open Graph Title: chore(ci): use commit SHA for go-build cache key by davdhacs · Pull Request #19173 · stackrox/stackrox
X Title: chore(ci): use commit SHA for go-build cache key by davdhacs · Pull Request #19173 · stackrox/stackrox
Description: The weekly rotation (date +%Yw%U) made caches drop in usefulness within a week as code and dependencies changed. Using github.sha ensures each master push creates a fresh cache entry, improving cache hit quality for PR builds that restore from the latest master cache. Example runs: ~6 day old cache (23 commits in master; 11538 go source lines changed; 127 changed lines in go.mod files): https://github.com/stackrox/stackrox/actions/runs/22299402991/job/64503285263#step:5:95 2026-02-23T09:05:54Z. 21m 3s job time Cache hit for restore-key: go-build-v1-pre-build-cli-amd64-2026w07 (cache entry saved Feb 17 19:42 UTC) Same-day cache (1 commit in master; 34 go source lines changed; 0 changed lines in go.mod files): https://github.com/stackrox/stackrox/actions/runs/22304627732/job/64520656630#step:5:96 2026-02-23T11:42:34Z. 5m 12s job time Cache hit for: go-build-v1-pre-build-cli-amd64-2026w08 (cache entry saved Feb 23 09:25 UTC) 1 day old (14 commits in master; 564 go source lines changed; 0 changed lines in go.mod files): https://github.com/stackrox/stackrox/actions/runs/22384241635/job/64791416091?pr=19174#step:5:93 2026-02-25T05:53:38Z. 5m 44s job time Cache hit for: go-build-v1-pre-build-cli-amd64-2026w08 (cache entry saved Feb 23 09:25 UTC) Partially generated by AI.
Open Graph Description: The weekly rotation (date +%Yw%U) made caches drop in usefulness within a week as code and dependencies changed. Using github.sha ensures each master push creates a fresh cache entry, improving cac...
X Description: The weekly rotation (date +%Yw%U) made caches drop in usefulness within a week as code and dependencies changed. Using github.sha ensures each master push creates a fresh cache entry, improving cac...
Opengraph URL: https://github.com/stackrox/stackrox/pull/19173
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cb98fecf-bac4-da93-52f4-5bf8a754c437 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 941E:6DF5E:F5B4E6:14AAF7D:6A4C6638 |
| html-safe-nonce | a41a73f7608b8bdfbffeb0be5b89474c6991fa4c90827c98644adabb5ba2be53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDFFOjZERjVFOkY1QjRFNjoxNEFBRjdEOjZBNEM2NjM4IiwidmlzaXRvcl9pZCI6Ijc2MjE5MjM4ODY2NzQ1MDMyMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3ca399db0b35830c49dbb87ca7e836168bb113f7a8bf42ce6dbab342790653f1 |
| hovercard-subject-tag | pull_request:3323881688 |
| 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/19173/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 | The weekly rotation (date +%Yw%U) made caches drop in usefulness within a week as code and dependencies changed. Using github.sha ensures each master push creates a fresh cache entry, improving cac... |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width