Skip to content

Commit 284d517

Browse files
[SW-218309][CI] Changed How Synapse Version Is Calculated For Tests (#958)
Changed how Synapse version is calculated for tests. If the base branch of the PR is a release version, it will use the release version, for any other base branch it will use the same version as in habana_main which is the latest released one.
1 parent 265491a commit 284d517

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/trigger_jenkins.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,13 @@ jobs:
220220
RELEASED_SYNAPSE_VERSION: ${{ vars.RELEASED_SYNAPSE_VERSION }}
221221
BASE_BRANCH: ${{ needs.read_codeowners.outputs.pr_branch }}
222222
run: |
223-
if [[ $TARGET_BRANCH == "habana_main" ]]; then
224-
synapse_version=${RELEASED_SYNAPSE_VERSION#v}
225-
elif [[ $TARGET_BRANCH =~ v*.*.* ]]; then
223+
version_regex='^v([0-9]+)\.([0-9]+)\.([0-9]+)$'
224+
if [[ $TARGET_BRANCH =~ $version_regex ]]; then
226225
synapse_version=${TARGET_BRANCH#v}
227226
else
228-
echo "Can't Calculate Synapse Version, Failing The Test"
229-
exit 1
227+
synapse_version=${RELEASED_SYNAPSE_VERSION#v}
230228
fi
229+
echo "Using SynapseAI version ${synapse_version}"
231230
synapse_build=$(curl "https://dms.habana-labs.com/api/v1.1/branch/info/v$synapse_version" | jq -r ".release_id")
232231
pt_version=${{ vars.PT_VERSION }}
233232
BUILD_TAG="Github-vLLM-Fork-${{ github.event.number }}-${{github.run_number}}"

0 commit comments

Comments
 (0)