-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
tests/integration/conftest.py
Outdated
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]") |
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.
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
.github/workflows/ci.yaml
Outdated
with: | ||
cache: true | ||
cache: false # TODO: will change to `true` before merge |
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.
Do not forget to remove before merging. Tnx!
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)