From 9f3c33461182d78a7492cd8216ef4775da65f3b8 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Fri, 2 Sep 2022 13:33:01 -0500 Subject: [PATCH] chore(logging): added extra variables on environment test runs (#6511) --- internal/kokoro/environment.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/kokoro/environment.sh b/internal/kokoro/environment.sh index 21460d40ebe..230dcda8e45 100755 --- a/internal/kokoro/environment.sh +++ b/internal/kokoro/environment.sh @@ -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 @@ -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')"