← Back to issue list

feat: update charm templates to use pytest-jubilant

View original Github issue

Metadata

Project
charmcraft
Number
#2623
Type
pull request
State
merged
Author
james-garner-canonical
Labels
Created
Updated
Closed

Current evaluation

Merged to main. Updates machine and Kubernetes charm templates to use pytest-jubilant, aligning with parallel Ops documentation changes. Approved by three reviewers and integrated after CI validation.

Suggested action:

No scores available.

Issue body

This PR updates the machine and kubernetes charm templates to use `pytest-jubilant`, in parallel with the corresponding updates to the Ops docs in https://github.com/canonical/operator/pull/2406 It would be nice to release these changes when possible, but just merging to `main` is a great start for us. --- - [x] I've followed the [contribution guidelines](https://github.com/canonical/charmcraft/blob/main/CONTRIBUTING.md). - [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [x] ~I've successfully run `make lint && make test`.~ - [x] ~I've added or updated any relevant documentation~. - [ ] I've updated the relevant release notes.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged to main. Updates machine and Kubernetes charm templates to use pytest-jubilant, aligning with parallel Ops documentation changes. Approved by three reviewers and integrated after CI validation.
qwen3.6-35b-a3b-mtp-q6 Merged to main. Updates machine and Kubernetes charm templates to use pytest-jubilant, aligning with parallel Ops documentation changes. Approved by reviewers and merged by maintainers.
qwen3.6-35b-a3b-mtp-q6 Merged to main. Updates machine and Kubernetes charm templates to use pytest-jubilant, aligning with Ops docs. Maintainers reviewed and executed the merge after the author requested assistance due to permission restrictions.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2430 feat(templates): use Jubilant for integration tests of K8s and machine profiles charmcraft merged Merged after four reviewers approved. Replaces pytest-operator with Jubilant for Kubernetes and machine profile integration tests, adds conftest.py fixtures, and updates documentation. CI passed with unrelated test flakiness dismissed.
79%
#1933 feat: use the newer ops.testing classes for the charm unit tests charmcraft merged Merged update replacing the legacy Harness API with newer ops.testing classes across simple, machine, and kubernetes profile unit tests. Approved by two reviewers with passing CI checks. Test logic remains unchanged.
76%
#2401 feat(test): add testing profiles for init command charmcraft merged Merged. Adds test-machine and test-kubernetes profiles to the init command for charmcraft test. Fixes #2365. Approved by three reviewers despite failing CI checks. Future updates will integrate jubilant and expand profiles.
71%
#1660 feat: add test command and templates charmcraft merged Merged addition of the charmcraft test command and templates. The feature invokes spread to run test suites locally and remotely using a multipass backend. Approved by two reviewers and rebased on main before integration.
71%