Skip to content

[DPE-11496] (PART 6) CI/CD migration to single-kernel: remaining VM-only tests (pytest-operator) - #425

Merged
xavipg003 merged 3 commits into
dpe-11496-5from
dpe-11496-6
Nov 20, 2026
Merged

xavipg003 merged 3 commits into
dpe-11496-5from
dpe-11496-6

Conversation

@xavipg003

Copy link
Copy Markdown
Contributor

Description

This PR continues moving the PostgreSQL integration tests from the VM and K8s charm repos into the single kernel library. Builds on #424.

It brings over the remaining VM-only charm tests, completing the VM test suite in the single kernel library.

What's included

  • VM-only HA tests (pytest-operator): test_restore_cluster, test_scaling, test_scaling_three_units, test_scaling_three_units_async, and test_stereo_mode.
  • Other VM-only tests: test_ipv6_deployment, test_storage_detaching, and test_subordinates, adapted to use jubilant directly without adapters.
  • Shared helper: reused_full_cluster_recovery_storage in charm/pytest_operator_helpers.py, used to check Patroni logs when reusing recovery storage.
  • Spread: VM-only tasks for all eight modules. IPv6 has separate dual-stack and IPv6-only tasks; storage detaching also runs with Juju 4.0 to exercise the regression that Juju 3.6 teardown masks.
  • CI secrets: pass UBUNTU_PRO_TOKEN, LANDSCAPE_ACCOUNT_NAME, and LANDSCAPE_REGISTRATION_KEY through the CI, integration and release workflows into the VM Spread backend for the subordinate tests.

How the merge was done

  • Preserve the original test scenarios and keep pytest-operator for the HA tests.
  • Replace adapter calls with native jubilant calls in the remaining tests.
  • Use the shared test charm fixtures and helpers, absolute imports, and the Ubuntu 24.04 base where adapted.
  • Mark the modules vm_only and restrict their Spread tasks to github-ci-vm.

@xavipg003
xavipg003 force-pushed the dpe-11496-6 branch 2 times, most recently from 6288f69 to b112bf1 Compare November 19, 2026 11:32
@xavipg003
xavipg003 merged commit dca4f68 into 16/edge Nov 20, 2026
4 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants