Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev - resolve local charms relative to bundle base path #10487

Conversation

achilleasa
Copy link
Contributor

Description of change

This PR updates the develop branch to use the latest charm.v6 version which includes an improved fix for resolving relative charm paths when deploying bundles (compared to the one that landed on the 2.6 branch via #10484).

The main problem with the 2.6 fix is that it was applied against the composed (with all overlays already merged in) bundle and that all relative charm paths were resolved using the base path of the bundle. The 2.6 fix does not work properly if an overlay living at a different location than the bundle specifies a relative charm path.

However, the develop branch uses a different code path (introduced by #10476) and merges overlays via helper functions provided by the charm.v6 package. The new way of doing things enables us to properly resolve relative paths even for overlays.

Consequently, the original fix has now been removed but its related test has been kept so we can avoid any regressions in the future.

QA steps

Exactly the same as with #10484 with the exception that the last QA step that involves an overlay must work as expected with the juju CLI from this PR.

This functionality was introduced in the 2.6 branch which doesn't
currently use the refactored overlay merging code from charm.v6.
Relative charm paths are now directly resolved into absolute paths
inside the bundle compose code so the fix from 2.6 is not required.
@achilleasa achilleasa changed the title Dev resolve local charms relative to bundle base path dev - resolve local charms relative to bundle base path Aug 6, 2019
@achilleasa
Copy link
Contributor Author

$$merge$$

@jujubot jujubot merged commit 0efe1e5 into juju:develop Aug 6, 2019
@achilleasa achilleasa deleted the dev-resolve-local-charms-relative-to-bundle-base-path branch August 6, 2019 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants