-
Notifications
You must be signed in to change notification settings - Fork 9
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
pytest_operator_cache prevents non-cached build_charm
#82
Comments
This is by design—so that caching fails with an error instead of failing silently. Also, how would the plugin differentiate between two different builds of the same charm? i.e. two calls to It looks like we need to add an option to build without the cache (maybe an |
build_charm
I see your point. |
Found another solution: unzip the .charm file, modify the charm, and rezip the .charm file This prevents adding 1 hour+ to the upgrade integration test (from using a non-cached build) |
In the future, if it's necessary to build multiple versions of the same charm using the cached workflow, it may be possible to add this functionality to the workflow. This might be a better solution if the modifications become more complex (e.g. modifying the charmcraft.yaml file), but for simple modifications, unzipping & rezipping the .charm file seems much simpler |
Plugin
pytest_operator_cache
will always try to use cached charm file.Maybe fallback (here?) to use
pytest_operator.build_charm
?Use-case for the mysql upgrade rollback test, where we need to refresh with a faulty charm.
The test and the error
The text was updated successfully, but these errors were encountered: