-
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 #629
Avoid broken macaroonbakery release #629
Conversation
5618bb6
to
81237a5
Compare
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)
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)
81237a5
to
af6f2d1
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stable/wallaby #629 +/- ##
==================================================
- 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. |
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
Starting at 2.9.45.0 the walrus operator is used, but it is not supported until py3.8.
41a5b6d
to
bc5334f
Compare
d3ab8b9
to
5808349
Compare
This avoids running with py310 which doesn't make sense for focal.
5808349
to
7826a64
Compare
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.
329201c
into
openstack-charmers:stable/wallaby
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
Also drop py36 from github workflow as it is no longer available
on ubuntu-latest and not needed for xena which is focal based.
(cherry picked from commit 8be4948)