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

x/build/cmd/coordinator: use cmd/go's build caching #28950

Open
bradfitz opened this issue Nov 26, 2018 · 5 comments
Open

x/build/cmd/coordinator: use cmd/go's build caching #28950

bradfitz opened this issue Nov 26, 2018 · 5 comments
Labels
Builders x/build issues (builders, bots, dashboards) FeatureRequest NeedsFix The path to resolution is known, but the work has not been done. Performance
Milestone

Comments

@bradfitz
Copy link
Contributor

Now that cmd/go has good caching, cmd/coordinator should use it, somehow.

We'd likely need some hooks in cmd/go to accommodate our needs, but Russ said he was fine with that when I asked him maybe a year ago.

/cc @dmitshur @bcmills

@bradfitz bradfitz added Performance Builders x/build issues (builders, bots, dashboards) NeedsFix The path to resolution is known, but the work has not been done. FeatureRequest labels Nov 26, 2018
@gopherbot gopherbot added this to the Unreleased milestone Nov 26, 2018
@dmitshur
Copy link
Contributor

Isn't the build cache tied to a specific compiler version? As soon as the compiler changes just a bit, every package would need to be rebuilt.

Can you elaborate on how the build cache could be used by cmd/coordinator?

@bradfitz
Copy link
Contributor Author

Many CLs don't affect the compiler. (std changes, doc updates, etc)

And today we effectively build+test everything twice: trybots and then again for post-submit builds.

@mvdan
Copy link
Member

mvdan commented Nov 26, 2018

Would both the trybots and builders use caching? I presume that trybots are the ones where total run-time matters the most.

I agree that this would be a good step forward. One possible disadvantage I can see is that we would test the compiler less often. It's easier to catch flakes and very unlikely crashes in the compiler if every builder compiles the entirety of Go at every run. I wonder if it would be a problem if we lost that, though.

@ianlancetaylor
Copy link
Contributor

I don't recall seeing much flakiness in the compiler itself, nor the assembler nor linker. I think it's OK to run them less often.

@bcmills
Copy link
Contributor

bcmills commented Nov 27, 2018

If we have spare capacity and want to use it to check for flakiness, we can always issue extra builds with clean caches (or with GODEBUG=gocacheverify=1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Builders x/build issues (builders, bots, dashboards) FeatureRequest NeedsFix The path to resolution is known, but the work has not been done. Performance
Projects
None yet
Development

No branches or pull requests

6 participants