Skip to content

Conversation

lucasgameiroborges
Copy link

@lucasgameiroborges lucasgameiroborges commented Nov 26, 2024

Part of the 4-PR bundle to merge PostgreSQL 16. See doc for further info: https://docs.google.com/document/d/1K4xMxKDOiHfdCTc_hxMh6bW1DCZ6HC6wa6g8tAJAtno/edit?tab=t.0

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 72.59528% with 151 lines in your changes missing coverage. Please review.

Project coverage is 74.90%. Comparing base (ab80bae) to head (b2a7397).
Report is 1 commits behind head on 16/edge.

Files with missing lines Patch % Lines
src/config.py 75.77% 51 Missing and 51 partials ⚠️
src/charm.py 64.17% 18 Missing and 6 partials ⚠️
src/patroni.py 54.76% 16 Missing and 3 partials ⚠️
src/relations/postgresql_provider.py 66.66% 2 Missing and 1 partial ⚠️
src/backups.py 66.66% 0 Missing and 2 partials ⚠️
src/relations/async_replication.py 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           16/edge     #788      +/-   ##
===========================================
- Coverage    75.53%   74.90%   -0.64%     
===========================================
  Files           12       11       -1     
  Lines         3115     3383     +268     
  Branches       466      486      +20     
===========================================
+ Hits          2353     2534     +181     
- Misses         621      660      +39     
- Partials       141      189      +48     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Lucas Gameiro Borges and others added 26 commits November 26, 2024 20:59
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Fix ports

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>

* Remove unused import

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>

* Remove unused charm library and fix unit tests

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>

* Fix identation

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>

* Bump libs

* Conditional set_ports logic

* Unit test

* Don't expect juju managed resources

---------

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Co-authored-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
juju:
- agent: 2.9.51 # renovate: juju-agent-pin-minor
libjuju: ==2.9.49.1 # renovate: latest libjuju 2
allure_on_amd64: false
Copy link
Author

Choose a reason for hiding this comment

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

no more juju 2

name: Promote charm
uses: canonical/data-platform-workflows/.github/workflows/_promote_charm.yaml@v30.2.0
with:
track: '16'
Copy link
Contributor

Choose a reason for hiding this comment

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

Permadiff.

Comment on lines +308 to +321
logger.info("rerelate test app")
await ops_test.model.applications[DATABASE_APP_NAME].remove_relation(
"database", f"{APPLICATION_NAME}:{FIRST_DATABASE_RELATION_NAME}"
)
await ops_test.model.wait_for_idle(
apps=[DATABASE_APP_NAME, APPLICATION_NAME], status="active", raise_on_blocked=True
)
await ops_test.model.relate(
DATABASE_APP_NAME, f"{APPLICATION_NAME}:{FIRST_DATABASE_RELATION_NAME}"
)
await ops_test.model.wait_for_idle(
apps=[DATABASE_APP_NAME, APPLICATION_NAME], status="active", raise_on_blocked=True
)

Copy link
Contributor

Choose a reason for hiding this comment

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

DB is owned by the user of the test app in the other model, so the test app in this model loses access to the public schema. Rerelating to change ownership. Not sure why this isn't failing on VM.

DATABASE_APP_NAME,
application_name=DATABASE_APP_NAME,
num_units=1,
channel="14/stable",
Copy link
Contributor

Choose a reason for hiding this comment

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

Was testing the channel.


@pytest.mark.group(1)
# No arm edge
@markers.amd64_only
Copy link
Contributor

Choose a reason for hiding this comment

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

No Arm edge yet.

@dragomirp dragomirp self-requested a review March 18, 2025 21:10
Copy link
Member

@marceloneppel marceloneppel left a comment

Choose a reason for hiding this comment

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

LGTM!

@dragomirp dragomirp merged commit 71e8e16 into 16/edge Mar 19, 2025
59 checks passed
@dragomirp dragomirp deleted the test-pg-16 branch March 19, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, UI change, or workload upgrade Libraries: Out of sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants