Skip to content

Conversation

@dragomirp
Copy link
Contributor

@dragomirp dragomirp commented Sep 12, 2025

Port of canonical/postgresql-operator#1117, canonical/postgresql-operator#1149 and canonical/postgresql-operator#1154 for 16/edge k8s:

  • Handle empty region when creating backups
  • Handle invalid stanza name in Pgbackrest output (happens when no region is set in GCP) to block as failure to initialise stanza and not as foreign backup
  • Add ceph test

Checklist

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

@dragomirp dragomirp added the bug Something isn't working as expected label Sep 12, 2025
@github-actions github-actions bot added the Libraries: Out of sync The charm libs used are out-of-sync label Sep 12, 2025
@codecov
Copy link

codecov bot commented Sep 12, 2025

Codecov Report

❌ Patch coverage is 71.42857% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.75%. Comparing base (3346862) to head (0b0da68).
⚠️ Report is 1 commits behind head on 16/edge.

Files with missing lines Patch % Lines
src/backups.py 71.42% 2 Missing and 2 partials ⚠️

❌ Your project status has failed because the head coverage (67.75%) 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    #1099      +/-   ##
===========================================
- Coverage    67.81%   67.75%   -0.06%     
===========================================
  Files           15       15              
  Lines         4129     4134       +5     
  Branches       606      608       +2     
===========================================
+ Hits          2800     2801       +1     
- Misses        1106     1108       +2     
- Partials       223      225       +2     

☔ 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-8005-empty-region branch from b4a82d3 to 34f7c4e Compare September 12, 2025 13:00
@dragomirp dragomirp force-pushed the dpe-8005-empty-region branch from 34f7c4e to 0b0da68 Compare September 12, 2025 13:35
Comment on lines +167 to +177
await backup_operations(
ops_test,
charm,
S3_INTEGRATOR_APP_NAME,
tls_certificates_app_name,
tls_config,
tls_channel,
cloud_credentials,
"ceph",
cloud_configs,
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copied from VM. The only difference is the order of backup_operations() args.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for porting this test!

@dragomirp dragomirp marked this pull request as ready for review September 12, 2025 14:21
@dragomirp dragomirp requested review from a team, marceloneppel and taurus-forever and removed request for a team September 12, 2025 14:22
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!

Comment on lines +167 to +177
await backup_operations(
ops_test,
charm,
S3_INTEGRATOR_APP_NAME,
tls_certificates_app_name,
tls_config,
tls_channel,
cloud_credentials,
"ceph",
cloud_configs,
)
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for porting this test!

@dragomirp dragomirp merged commit 9938a32 into 16/edge Sep 15, 2025
255 of 268 checks passed
@dragomirp dragomirp deleted the dpe-8005-empty-region branch September 15, 2025 12:21
@shipperizer shipperizer mentioned this pull request Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected Libraries: Out of sync The charm libs used are out-of-sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants