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

Avoid broken macaroonbakery release #629

Merged
merged 6 commits into from
Dec 12, 2023

Conversation

coreycb
Copy link

@coreycb coreycb commented Dec 8, 2023

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)

@coreycb coreycb force-pushed the macroon-wallaby branch 2 times, most recently from 5618bb6 to 81237a5 Compare December 8, 2023 18:24
lathiat and others added 2 commits December 8, 2023 13:51
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)
Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (eb4769c) 82.45% compared to head (7826a64) 82.27%.

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.
📢 Have feedback on the report? Share it here.

Corey Bryant added 2 commits December 8, 2023 14:06
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.
These are no longer needed on the stable/wallaby branch.

(cherry picked from commit 6122daa)
(cherry picked from commit 772f976)
@coreycb coreycb force-pushed the macroon-wallaby branch 2 times, most recently from d3ab8b9 to 5808349 Compare December 8, 2023 21:00
This avoids running with py310 which doesn't make sense for focal.
Copy link
Member

@freyes freyes left a 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.

@freyes freyes merged commit 329201c into openstack-charmers:stable/wallaby Dec 12, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants