Skip to content

[DPE-11496] (PART 13) CI/CD migration to single-kernel: cleanup and DPW charm build - #445

Draft
xavipg003 wants to merge 5 commits into
dpe-11496-12from
dpe-11496-13
Draft

xavipg003 wants to merge 5 commits into
dpe-11496-12from
dpe-11496-13

Conversation

@xavipg003

Copy link
Copy Markdown
Contributor

Description

Cleanup after the jubilant migration. No test logic changes: names, marks, retries, waits and checks stay the same. Builds on #444.

What's included

  • pytest-operator leftovers removed: pytest_operator_helpers.py, new_relations/helpers.py, ha_tests/helpers.py and ha_tests/conftest.py. No active test used them.
  • Dependencies: removed pytest-operator, juju (libjuju) and pytest-asyncio. kubernetes is now declared directly; it used to come through libjuju and the helpers still import it.
  • Pytest options: --controller, --model, --keep-models and --no-deploy are now defined in tests/integration/conftest.py, along with the skip_if_deployed mark.
  • Substrate enum: integration tests use the library's Substrates enum. tests/integration/types.py is removed.
  • Fail fast: addopts = "--exitfirst" in the pytest config.
  • Single HA folder: the scripts and manifests from ha_tests/ move to high_availability/, and ha_tests/ is removed.
  • Charm build with DPW build_charm.yaml@v56.0.0, using charmcraft monorepo support:
    • The test charms declare the library as a path dependency (../../..). Their charmcraft.yaml uses source: ../../.. and source-subdir.
    • refresh_versions.toml includes charm = "test/0.0.0+dirty", which the old script used to inject.
    • The integration workflow downloads the DPW artifacts.
    • scripts/build_charm.sh is removed. Local build: cd tests/charms/postgresql_<substrate>_test_charm && CHARMCRAFT_EXPERIMENTAL_MONOREPO=1 charmcraft pack.

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.

1 participant