-
Notifications
You must be signed in to change notification settings - Fork 58
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
Adding Debian 12 golden images, and fixing ArchLinux #1811
Conversation
I feel the python3-nox would be more appropriate, had to do it on Debian 11 arm64, since it didn't particularly like the python3 -m pip install nox And that is more in line with the OS packages Changed my mind on this after talking with @ScriptAutomate last Friday, better to have the same version of nox used over all of the different OS's. |
The only version of @s0undt3ch Can you confirm which path is best? |
The only issue I see with using the system packages nox is if the version is too low for the features we need. Right now, I'm not sure of the system version is recent enough. An alternative is to install the system python pipx and install nox this way. This could be implemented for all OS'es(probably only excluding windows) |
Moving ForwardHad a conversation about this. Going the following direction:
Arch Linux is failingArch Linux fails to find
When testing locally, I can retrieve it properly. # When testing on a container, osfinger works as expected
salt-call --local grains.get osfinger # Output
local:
Arch Linux-20230611 Requires more troubleshooting. Misc failures (unrelated)Other test failures are unrelated to this PR:
Will ignore for this PR. |
Looks like we were running into an ArchLinux bug:
Needed to modify the sls jinja logic to avoid targeting PR is moved out of draft state. If CI/CD passes properly, this will be good to merge in. |
Tickets opened for follow-ups in broken CI/CD that are unrelated to Debian 12 changes:
|
There are two paths to getting
nox
on Debian 12:pip3
but with--break-system-packages
, since operating systems are moving toward avoiding installing any Python packages at the system level (due to the risk of breaking OS functionality).OR:
nox
viaapt install python3-nox nox -y
(orpkg.install
with a more complicated state jinja logic), but not be using the targeted, expected version ofnox
referenced innox.sls
to be used (python3-nox
is currently2022.11.21
)Using
--break-system-packages
seems to be the exact same experience currently used by all other AMIs.From a long-term perspective, we should evaluate whether we will want to run
nox
from one of the following:--break-system-packages
as more OS targets require it (currently how this is implemented on systems, and what this current draft PR is implementing with passing tests)nox
via a different, isolated virtualenv/venv (created by the system-level Python version)nox
via a different, isolated pyenv virtualenv (under a standardized Python version)