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

ci: run setup-python before actions-operator to fix tox install #1152

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

james-garner-canonical
Copy link
Contributor

@james-garner-canonical james-garner-canonical commented Oct 9, 2024

Description

Github's rollout of 24.04 for ubuntu-latest has now reached python-libjuju, so pip install tox no longer works -- 24.04 prevents installing packages using pip. This causes an error in 'Setup operator environment' using charmed-kubernetes/actions-operator@main. The fix is to run our 'Setup Python' step using actions/setup-python before actions-operator instead of after.

Since this takes care of installing tox, we can remove pip install tox for the jobs using these steps.

Also bump setup-python to v5 for integration-quarantine, matching the recent PR bumping the version for other jobs.

QA Steps

Tests no longer fail when trying to install tox, as they started doing in the last 12 hours.

Notes

Fix documented in charmed-kubernetes/actions-operator here.

Github's rollout of 24.04 for ubuntu-latest has now reached
python-libjuju, so `pip install tox` no longer works -- 24.04 prevents
installing packages using pip. This causes an error with in 'Setup
operator environment' using charmed-kubernetes/actions-operator@main.
The fix is to run our 'Setup Python' step using actions/setup-python
before actions-operator instead of after.

Since this takes care of installing tox, we can remove pip install tox
for the jobs using these steps.

Also bump setup-python to v5 for integration-quarantine, matching the
recent PR bumping the version for other jobs.
@dimaqq
Copy link
Contributor

dimaqq commented Oct 9, 2024

/merge

@jujubot jujubot merged commit 244e01b into juju:main Oct 9, 2024
11 of 12 checks passed
@james-garner-canonical
Copy link
Contributor Author

james-garner-canonical commented Oct 10, 2024

I don't think we noticed the significance of this at the time, but we got our first green CI tick here -- the quarantined integration tests suddenly pass!

It's unexpected but makes sense that they could be affected here, since this is a version bump for their actions afterall.

@james-garner-canonical
Copy link
Contributor Author

But the first commit also passes with a green tick, and that's the one where I forgot to bump the versions ...

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.

3 participants