heat/roles/run-heat-tests
Ghanshyam Mann 37e9da2a5a Fix setting the tempest virtual env constraints env var
Heat upgrade script set the env var TOX_CONSTRAINTS_FILE/UPPER_CONSTRAINTS_FILE
which are used to use the constraints during Tempest virtual env
installation. Those env var are set to non-master constraint when
we need to use non-master constraints but when we need to use the
master constraints we do not set/reset them point to master constraints.

This create the issue when this grenade script install the tempest with
stable constraints but with master Tempest and as there is mismatch of
constraints now with fasteners of stable branches. Below is failure
of heat greande job on stable/yoga

- https://zuul.opendev.org/t/openstack/build/3aaec4d59bb84068bb4d4428ea747cbd/log/controller/logs/grenade.sh_log.txt#3245

Similar way, role should set stable constraints only for the stable EM branch
not for all otherwise it fail when constraints/requirements are bumped.

- https://zuul.opendev.org/t/openstack/build/74f86b8097f44c35acaffdcfe41d9693

We should set/reset those constraint env var to master constraints if configuration
tell to use the master constraints.

Note:
This backport includes change Ie552e6398c10797e4df4afe757760c48ca7f80af
to unblock gate by a single commit.

Closes-Bug: #2003993
Change-Id: I024cd134577338fc1075e7742df7f006dc914646
(cherry picked from commit dbbba907d3)
(cherry picked from commit b29266398f)
(cherry picked from commit 391684581b)
(cherry picked from commit 1360cfdfa3)
2023-04-11 02:13:33 +09:00
..
defaults Fix setting the tempest virtual env constraints env var 2023-04-11 02:13:33 +09:00
tasks Fix setting the tempest virtual env constraints env var 2023-04-11 02:13:33 +09:00