← Back to issue list

test(spread): stabilize Ubuntu 26.04 charm spread uv/platforms tasks

View original Github issue

Metadata

Project
charmcraft
Number
#2697
Type
pull request
State
merged
Author
Copilot
Labels
—
Created
Updated
Closed

Current evaluation

Merged as commit a31d5bea: Ubuntu 26.04 spread charm task now runs `charmcraft pack` without --destructive-mode, and the uv fixture gained src/charm.py with `dispatch` restored in expected_files.txt.

Resolution: closed resolved

Reason: PR #2697 was approved and merged as commit a31d5bea, which touches all three scoped files (tests/spread/ubuntu-26.04/charm/task.yaml, charm/uv/expected_files.txt, charm/uv/src/charm.py) per git log path history. Failing spread tasks on Ubuntu 26.04 (charm:uv, charm:platforms) failed host APT resolution for python3-venv/python3-dev, resolved by switching to managed packing.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Ubuntu 26.04 spread charm tasks were failing in `charm:uv` and `charm:platforms` when `charmcraft pack --destructive-mode` attempted host APT resolution for build dependencies (`python3-venv` / `python3-dev`). This PR updates the Ubuntu 26.04 charm spread task to run `pack` without destructive mode, and aligns the `uv` fixture so `dispatch` is generated as expected. - **Scope** - `tests/spread/ubuntu-26.04/charm/task.yaml` - `tests/spread/ubuntu-26.04/charm/uv/expected_files.txt` - `tests/spread/ubuntu-26.04/charm/uv/src/charm.py` - **Behavior change** - Switches Ubuntu 26.04 charm spread execution from host-mode packing to managed packing. - Ensures the Ubuntu 26.04 `uv` test fixture contains `src/charm.py`, satisfying dispatch generation preconditions. - Restores `dispatch` in the Ubuntu 26.04 `uv` expected packed artifact list. - **Patch** ```bash # tests/spread/ubuntu-26.04/charm/task.yaml # before charmcraft pack --destructive-mode # after charmcraft pack ``` ```text # tests/spread/ubuntu-26.04/charm/uv/expected_files.txt # includes dispatch ``` ```python # tests/spread/ubuntu-26.04/charm/uv/src/charm.py # added minimal charm entrypoint fixture ``` Relevant PR run: https://github.com/canonical/charmcraft/actions/runs/26215674898/job/77140798859?pr=2697

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged as commit a31d5bea: Ubuntu 26.04 spread charm task now runs `charmcraft pack` without --destructive-mode, and the uv fixture gained src/charm.py with `dispatch` restored in expected_files.txt.
stealth/space-bunny-alpha — closed resolved Merged PR #2697 (commit a31d5bea), using managed packing and fixing the uv fixture to stabilize Ubuntu 26.04 charm spread tests.
qwen/qwen3.6-35b-a3b — — Merged fix stabilizing Ubuntu 26.04 spread tests by switching charmcraft pack to managed mode, adding a src/charm.py fixture, and restoring dispatch in expected artifacts. CI passed and reviewers approved.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Fixed failing Ubuntu 26.04 spread tests by switching charmcraft pack to managed mode, adding a src/charm.py fixture, and restoring dispatch in expected output. Resolved test assertions without UI changes.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#2478 (confidence 70%)

    Commit 562b748f 'feat: enable Ubuntu 25.10 and 26.04 as development bases' introduced the Ubuntu 26.04 spread task that this PR stabilizes.

  • Related To: canonical/charmcraft#2537 (confidence 60%)

    Commit da37273f previously modified the 26.04 uv expected_files.txt; this PR restores `dispatch` there.

Related issues

Issue Project State Summary Similarity
#1427 tests(spread): make dependencies restore work even if no charm is built charmcraft merged Merged in canonical/charmcraft#1427 (commit 2d432044), making spread-test dependency restoration work when no charm artifact is built.
75%
#1556 refactor(tests/spread): test with explicit charmcraft.yaml files charmcraft merged Merged PR #1556 in commit 4682b32b, replacing prepare-step manipulation of charmcraft.yaml with explicit spread-test configuration files.
72%
#1554 feat: implement platforms for building charms charmcraft merged Merged #1554 in e3de0a46, adding ST105 platforms support for charm builds, including Ubuntu 24.04, and fixing #1535. Its spread-test prerequisite #1556 also merged.
71%
#1324 test(spread): test-deploy charms in large spread tests charmcraft merged Merged PR #1324 via commit a14d6d91, adding test deployment of charms and bundles to large Spread tests.
71%
#2426 fix(test): fix the reactive charm spread test charmcraft merged Merged in canonical/charmcraft#2426 via commit 7c33dd1b, applying a one-line fix to the reactive-charm spread test for CHARMCRAFT-641.
70%