Skip to content

fix: find packed worker charm, drop interfaces job (backport #446) - #455

Merged
lucabello merged 1 commit into
track/1.18from
fix/backport-446-track-1.18
Nov 3, 2026
Merged

lucabello merged 1 commit into
track/1.18from
fix/backport-446-track-1.18

Conversation

@lucabello

Copy link
Copy Markdown
Contributor

Issue

Backport of #446 to track/1.18. Every PR to this branch fails CI for two reasons that predate it:

  • The interfaces job fails at init: it calls a charmlibs workflow that checks out charmlibs main at run time, and charmlibs deleted the script it needs (ci: remove the interface test machinery charmlibs#652).
  • Integration jobs that pack the worker charm (test_juju_doctor, test_ingress, test_scaling_monolithic) fail with FileNotFoundError for pyroscope-worker-k8s_ubuntu@26.04-amd64.charm. charmcraft 4.4.1 and 4.4.2 leave the packed .charm in the project directory instead of the requested one (charmcraft pack ignores -o option in version 4.4.1 charmcraft#2854), and pytest-jubilant looks in the wrong place.

Solution

  • Drop the interfaces job from pull-request.yaml.
  • Look for the packed charm in the charm's project directory when it is not where pytest-jubilant says it is.

Context

Cherry-picked from main without conflicts. The charms' own interface tests are unaffected: coordinator/tests/interface runs in the coordinator's unit env.

Testing Instructions

CI. The PR's checks should have no interfaces jobs, and the three integration jobs above should get past packing the worker charm.

Unblocks #454.

Since charmcraft 4.4.1 reached latest/stable, running
`charmcraft pack -p ../worker` from the coordinator directory leaves
the .charm inside worker/ instead of the current directory
(canonical/charmcraft#2854). pytest-jubilant resolves the "Packed
<name>" line against the current directory, so every coordinator
integration job that has to pack the worker charm fails with
FileNotFoundError before deploying anything. Look for the packed charm
in the charm's project directory when it is not where pytest-jubilant
says it is.

The `interfaces` job calls an interface-tests workflow from
canonical/charmlibs that checks out charmlibs main at run time.
charmlibs removed the scripts it needs (canonical/charmlibs#652) and
is retiring the mechanism, so the job fails at `init` on every PR.
Drop it. The charms' own interface tests are unaffected:
coordinator/tests/interface runs in the coordinator's unit env.

Backport of #446 to track/1.18.
@lucabello
lucabello merged commit fdfb589 into track/1.18 Nov 3, 2026
37 checks passed
@lucabello
lucabello deleted the fix/backport-446-track-1.18 branch November 3, 2026 16:41
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.

3 participants