Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): fail cache disk creation if no db version is found #8987

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/sub-deploy-integration-tests-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,18 +503,19 @@ jobs:
)

if [[ -z "$INITIAL_DISK_DB_VERSION" ]]; then
# Check for new database creation
if echo "$DOCKER_LOGS" | grep -q "creating.new.database"; then
INITIAL_DISK_DB_VERSION="new"
else
echo "Checked logs:"
echo ""
echo "$DOCKER_LOGS"
echo ""
echo "Missing initial disk database version in logs: $INITIAL_DISK_DB_VERSION"
echo "Missing initial disk database version in logs"
# Fail the tests, because Zebra didn't log the initial disk database version,
# or the regex in this step is wrong.
false
exit 1
fi

if [[ "$INITIAL_DISK_DB_VERSION" = "creating.new.database" ]]; then
INITIAL_DISK_DB_VERSION="new"
else
INITIAL_DISK_DB_VERSION="v${INITIAL_DISK_DB_VERSION//./-}"
fi
Expand All @@ -538,7 +539,7 @@ jobs:
echo "Missing running database version in logs: $RUNNING_DB_VERSION"
# Fail the tests, because Zebra didn't log the running database version,
# or the regex in this step is wrong.
false
exit 1
fi

RUNNING_DB_VERSION="v${RUNNING_DB_VERSION//./-}"
Expand Down
Loading