Skip to content

Commit ecbd9a1

Browse files
committed
debug commit
1 parent 24b4341 commit ecbd9a1

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

scripts/update_vertexai_responses.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,23 @@
1818
# clone of the shared repository of Vertex AI test data.
1919

2020
RESPONSES_VERSION='v1.*' # The major version of mock responses to use
21+
echo "RESPONSES_VERSION: $RESPONSES_VERSION"
2122
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+
2227
# 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
2738

2839
cd "$(dirname "$0")/../packages/vertexai/test-utils" || exit
2940
rm -rf vertexai-sdk-test-data

0 commit comments

Comments
 (0)