-
Notifications
You must be signed in to change notification settings - Fork 47
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
Avoid broken macaroonbakery release #630
Avoid broken macaroonbakery release #630
Conversation
macaroonbakery 1.3.3 has a broken protobuf dependency, add a requirement to avoid that specific release: go-macaroon-bakery/py-macaroon-bakery#94 Conflicts: test-requirements.txt (cherry picked from commit 8be4948) (cherry picked from commit 6307638)
Add separate workflow for testing on Python 3.6 as this requires an older Ubuntu release. Fixup unit tests for compatibility with newer versions of mock. Drop latest/stable functional test targets - this is actually 2.9.x of Juju and is already covered by the 2.9 targets and we want to avoid suddenly picking up a new Juju version because this will break with the new approach to version alignment in the Python module for Juju. Drop 2.8 functional test target - its broken and we don't really support this version any longer. Fixup iptables forwarding issues from LXD containers with a flush and re-create of rules. (cherry picked from commit 9277a94) (cherry picked from commit ee92b9b) (cherry picked from commit 355ad7a) (cherry picked from commit af6f2d1)
Commit b34de32a in openstacksdk replaced the appdirs library with the platformdirs library. The platformdirs library is not python 3.6 compatible and causes some challenges. Pin the openstacksdk to a lower version. Thanks to Billy Olsen for this patch. Taken from: https://review.opendev.org/c/openstack/charm-neutron-api/+/902607 (cherry picked from commit 3eb839c)
Starting at 2.9.45.0 the walrus operator is used, but it is not supported until py3.8. (cherry picked from commit bc5334f)
This avoids running with py310 which doesn't make sense for focal. (cherry picked from commit 7826a64)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stable/victoria #630 +/- ##
===================================================
- Coverage 82.45% 82.27% -0.18%
===================================================
Files 30 30
Lines 2781 2776 -5
===================================================
- Hits 2293 2284 -9
- Misses 488 492 +4 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. This fixes the build, so merging with a single +2. The failure on coverage is "ok" since this may be a side effect of the mock fixes.
bf7bb59
into
openstack-charmers:stable/victoria
No description provided.