← Back to issue list

feat(profiles): use Ubuntu image for kubernetes integration tests

View original Github issue

Metadata

Project
charmcraft
Number
#2817
Type
pull request
State
merged
Author
dwilding
Labels
Created
Updated
Closed

Current evaluation

Merged. Replaced the dummy OCI image in kubernetes profile integration tests with the base Ubuntu image. Adjusted charm code to use a valid placeholder command and updated a sample config description. Approved by reviewers and merged.

Suggested action:

No scores available.

Issue body

Currently, integration tests fail for a charm generated from the `kubernetes` profile, because `charmcraft.yaml` specifies a dummy OCI image. This PR switches to the base [Ubuntu image](https://hub.docker.com/_/ubuntu), as a placeholder for the charmer's real image. The charm code needed to be adjusted too, so that the Pebble layer uses a placeholder command that really exists in the container. I've verified that integration tests now pass. --- This PR includes one small drive-by: In `charmcraft.yaml` for the `kubernetes` and `machine` profiles, we have a sample config option. The description mentions gunicorn, but nothing else in the charms is related to gunicorn. I'm making the description more generic. --- - [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`. - [ ] ~I've added or updated any relevant documentation.~ - [ ] ~In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing.~ - [ ] I've updated the relevant release notes.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged. Replaced the dummy OCI image in kubernetes profile integration tests with the base Ubuntu image. Adjusted charm code to use a valid placeholder command and updated a sample config description. Approved by reviewers and merged.
qwen/qwen3.6-35b-a3b
Staleness: 10
Complexity: 15
Confidence: 90
needs review Switches kubernetes profile integration tests from a dummy OCI image to the official Ubuntu image and updates Pebble layer commands. Includes a minor config description fix. Approved by reviewers, ready for merge.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 15
Confidence: 85
needs review Switches kubernetes profile integration tests to an Ubuntu base image, adjusting the Pebble layer command. Includes minor charmcraft.yaml doc cleanup. Approved by 3 reviewers, awaiting final feedback on two unresolved comments.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 10
Confidence: 90
needs review Switches kubernetes profile integration tests from a dummy OCI image to Ubuntu base, fixing test failures. Adjusts Pebble layer placeholder command and updates charmcraft config description. Approved by 3 reviewers, CI passing, awaiting maintainer review.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 10
Confidence: 85
needs review Switches kubernetes profile integration tests from a dummy OCI image to Ubuntu, adjusting Pebble commands accordingly. Approved by 3 reviewers with minor unresolved comments and passing CI.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 15
Confidence: 85
needs review Switches kubernetes profile integration tests from a dummy OCI image to Ubuntu, adjusting Pebble layer commands. Approved by 3 reviewers with 2 unresolved comments and minor CI failures on older/newer Ubuntu releases.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 10
Confidence: 85
needs review Switches kubernetes profile integration tests to use an Ubuntu base image instead of a dummy OCI image, adjusting Pebble layer commands. PR has 3 approvals, 2 unresolved comments, and mostly passing CI with a few failing OS-specific tests.
qwen/qwen3.6-35b-a3b
Staleness: 10
Complexity: 15
Confidence: 85
needs review Switches kubernetes profile integration tests to use the Ubuntu base image instead of a dummy OCI image, adjusting Pebble layer commands accordingly. Approved by 3 reviewers with 2 unresolved comments and minor CI failures.
qwen/qwen3.6-35b-a3b
Staleness: 10
Complexity: 10
Confidence: 90
needs review Switches kubernetes profile integration tests from a dummy OCI image to Ubuntu and updates Pebble layer commands. Includes a minor config fix. Approved by 3 reviewers, CI mostly passing, awaiting resolution of 2 review comments.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 15
Confidence: 85
needs review Switches kubernetes profile integration tests from a dummy OCI image to Ubuntu, adjusting Pebble layer commands. Approved by 3 reviewers with 2 unresolved comments. CI mostly passes except minimum dependencies test.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 15
Confidence: 90
needs review Switches kubernetes profile integration tests from a dummy OCI image to the official Ubuntu image and updates the Pebble layer placeholder command. Includes a minor config description fix. Currently approved by 3 reviewers with 2 unresolved comments and pending CI checks.
qwen/qwen3.6-35b-a3b
Staleness: 0
Complexity: 10
Confidence: 95
needs review Switches kubernetes profile to Ubuntu base image to fix failing integration tests, adjusts Pebble placeholder command, and updates a config description. Approved by three reviewers but has unresolved comments and failing CI checks.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 10
Confidence: 85
needs review Switches kubernetes profile integration tests from a dummy OCI image to Ubuntu, adjusting Pebble layer commands. Approved by two reviewers with one unresolved comment and several failing CI checks.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 15
Confidence: 80
needs review Switches kubernetes profile tests to an Ubuntu base image and updates Pebble commands to fix failures. Includes a minor config description fix. Currently approved by one reviewer but has unresolved comments and failing CI checks.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 15
Confidence: 90
needs review Switches kubernetes profile integration tests from a dummy OCI image to Ubuntu, adjusting Pebble commands accordingly. Includes minor config description fix. Currently pending maintainer review with minor lint failure.

Update history

Date Change
updated
updated
updated
updated
updated
updated
updated
updated
updated
updated
updated
updated
updated
created

Related issues

Issue Project State Summary Similarity
#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%