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

chore(logging): added extra variables on environment test runs #6511

Merged
merged 10 commits into from
Sep 2, 2022
11 changes: 11 additions & 0 deletions internal/kokoro/environment.sh
Original file line number Diff line number Diff line change
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
codyoss marked this conversation as resolved.
Show resolved Hide resolved
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