-
Notifications
You must be signed in to change notification settings - Fork 203
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
build: fix turbo clean #1047
build: fix turbo clean #1047
Conversation
This reverts commit 8c869bf.
|
Conceptually, if we clear the artifacts in the setup step, wouldn't we always have to rebuild, so we could never benefit from the turbo cache in CI? If so, I feel like it would be sufficient to do a full clean+rebuild in one action (eg. "Build and validate artifacts") and use the cache in all other actions |
My understanding when running this locally is that the build is still cached. I can run I can also see it being useful to have an uncached build in CI to ensure we get fully accurate results, and it should probably be tied to the same job that does releases so we can ensure a clean and complete set of artifacts for npm, etc.? (I don't feel strongly about any of this, just thought I'd take a stab at trying to teach turbo a bit more about our intentions to see what the results were.) |
Another thing to note about the composite steps is that the get combined into a single entry in the CI logs, so it's a bit hard to figure out how much time is spent on the "sub-steps" of each composite action. So anything using the "Build" composite action will only see a "Build" step in CI rather than "Cache turbo build", "Build", "Outdated files ..." (the last one is the main one I was hoping to easily surface as a failure reason for the step). |
after #1057 is merged, I could potentially just use this PR as a revert for adding the "clean" steps in CI, since we shouldn't really need em anymore (pretty much all builds are either gitignored or clean themselves) |
reverts #1045 #1046 in favor of turbo clean
not sure how to repro the original issue to verify this approach works
if this doesn't work, another possible option is to have the mud codegen step (
build:mud
) do arimraf src/codegen
before running, so its part of the turbo build cache