-
Notifications
You must be signed in to change notification settings - Fork 208
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
Inconsistent (redundant?) bundle builds #2503
Comments
I assume this issue is related to #2391 as well (?) |
Looks like the underlining JIT build issue is the same, although there's no build-arg involved here. |
@tamirkamara This doesn't reproduce as easily as your reproduction steps show. Are there any characteristics about your bundles that rebuild at the wrong times? Do you pass any flags to the build command? Do you run out of disk space and sometimes prune your local Docker cache? |
@carolynvs Most of our bundles exhibit this behavior with porter v1.0.4. For example: https://github.com/microsoft/AzureTRE/tree/main/templates/workspaces/base (porter v1.0.8 with autobuild disabled solves this issue for us so maybe we can close it?) |
It's to know that 1.0.8 with autobuild disabled is working for you. Yes, we can close for now and I'll keep an eye out for if I see it reproduce locally. Thanks! |
I was able to reproduce this while fixing a bug in today's release. Reopening! The problem is that when we calculate the manifest digest on the bundle.json stamp, we don't consistently sort the mixins, so depending on how Go feels like sorting the mixin map, we can get a different digest, and trigger rebuild. |
Sorry this took so long to track down and reproduce! This will be included in this week's 1.0.13 release |
Describe the bug
It looks like porter decides to rebuild a bundle for no consistent reason.
I see this when calling publish right after a build which is rebuilding everything. I also see it with explain...
To Reproduce
Steps to reproduce the behavior:
porter build && for i in {1..9}; do porter explain -oyaml > $i.yaml; done
Expected behavior
Version
Copy the output of
porter version
belowporter v1.0.4 (e3a2a5e)
The text was updated successfully, but these errors were encountered: