chore: clear cache for conda default test - #258
Merged
Conversation
Contributor
Author
|
One thing to think about, there is a similar issue with the |
When retried, it will use the cache created in the first instance and it will fail log parsing checks. Clearing the cache will ensure no layer reuse.
sgaist
force-pushed
the
chore/clear-cache-for-conda
branch
from
July 22, 2026 18:34
32549bb to
320d27c
Compare
The RetryBuild struct is used with conda tests which are prone to errors unrelated to the buildpack itself. Restarting the build usually fixes that but will take advantage of the cache having been created during the first build and thus loses the information searched. Thus Keeping all the logs will allow the tests that verify that conda has been installed once. It is not possible for all the tests to just clear the cache as some of them are verifying that the existing cache is indeed not used.
Contributor
Author
|
I implemented returning all the logs as a single string currently as there is another test that also checks that a different version of Miniconda has been freshly installed over an existing cache and thus cannot use clear cache when building. |
TheSuperiorStanislav
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The conda default test build sometimes fail for unexpected reasons unrelated to the logic of the buildpacks and thus is retried.
Usually, the second try is successful however it uses the cache generated from the initial build and while it shows a working buildpack, the logs generated from this second build will not contain the expected output.
Thus in this case, clear the caches when building. It will do nothing for the initial build, and ensures that the second one starts from fresh.
Use Cases
Reduce the flackyness of the tests as the error generated in this case comes only from not having the log containing the expected content.
Checklist