feat(test): add testing profiles for init command
Metadata
Current evaluation
Merged PR #2401 as commit a7334d49, adding test-machine and test-kubernetes init profiles for charmcraft test; the feature shipped in Charmcraft 4.0.
Resolution: closed resolved
Reason: The approved PR merged as commit a7334d49 and explicitly fixes issue #2365. Charmcraft 4.0 release notes confirm both testing profiles were introduced.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This adds a pair of testing profiles for the `init` command:
- test-machine (supplements the `machine` profile to add tests)
- test-kubernetes (supplements the `kubernetes` profile to add tests)
The `test-kubernetes` profile cannot be fully tested since the default kubernetes charm doesn't start without modifications.
I'm trying to figure out why the `test-machine` test times out within spread but works correctly outside of spread, but I'd like reviews in the meantime anyway.
Fixes #2365
CHARMCRAFT-632
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2401 as commit a7334d49, adding test-machine and test-kubernetes init profiles for charmcraft test; the feature shipped in Charmcraft 4.0. | |
| stealth/space-bunny-alpha | — | closed resolved | Added test-machine and test-kubernetes init profiles for Charmcraft testing. PR #2401 merged as commit a7334d49, resolving #2365 (CHARMCRAFT-632). | |
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged pull request adding test-machine and test-kubernetes profiles to the init command, providing charmcraft test compatible spread configurations. Kubernetes testing has known limitations, and a machine spread timeout is under investigation. |
Update history
No update history recorded yet.
Related work
-
Related To:
charmcraft#2365
(confidence 100%)
PR #2401 explicitly states that it fixes this testing-profile configuration issue.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2365 Add test configuration templates for charmcraft | charmcraft | closed | Test init profiles delivered by merged PR #2401 (commit a7334d49), adding test-machine and test-kubernetes templates for `charmcraft init`; shipped in Charmcraft 4.0. | |
| #868 Added a machine profile to init command (CRAFT-1046). | charmcraft | merged | Merged PR #868 added a machine profile to charmcraft init, resolving #568 and #593; merge commit: a6c21119. | |
| #2813 feat(profile): add example action to kubernetes and machine init profiles | charmcraft | merged | Merged PR #2813, adding example pause/resume actions for machine charms and restart for Kubernetes charms to the charmcraft init profiles, complete with unit and integration tests. | |
| #859 Added a kubernetes profile to init command (CRAFT-1318). | charmcraft | merged | Merged in canonical/charmcraft#859 (451c399a), adding the Kubernetes init profile and fixing the simple template for CRAFT-1318. | |
| #966 `charmcraft init --help` doesn't list the available profiles | charmcraft | closed | Fixed by merged PR #2311 (commit c24c0f47): charmcraft init help now lists Kubernetes, machine, and supported 12-factor profiles. | |
| #328 charmcraft init produces error charm for machine charms | charmcraft | closed | Machine charms gained a dedicated charmcraft init profile, resolving Kubernetes-only initialization; the change was merged in PR #868 (commit 2ed9033c). | |
| #2817 feat(profiles): use Ubuntu image for kubernetes integration tests | charmcraft | merged | Merged in canonical/charmcraft#2817: k8s-profile charms now build from the Ubuntu base image as a placeholder, and the Pebble layer uses "sleep infinity" so integration tests pass (+8/-5, 3 files). | |
| #5398 feat: add init test profile | snapcraft | merged | Merged in #5398 via commit 0fb29e11f, adding a separate test init profile with spread.yaml and spread-extension templates; fixes #5099. |