File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 18
18
# clone of the shared repository of Vertex AI test data.
19
19
20
20
RESPONSES_VERSION=' v1.*' # The major version of mock responses to use
21
+ echo " RESPONSES_VERSION: $RESPONSES_VERSION "
21
22
REPO=" https://github.com/FirebaseExtended/vertexai-sdk-test-data.git"
23
+ echo " REPO: $REPO "
24
+
25
+ git clone " $REPO " && echo " CLONED $REPO " && rm -rf vertexai-sdk-test-data
26
+
22
27
# Fetch the latest tag matching the major version from the golden files repository
23
- TAG=$( git -c ' versionsort.suffix=-' ls-remote --tags --sort=' v:refname' " $REPO " \
24
- | grep " $RESPONSES_VERSION " \
25
- | tail -n1 \
26
- | awk -F' /' ' {print $NF}' )
28
+ TAG_LIST=$( git -c ' versionsort.suffix=-' ls-remote --tags --sort=' v:refname' " $REPO " )
29
+ echo " TAG_LIST: $TAG_LIST "
30
+
31
+ TAG=$( echo " $TAG_LIST " | grep " $RESPONSES_VERSION " | tail -n1 | awk -F' /' ' {print $NF}' )
32
+ echo " TAG: $TAG "
33
+
34
+ if [ -z " $TAG " ]; then
35
+ echo " TAG EMPTY"
36
+ exit 1
37
+ fi
27
38
28
39
cd " $( dirname " $0 " ) /../packages/vertexai/test-utils" || exit
29
40
rm -rf vertexai-sdk-test-data
You can’t perform that action at this time.
0 commit comments