Skip to content

Commit

Permalink
chore(logging): added extra variables on environment test runs (#6511)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Sep 2, 2022
1 parent f8a307c commit 9f3c334
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/kokoro/environment.sh
Expand Up @@ -29,6 +29,11 @@ if [[ -z "${PROJECT_ROOT:-}" ]]; then
PROJECT_ROOT="github/google-cloud-go"
fi

# add kokoro labels for testgrid filtering
export PRODUCT_AREA_LABEL=observability
export PRODUCT_LABEL=logging
export LANGUAGE_LABEL=go

# Add the test module as a submodule to the repo.
cd "${KOKORO_ARTIFACTS_DIR}/github/google-cloud-go/internal/"
git submodule add https://github.com/googleapis/env-tests-logging
Expand Down Expand Up @@ -83,6 +88,12 @@ if [[ $ENVIRONMENT == *"kubernetes"* ]]; then
export PATH=$PATH:~/.local/bin/
fi

# If Functions, use python3.8, since that's what's in go116 container
if [[ $ENVIRONMENT == *"functions"* ]]; then
export ENV_TEST_PY_VERSION=3.8
python3 -m pip install nox
fi

# Run the environment test for the specified GCP service
set +e
python3 -m nox --session "tests(language='go', platform='$ENVIRONMENT')"
Expand Down

0 comments on commit 9f3c334

Please sign in to comment.