Skip to content

Conversation

@paulomach
Copy link
Contributor

@paulomach paulomach commented Apr 26, 2025

Issue

Currently juju network spaces is not supported.

Solution

  • Add support for juju spaces per spec DA-162 for PG16 only
  • Draft Docs at discourse

Testing:

There's a charmhub branch for testing 16/edge/spaces (rev614)
If testing on LXD, refer to the conftest.py on how to setup LXD networks to enable manual testing, as there some catches on default configuration.

Checklist

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

@paulomach paulomach changed the base branch from main to 16/edge April 30, 2025 01:30
@paulomach paulomach added the enhancement New feature, UI change, or workload upgrade label Apr 30, 2025
@paulomach paulomach marked this pull request as ready for review April 30, 2025 01:34
@codecov
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 63.07692% with 48 lines in your changes missing coverage. Please review.

Project coverage is 70.67%. Comparing base (1425f6d) to head (4449cf3).
Report is 2 commits behind head on 16/edge.

Files with missing lines Patch % Lines
src/cluster.py 62.50% 13 Missing and 5 partials ⚠️
src/charm.py 59.37% 13 Missing ⚠️
src/relations/async_replication.py 35.29% 10 Missing and 1 partial ⚠️
src/relations/postgresql_provider.py 79.31% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           16/edge     #857      +/-   ##
===========================================
- Coverage    70.83%   70.67%   -0.16%     
===========================================
  Files           15       15              
  Lines         3888     3956      +68     
  Branches       580      590      +10     
===========================================
+ Hits          2754     2796      +42     
- Misses         949      970      +21     
- Partials       185      190       +5     

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

[tool.ruff.lint]
explicit-preview-rules = true
select = ["A", "E", "W", "F", "C", "N", "D", "I001", "B", "CPY", "RUF", "S", "SIM", "UP", "TC"]
select = [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

my editor just formatted the toml.. changes here are just add jubilant

@paulomach
Copy link
Contributor Author

paulomach commented Apr 30, 2025

Spaces tests failing due a jubilant bug (see PR).
If takes long to merge I will fallback to jubilant's juju.cli instead.

Fixed on jubilant-1.0.1

Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

Thank you!

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! I tested async replication, and it's working fine with spaces. Thank you so much, Paulo!

@marceloneppel marceloneppel merged commit 3f81441 into 16/edge May 6, 2025
72 checks passed
@marceloneppel marceloneppel deleted the feature/spaces_pg16 branch May 6, 2025 19:53
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.

6 participants