Use stable branch upper-constraints till 2023.1

Stable/2023.1 and Unmaintained xena/yoga/zed runs ubuntu-focal
jobs and since with [1] py3.8 pins are dropped from master
upper-constraints, so these branches can no longer use master
constraints with envs running with python3.8.
With this patch making these branches to use stable constraints.

[1] https://review.opendev.org/c/openstack/requirements/+/925201
[2] https://lists.openstack.org/archives/list/openstack-discuss@\
    lists.openstack.org/thread/FOWV4UQZTH4DPDA67QDEROAESYU5Z3LE/

Needed-By: https://review.opendev.org/c/openstack/devstack/+/933704
Related-Bug: #2085886
Change-Id: I8d2ff33384aec93820aa27ad27f1ff9bd7e87098
This commit is contained in:
yatinkarel 2024-10-30 11:44:11 -07:00 committed by Ghanshyam Mann
parent 3e5592f58c
commit 98f2393641

View File

@ -25,11 +25,11 @@
target_branch: "{{ zuul.override_checkout }}" target_branch: "{{ zuul.override_checkout }}"
when: zuul.override_checkout is defined when: zuul.override_checkout is defined
- name: Use stable branch upper-constraints till Wallaby - name: Use stable branch upper-constraints till 2023.1
set_fact: set_fact:
# TOX_CONSTRAINTS_FILE is new name, UPPER_CONSTRAINTS_FILE is old one, best to set both # TOX_CONSTRAINTS_FILE is new name, UPPER_CONSTRAINTS_FILE is old one, best to set both
tempest_tox_environment: "{{ tempest_tox_environment | combine({'UPPER_CONSTRAINTS_FILE': stable_constraints_file}) | combine({'TOX_CONSTRAINTS_FILE': stable_constraints_file}) }}" tempest_tox_environment: "{{ tempest_tox_environment | combine({'UPPER_CONSTRAINTS_FILE': stable_constraints_file}) | combine({'TOX_CONSTRAINTS_FILE': stable_constraints_file}) }}"
when: target_branch in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein", "stable/train", "stable/ussuri", "unmaintained/victoria", "unmaintained/wallaby"] when: target_branch in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein", "stable/train", "stable/ussuri", "stable/2023.1", "unmaintained/victoria", "unmaintained/wallaby", "unmaintained/xena", "unmaintained/yoga", "unmaintained/zed", "unmaintained/2023.1"]
- name: Use Configured upper-constraints for non-master Tempest - name: Use Configured upper-constraints for non-master Tempest
set_fact: set_fact: