Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of ci: clean GOCACHE before build into release/1.3.x #17820

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #17808 to be assessed for backporting due to the inclusion of the label backport/1.3.x.

The below text is copied from the body of the original PR.


This is basically to avoid Fear/Uncertainty/Doubt.

The github action actions/setup-go (and, with a different chache key, hashicorp/setup-golang) caches both GOMODCACHE (go source files), which is good, and GOCACHE (build outputs), which might be bad, if the cache was built on an OS with an older glibc than we want to support. from go help cache:

[...] the build cache does not detect changes to C libraries imported with cgo.

I think we've been okay so far, because the cache has always(~?) been built on 20.04 machines, but to be safe, this wipes the build cache (leaving the mod cache alone) before building.

related PR that checks the build after the fact: #17706

@hc-github-team-nomad-core hc-github-team-nomad-core requested review from a team as code owners July 6, 2023 17:48
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/ci-build-go-clean-cache/routinely-careful-osprey branch from 1d528b1 to 8dd598a Compare July 6, 2023 17:48
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit 9f9926f into release/1.3.x Jul 6, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/ci-build-go-clean-cache/routinely-careful-osprey branch from 550a763 to 8fae598 Compare July 6, 2023 17:48
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/ci-build-go-clean-cache/routinely-careful-osprey branch July 6, 2023 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants