zuul-jobs/roles/nox
Lukas Kranz d8ec17cab0 Remove get_md5 parameter from stat module.
The get_md5 parameter was removed with ansible 9.
https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_9.html#id44

If it is being used the following error appears:
"Unsupported parameters for (stat) module: get_md5..."

Unrelated, but also blocking testing/merging of this change, the
Ansible version specs for older python versions is loosened
to allow installing older versions of Ansible on test nodes (like
focal) that have older pythons that are unsupported by newer Ansible.

Change-Id: I99dd4f16fde659d84eb3dfa191557b3d9508b0fb
2024-08-01 07:12:17 -07:00
..
defaults Add nox role and some simple jobs 2022-12-19 18:41:12 -08:00
library Add inline comment support to nox 2022-12-19 18:41:16 -08:00
tasks Remove get_md5 parameter from stat module. 2024-08-01 07:12:17 -07:00
__init__.py Add nox role and some simple jobs 2022-12-19 18:41:12 -08:00
README.rst Add inline comment support to nox 2022-12-19 18:41:16 -08:00

Runs nox for a project

This role overrides Python packages installed into nox environments with corresponding Zuul sibling projects and runs nox tests as follows:

  1. Create nox environments. Note this role currently relies on using the default .nox/session name environment paths.
  2. Get Python sibling package names for sibling projects created by Zuul (using required-projects job variable). Package names are searched in following sources:
    • setup.cfg of pbr projects,
    • setup.py,
    • nox_package_name role variable.
  3. Remove sibling packages from nox environments.
  4. Create temporary constraints file, lines for sibling packages are removed.
  5. Install sibling packages from Zuul projects into nox environments with temporary constraints file.
  6. Run nox tests.

Role Variables

Space separated string listing nox sessions to run.

String to select nox sessions via keyword rather than session name.

String to select nox sessions via tag rather than session name.

String to force a specific python version to be used in the session. This allows you to request session tests be run against python 3.11.

Path to a nox configuration file. If not specified the nox will look for noxfile.py by default.

Path to a pip constraints file. Will be provided to nox via NOX_CONSTRAINTS_FILE.

Allows a user to setup the package name to be used by nox, over reading a setup.cfg file in the project.