TEMPEST_BRANCH which is mostly set as master so that Tempest master is run to test the env. With stable branch going to EM state and Tempest master might not work due to incompatibility of code or requirements. In that case we pin the Tempest so that older Tempest can be used for their testing. Till now for ocata, pike and, queens we used the gerrit style ref to pin the Tempest which is not preferred way. We should be able to use the tag name on TEMPEST_BRANCH. This commit explicitly checkout the tag set in TEMPEST_BRANCH as git_clone does not checkout the tag directly until RECLONE is true or tempest dir does not exist. After this stable branch or job can set the tag directly with name. For exmaple: TEMPEST_BRANCH=23.0.0. Tempest master is dropping the py3.5 support[1] and last tag work well with py3.5 is 23.0.0. Stable/rocky jobs use xenail node which has py3.5 version. We need to pin Tempest 23.0.0 in this patch itself to unblock the gate. Depends-On: https://review.opendev.org/#/c/705870/ Depends-On: https://review.opendev.org/#/c/706425/ Related--Bug: 1861308 [1] https://review.opendev.org/#/c/704840/ Change-Id: Ic777e4b56c4932dde135ac909cb5c6f4a7d5cc78
25 lines
840 B
Bash
Executable File
25 lines
840 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
|
|
echo "Ensuring we don't have crazy refs"
|
|
|
|
REFS=`grep BRANCH stackrc | grep -v 'TARGET_BRANCH' | grep -v 'NOVNC_BRANCH' | grep -v TEMPEST_BRANCH`
|
|
rc=$?
|
|
if [[ $rc -eq 0 ]]; then
|
|
echo "Branch defaults must be one of the *TARGET_BRANCH values. Found:"
|
|
echo $REFS
|
|
exit 1
|
|
fi
|