You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: repeated pushes to a PR don't reuse Go build objects #781
Problem. Repeated pushes to the same pull request get no incremental reuse of Go build objects. Every push recompiles the PR's changed packages from the cache it restored. Long-lived PRs that are pushed often pay that cost on every push, and PR CI is where people usually wait.
Why (measured by reading .github/actions/setup-env/action.yml).
The Go build cache key is gobuild-v3-<os>-go<suffix>-<hash of go.mod/go.sum>, and actions/cache saves only when that key misses.
A PR that doesn't change dependencies has the same key as main. It restores main's entry and never saves.
Later pushes to the same PR also restore that entry and don't update it, so objects compiled on an earlier push are never kept.
Activity