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

charmcraft clean in cleanup_model #58

Open
rgildein opened this issue Mar 11, 2022 · 1 comment
Open

charmcraft clean in cleanup_model #58

rgildein opened this issue Mar 11, 2022 · 1 comment

Comments

@rgildein
Copy link
Contributor

I'm not sure if this is a problem on the side of the charmcraft, but many times
I've found myself in a situation where the integration test doesn't work and
it's because of a broken container that charmcraft uses to build a charm.

The error in such a situation is often not obvious and setting log-level to
debug do not provide much information, as charmcraft is not running without
--verbose flag.

The solution could be to add the charmcraft clean run in the _clean_model
function.

Manually running charmcraft clean is not always noticeable, as in many
projects pytest-operator is used to build test charms whose source code is
either in the sub-directory of integration tests 1 or clone from git
repository.


@rgildein
Copy link
Contributor Author

Example bash and after running charmcraft clean it works again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant