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 #630

Merged
merged 6 commits into from
Dec 12, 2023

Conversation

coreycb
Copy link

@coreycb coreycb commented Dec 12, 2023

No description provided.

lathiat and others added 6 commits December 12, 2023 09:25
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)
These are no longer needed on the stable/wallaby branch.

(cherry picked from commit 6122daa)
(cherry picked from commit 772f976)
(cherry picked from commit 59811f3)
This avoids running with py310 which doesn't make sense for focal.

(cherry picked from commit 7826a64)
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (55e8200) 82.45% compared to head (b5c03ec) 82.27%.

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

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 bf7bb59 into openstack-charmers:stable/victoria 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