From 6e8722ddcb9b2b08839584cec223db01cb1507e6 Mon Sep 17 00:00:00 2001 From: Yasufumi Ogawa Date: Thu, 6 Aug 2026 19:54:05 +0900 Subject: [PATCH] Use Zuul-provided upper-constraints in functional tests Functional test jobs let tox fetch upper-constraints.txt from releases.openstack.org while creating its venv. The fetch sometimes returns an anti-bot challenge page instead of the constraints file, which pip fails to parse and the job fails before running any test [1]. Set tox_constraints_file to the requirements checkout prepared by Zuul so that no network access is required to resolve the constraints, in the same way as other OpenStack projects. [1] https://zuul.opendev.org/t/openstack/build/805d4a837c3e46cbaa3c29dbb17e103a Change-Id: I1f663c2539e5b0f66f0d283502ffccba68db344c Signed-off-by: Yasufumi Ogawa --- zuul.d/jobs/base.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/zuul.d/jobs/base.yaml b/zuul.d/jobs/base.yaml index 240b38db5..33b064988 100644 --- a/zuul.d/jobs/base.yaml +++ b/zuul.d/jobs/base.yaml @@ -24,9 +24,16 @@ - openstack/networking-sfc - openstack/python-barbicanclient - openstack/python-tackerclient + - openstack/requirements - openstack/tacker - openstack/tacker-horizon vars: + # NOTE: Use the upper-constraints.txt checked out by Zuul instead + # of fetching it from releases.openstack.org over the network, + # which is not reliable in CI (e.g. requests can be blocked by + # the anti-bot protection). + tox_constraints_file: >- + {{ ansible_user_dir }}/src/opendev.org/openstack/requirements/upper-constraints.txt devstack_localrc: CELLSV2_SETUP: singleconductor PHYSICAL_NETWORK: mgmtphysnet0 @@ -191,6 +198,7 @@ - openstack/placement - openstack/python-barbicanclient - openstack/python-tackerclient + - openstack/requirements - openstack/tacker - openstack/tacker-horizon host-vars: @@ -334,6 +342,12 @@ k8s_ssl_verify: true helm_version: "3.15.4" test_matrix_configs: [neutron] + # NOTE: Use the upper-constraints.txt checked out by Zuul instead + # of fetching it from releases.openstack.org over the network, + # which is not reliable in CI (e.g. requests can be blocked by + # the anti-bot protection). + tox_constraints_file: >- + {{ ansible_user_dir }}/src/opendev.org/openstack/requirements/upper-constraints.txt zuul_work_dir: src/opendev.org/openstack/tacker zuul_copy_output: '{{ devstack_log_dir }}/kubernetes': 'logs'