Skip to content

Commit

Permalink
chore(logging): pin environment test submodule to tag (#6468)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Aug 4, 2022
1 parent 9dd9df0 commit 2b85882
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/kokoro/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ cd "${KOKORO_ARTIFACTS_DIR}/github/google-cloud-go/internal/"
git submodule add https://github.com/googleapis/env-tests-logging
cd "env-tests-logging/"
export ENV_TEST_PY_VERSION=3.7
echo "using python version: $ENV_TEST_PY_VERSION"

# run tests from git tag golang-envtest-pin when available
TAG_ID="golang-envtest-pin"
git fetch --tags
if [ $(git tag -l "$TAG_ID") ]; then
git -c advice.detachedHead=false checkout $TAG_ID
else
echo "WARNING: tag $TAG_ID not found in repo"
fi
echo "running env-tests-logging at commit: $(git rev-parse HEAD)"

# Disable buffering, so that the logs stream through.
export PYTHONUNBUFFERED=1
Expand Down

0 comments on commit 2b85882

Please sign in to comment.