Repository navigation
fix: find packed worker charm, drop interfaces job (backport #446) - #455
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Backport of #446 to
track/1.18. Every PR to this branch fails CI for two reasons that predate it:interfacesjob fails atinit: it calls a charmlibs workflow that checks out charmlibsmainat run time, and charmlibs deleted the script it needs (ci: remove the interface test machinery charmlibs#652).test_juju_doctor,test_ingress,test_scaling_monolithic) fail withFileNotFoundErrorforpyroscope-worker-k8s_ubuntu@26.04-amd64.charm. charmcraft 4.4.1 and 4.4.2 leave the packed.charmin the project directory instead of the requested one (charmcraft pack ignores -o option in version 4.4.1 charmcraft#2854), andpytest-jubilantlooks in the wrong place.Solution
interfacesjob frompull-request.yaml.pytest-jubilantsays it is.Context
Cherry-picked from
mainwithout conflicts. The charms' own interface tests are unaffected:coordinator/tests/interfaceruns in the coordinator'sunitenv.Testing Instructions
CI. The PR's checks should have no
interfacesjobs, and the three integration jobs above should get past packing the worker charm.Unblocks #454.