a056405ceb
As per 2025.1 testing runtime[1], we need to test on Ubuntu Noble, moving requirement-check job to ubuntu noble. Fix the job to install our tools into a venv in order to avoid global installation. [1] https://governance.openstack.org/tc/reference/runtimes/2025.1.html Change-Id: Id8991665cabd9bb3d24cb75732fc4aa95439965b
59 lines
1.8 KiB
YAML
59 lines
1.8 KiB
YAML
- project-template:
|
|
name: check-requirements
|
|
check:
|
|
jobs:
|
|
- requirements-check
|
|
gate:
|
|
jobs:
|
|
- requirements-check
|
|
|
|
- job:
|
|
name: requirements-check
|
|
parent: unittests
|
|
description: |
|
|
Check that requirements in the target repo match OpenStack
|
|
global requirements.
|
|
|
|
**Job Variables**
|
|
|
|
.. zuul:jobvar:: zuul_work_dir
|
|
:default: {{ zuul.project.src_dir }}
|
|
|
|
Directory holding the project to check.
|
|
|
|
.. zuul:jobvar:: zuul_branch
|
|
:default: {{ zuul.branch }}
|
|
|
|
Branch to check.
|
|
# NOTE(gmann): Update the nodeset if we move testing to the new version
|
|
# of ubuntu. We are explicitly setting the nodeset here because the base
|
|
# job (unittests) moving to the ubuntu latest version can break this
|
|
# job on stable branch (as this job on stable branch will start running on
|
|
# ubuntu latest version). This nodeset setting will avoid such breaking
|
|
# on stable branch and make sure it continue to run on the supported ubuntu
|
|
# version on stable branches.
|
|
nodeset: ubuntu-noble
|
|
run: playbooks/requirements-check.yaml
|
|
required-projects:
|
|
- openstack/requirements
|
|
files:
|
|
- ^tools/.*-requires$
|
|
- ^.*requirements.txt$
|
|
- ^.*requirements-py[2,3].txt$
|
|
- ^doc/requirements.txt$
|
|
- ^lower-constraints.txt$
|
|
|
|
- job:
|
|
name: requirements-check-self
|
|
description: |
|
|
Run the requirements-check job on another repo in order to
|
|
self-test changes to its job configuration.
|
|
parent: requirements-check
|
|
# This could be any project, nova is chosen arbitrarily.
|
|
required-projects: openstack/nova
|
|
vars:
|
|
zuul_work_dir: "{{ zuul.projects['opendev.org/openstack/nova'].src_dir }}"
|
|
files:
|
|
- ^playbooks/requirements-check.yaml$
|
|
- ^roles/check-requirements/
|