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

Migrate to charmcraft 3 poetry plugin #448

Merged
merged 7 commits into from
Jan 14, 2025

Conversation

carlcsaposs-canonical
Copy link
Contributor

data-platform-workflows and charmcraftcache are migrating from charmcraft 2 to 3 to enable 24.04 based charms & to enable use of the poetry plugin, which fixes several longstanding issues with charmcraft (e.g. canonical/charmcraft#1077)

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.01%. Comparing base (fcb04d1) to head (5efef1b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #448   +/-   ##
=======================================
  Coverage   75.01%   75.01%           
=======================================
  Files           9        9           
  Lines        1313     1313           
  Branches      238      238           
=======================================
  Hits          985      985           
  Misses        255      255           
  Partials       73       73           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 16 to 21
def pgb_charm_focal(ops_test: OpsTest):
"""Build the pgbouncer charm."""
if architecture.architecture == "amd64":
index = 0
return pathlib.Path("[email protected]")
elif architecture.architecture == "arm64":
index = 1
return pathlib.Path("[email protected]")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will only work on CI or if charmcraft pack is run before the test

as of dpw v26, pytest-operator-cache only supports 22.04 and is deprecated: https://github.com/canonical/data-platform-workflows/blob/v26.0.0/python/pytest_plugins/pytest_operator_cache/deprecation_notice.md

with:
cache: true
cache: false # TODO: will change to `true` before merge
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not forget to remove before merging. Tnx!

@carlcsaposs-canonical carlcsaposs-canonical marked this pull request as ready for review January 14, 2025 09:40
@carlcsaposs-canonical carlcsaposs-canonical merged commit 2092622 into main Jan 14, 2025
54 of 55 checks passed
@carlcsaposs-canonical carlcsaposs-canonical deleted the charmcraft-3-migration branch January 14, 2025 09:49
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