Skip to content

Conversation

dragomirp
Copy link
Contributor

@dragomirp dragomirp commented Oct 7, 2025

Issue

Solution

Checklist

  • I have cleaned any remaining cloud resources from my accounts.
  • I have added or updated any relevant documentation.

@dragomirp dragomirp added the not bug or enhancement PR is not 'bug' or 'enhancement'. For release notes label Oct 7, 2025
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.57%. Comparing base (782292f) to head (867fcee).
⚠️ Report is 1 commits behind head on 16/edge.

❌ Your project check has failed because the head coverage (64.57%) is below the target coverage (70.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff            @@
##           16/edge    #1206   +/-   ##
========================================
  Coverage    64.57%   64.57%           
========================================
  Files           17       17           
  Lines         4344     4344           
  Branches       671      671           
========================================
  Hits          2805     2805           
  Misses        1357     1357           
  Partials       182      182           

☔ 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.

@dragomirp dragomirp force-pushed the dpe-8426-port-tests branch from 98cb060 to 85ae99f Compare October 7, 2025 11:14
@dragomirp dragomirp force-pushed the dpe-8426-port-tests branch from 85ae99f to 76fe647 Compare October 7, 2025 11:26
password: str,
queries: list[str],
database: str,
commit: bool = False,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Diff: Raw not available for PG.

Comment on lines +1461 to +1464
psycopg2.connect(
f"dbname='{database}' user='{username}' host='{unit_address}' password='{password}' connect_timeout=10"
) as connection,
connection.cursor() as cursor,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Diff: Getting a cursor is different for psycopg2.

import subprocess
from collections.abc import Callable

import jubilant
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Diff: Using jubilant, since PG 16 does not need Juju 2 support.


# Simulating a failure on the primary cluster
for unit_name in model_2_postgresql_units:
model_2.exec("sudo pkill -x postgres --signal SIGSTOP", unit=unit_name)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Diff: DB process name. No check for Patroni.

charm=charm,
app=POSTGRESQL_APP_1,
base="ubuntu@22.04",
config=configuration,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Diff: No cluster name in PG.

@dragomirp dragomirp force-pushed the dpe-8426-port-tests branch 2 times, most recently from eff6861 to 744dd63 Compare October 7, 2025 14:28
@dragomirp dragomirp force-pushed the dpe-8426-port-tests branch from 744dd63 to 1eb046e Compare October 7, 2025 15:10
@dragomirp dragomirp force-pushed the dpe-8426-port-tests branch from 9fa9066 to c35a605 Compare October 8, 2025 13:01
@dragomirp dragomirp force-pushed the dpe-8426-port-tests branch from 8eaec8a to 731f8b9 Compare October 8, 2025 15:43
@dragomirp dragomirp force-pushed the dpe-8426-port-tests branch from 21cf8ad to fa8c884 Compare October 9, 2025 23:34
@dragomirp dragomirp force-pushed the dpe-8426-port-tests branch from a61fbe3 to e22958c Compare October 10, 2025 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Libraries: Out of sync not bug or enhancement PR is not 'bug' or 'enhancement'. For release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant