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

Correctly enable caching of go mods on windows #12923

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

bogdandrutu
Copy link
Member

The current cache has a race condition and last executed job in the matrix most likely will save that cache since it has same name for all executions.

  • Add a setup job that downloads all go mod deps and caches them.
  • Add a per matrix group cache for the go-builds.

FYI: Re-create (#10873), for some reasons I could not reopen that PR.

Signed-off-by: Bogdan Drutu [email protected]

@bogdandrutu bogdandrutu requested a review from a team as a code owner August 3, 2022 11:51
@bogdandrutu bogdandrutu requested a review from mx-psi August 3, 2022 11:51
@mx-psi mx-psi added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Aug 3, 2022
@mx-psi
Copy link
Member

mx-psi commented Aug 5, 2022

Looks like you need to rebase

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Aug 20, 2022
@djaglowski djaglowski removed the Stale label Aug 20, 2022
@bogdandrutu bogdandrutu force-pushed the windowscache branch 2 times, most recently from a066029 to dd1ea02 Compare August 31, 2022 17:03
The current cache has a race condition and last executed job in the matrix most likely will save that cache since it has same name for all executions.

* Add a setup job that downloads all go mod deps and caches them.
* Add a per matrix group cache for the go-builds.

Signed-off-by: Bogdan Drutu <[email protected]>
@djaglowski djaglowski merged commit 3fd8604 into open-telemetry:main Aug 31, 2022
@bogdandrutu bogdandrutu deleted the windowscache branch August 31, 2022 19:36
arun-shopify pushed a commit to Shopify/opentelemetry-collector-contrib that referenced this pull request Sep 1, 2022
The current cache has a race condition and last executed job in the matrix most likely will save that cache since it has same name for all executions.

* Add a setup job that downloads all go mod deps and caches them.
* Add a per matrix group cache for the go-builds.

Signed-off-by: Bogdan Drutu <[email protected]>

Signed-off-by: Bogdan Drutu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants