-
Notifications
You must be signed in to change notification settings - Fork 19
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
tenacity >= 8.4 breaks unit tests #442
Comments
Thank you for the report! I have assigned reviewers to your PR. tnx! |
thanks for the report & for the early notice about issues in our tests with the newer version of tenacity! @tonyandrewmeyer is running |
this fixture to disable tenacity in router unit tests might be of use: although not sure if this issue exclusively affects unit tests (maybe it affects real deployments?) |
Right now, ops does it in our CI: we patch in the latest main version of ops and run your tests (also a handful of other charms) to try to warn us if we inadvertently break something. I also do the same in the tool I use offline to run the tests of ~140 charms when we're wanting to evaluate how changes impact charms. However, I think we are doing this the wrong way, and so opened an ops issue (canonical/operator#1272) to improve things on our side. So I hope that shortly we will not actually be doing this regularly. |
I'd suggest using |
We should patch tenacity on all unit tests. Unfortunately we did not yet migrated to |
@tonyandrewmeyer , checking this it no longer seems to be the topical. I'm closing. Feel free to reopen it. |
Steps to reproduce
poetry lock
tox
Expected behavior
All tests pass.
Actual behavior
Versions
Operating system: Ubuntu 24.04 LTS
Juju CLI: N/A
Juju agent: N/A
Charm revision: 2b48058
microk8s: N/A
Log output
Juju debug log: N/A
Additional context
The text was updated successfully, but these errors were encountered: