-
Notifications
You must be signed in to change notification settings - Fork 18
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
Setting up tox
on ubuntu-24.04
runners fails
#82
Comments
@addyess are you still a maintainer on this? |
Avoids an issue with `actions-operator` as described in: charmed-kubernetes/actions-operator#82
For anyone reading, I solved this in zinc-k8s like so: |
@jnsgruk precisely. That's how it's expected to look |
Hmm, seems the action is now stalled on setting up MicroK8s, though: https://github.com/jnsgruk/zinc-k8s-operator/actions/runs/10999695504/job/30540473863 |
@jnsgruk looking at Mon, 23 Sep 2024 17:55:06 GMT /usr/bin/bash -c sudo usermod -a -G snap_microk8s $USER
Mon, 23 Sep 2024 17:55:06 GMT /usr/bin/sg snap_microk8s -c microk8s status --wait-ready --timeout=600
Mon, 23 Sep 2024 23:53:39 GMT Password:
Mon, 23 Sep 2024 23:53:39 GMT Error: The operation was canceled. This might take some time to sort out |
I recreated your issue in the CI for this project: the same issue with sg occurs both for microk8s and lxd... in either case the github runner session can't seem to get past an interactive prompt from from sg requesting the password be entered |
This seems to be an upstream issue, which is closed but not solved. Looks like one of our colleagues solved this by replacing instances of |
Alright, that's applied but has ripples into pytest-operator |
…04-tox #1152 #### 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 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. #### 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](charmed-kubernetes/actions-operator#82 (comment)).
Github recently released their
ubuntu-24.04
series runners. Using those results in an error becauseactions-operator
tries to installtox
globally withpip
, rather than in a virtual environment.See example failure here: https://github.com/canonical/parca-k8s-operator/actions/runs/10922157328/job/30315898232
The text was updated successfully, but these errors were encountered: