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

Cache Go builds on sdk/go.sum #2483

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Apr 21, 2023

This is an unusual repository - go.sum changes all the time, while there are not so many parallel builds. This means that typically all PRs have cache misses because they edit some go.sum somewhere. It would be preferable to fetch the wrong build cache (and rewrite it in each PR), hoping some parts of it still speed up the build, than it is to accept a cache miss.

This PR relies on the fact that sdk/go.sum is fairly stable, and uses it as a key. This is less precise but might be preferable.

@t0yv0 t0yv0 requested review from thomas11 and iwahbe April 21, 2023 22:48
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

1 similar comment
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth trying

This is an unusual repository - go.sum changes all the time, while there are not so many parallel builds. This means
that typically all PRs have cache misses because they edit some go.sum somewhere. It would be preferable to fetch the
wrong build cache, hoping some parts of it still speed up the build, than it is to accept a cache miss.

This PR relies on the fact that sdk/go.sum is fairly stable, and uses it as a key. This is less precise but might be
preferable.
@t0yv0 t0yv0 force-pushed the t0yv0/cache-go-builds-on-sdk-sum branch from 8801558 to 6fa1a7e Compare April 24, 2023 18:58
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@t0yv0 t0yv0 merged commit 276e17c into master Apr 24, 2023
16 checks passed
@t0yv0 t0yv0 deleted the t0yv0/cache-go-builds-on-sdk-sum branch April 24, 2023 20:33
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.

None yet

2 participants