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

[DPE-4976] Run tests on juju 3.6 on a nightly schedule #173

Merged
merged 9 commits into from
Aug 29, 2024

Conversation

shayancanonical
Copy link
Contributor

@shayancanonical shayancanonical commented Aug 22, 2024

Issue

We would like to run nightly tests with juju 3.6

Solution

Upgrade to dpw v21.0.0 and add juju 3.6 into the matrix for tests. Also, upgrade libjuju to ^3.5.2.0

@shayancanonical
Copy link
Contributor Author

Tests pass with juju 2.9/stable, 3.4/stable and 3.6/beta in https://github.com/canonical/mysql-router-operator/actions/runs/10527081121

@@ -46,6 +47,7 @@ async def test_ubuntu_pro(ops_test, mysql_router_charm_series, github_secrets):
application_name=UBUNTU_PRO_APP_NAME,
channel="latest/edge",
config={"token": github_secrets["UBUNTU_PRO_TOKEN"]},
series=mysql_router_charm_series,
Copy link
Contributor

Choose a reason for hiding this comment

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

does series work on 3.6?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

even though series is deprecated, i believe support for series still exists in juju=3.5.2.0 reference

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm confused—why did we need to use base on other charms? or was it just that we needed to use base or series?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe we could use either. In this repo, fixtures and CI is deeply tied to series usage. Switching to bases would be a bigger undertaking than this PR

Copy link
Contributor

Choose a reason for hiding this comment

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

gotcha 👍

(just wanted to check that series doesn't have the same issue on 3.6 as not having series or base)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack, just confirmed that using --series works as expected when deploying in a juju 3.6-beta2 model

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought the issue we had was with libjuju and not juju itself? like libjuju was defaulting to focal if base wasn't provided but juju was fine, IIRC

Copy link
Contributor

Choose a reason for hiding this comment

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

(that's what I remember from what you said about your findings, I could have misunderstood or be misremembering)

Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

LGTM if series works on 3.6

@shayancanonical shayancanonical merged commit e01011f into main Aug 29, 2024
55 checks passed
@shayancanonical shayancanonical deleted the feature/juju_3_6_tests branch August 29, 2024 13:33
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.

4 participants