Skip to content

Commit e1c0406

Browse files
author
Ghanshyam
committed
Support TEMPEST_BRANCH with tag name
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. Change-Id: Ic777e4b56c4932dde135ac909cb5c6f4a7d5cc78
1 parent 035b41b commit e1c0406

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/tempest

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,11 @@ function install_tempest {
686686
git_clone $TEMPEST_REPO $TEMPEST_DIR $TEMPEST_BRANCH
687687
pip_install 'tox!=2.8.0'
688688
pushd $TEMPEST_DIR
689+
# NOTE(gmann): checkout the TEMPEST_BRANCH in case TEMPEST_BRANCH
690+
# is tag name not master. git_clone would not checkout tag because
691+
# TEMPEST_DIR already exist until RECLONE is true.
692+
git checkout $TEMPEST_BRANCH
693+
689694
tox -r --notest -efull
690695
# NOTE(mtreinish) Respect constraints in the tempest full venv, things that
691696
# are using a tox job other than full will not be respecting constraints but

0 commit comments

Comments
 (0)