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

[JUJU-1970] Revise local refresh #742

Merged
merged 3 commits into from Oct 17, 2022
Merged

Conversation

cderici
Copy link
Member

@cderici cderici commented Oct 13, 2022

Description

This change revises the local_refresh() (i.e. application.upgrade_charm() with a local charm) to use the app_facade.GetCharmURLOrigin() to get the origin of the currently running application charm, instead of trying to pass channel to the SetCharm like before.

We already implemented this when revising upgrade_charm in #729, but the upgrade local was missed (we talked about it but I forgot to include it).

This should fix the tests/integration/test_application.py::test_upgrade_local_charm that's currently failing in the CI runs.

QA Steps

The integration test mentioned above is revised a little bit, so it should pass. QA with different types and shapes of local charms would be appreciated.

tox -e integration -- tests/integration/test_application.py::test_upgrade_local_charm

@cderici
Copy link
Member Author

cderici commented Oct 14, 2022

/merge

@cderici
Copy link
Member Author

cderici commented Oct 14, 2022

/merge

@cderici
Copy link
Member Author

cderici commented Oct 14, 2022

Didn't realize this doesn't have a review yet :)

Copy link
Contributor

@juanmanuel-tirado juanmanuel-tirado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG2M

I did not reviewed earlier because another reviewer was already assigned.

@cderici
Copy link
Member Author

cderici commented Oct 17, 2022

/merge

@jujubot jujubot merged commit 84e4a2c into juju:master Oct 17, 2022
jujubot added a commit that referenced this pull request Oct 18, 2022
…o-2.9

#744

#### Description

This cherry-picks the `upgrade-charm` fixes from #729 and #742 to bring them onto `2.9` branch. 

Includes the fix for the `juju.errors.JujuAPIError: missing base name or channel not valid` error when upgrading local charms.

#### QA Steps

Same QA Steps for #729 and #742 should work here.

```
tox -e integration -- tests/integration/test_application.py::test_upgrade_local_charm
```
```
tox -e integration -- tests/integration/test_charmhub.py::test_list_resources
```
```
tox -e integration -- tests/integration/test_application.py::test_upgrade_charm_switch_channel
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants