Skip to content

Commit 0a49832

Browse files
ci(spanner): use airlock for presubmit jobs
1 parent a1d4db0 commit 0a49832

File tree

5 files changed

+5
-117
lines changed

5 files changed

+5
-117
lines changed

.kokoro/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export PYTHONUNBUFFERED=1
2828
env | grep KOKORO
2929

3030
# Setup service account credentials.
31-
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
31+
# export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
3232

3333
# Set up creating a new instance for each system test run
3434
export GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE=true
@@ -48,6 +48,8 @@ fi
4848

4949
set -x
5050
if [[ $USE_AIRLOCK = 'true' ]]; then
51+
python3 -m pip install --upgrade pip
52+
python3 -m pip install -r .kokoro/requirements-auth.txt -i https://pypi.org/simple/ --require-hashes --only-binary :all:
5153
cat > $HOME/.pypirc <<EOL
5254
[distutils]
5355
index-servers =
@@ -61,6 +63,7 @@ EOL
6163
[global]
6264
index-url = https://us-python.pkg.dev/artifact-foundry-prod/python-3p-trusted/simple/
6365
EOL
66+
python3 -m pip install 'grpcio' --verbose
6467
fi
6568

6669
# If NOX_SESSION is set, it only runs the specified session,

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def install_systemtest_dependencies(session, *constraints):
279279
# Exclude version 1.52.0rc1 which has a known issue.
280280
# See https://github.com/grpc/grpc/issues/32163
281281
install_default_packages(session)
282-
session.install("--pre", "grpcio!=1.52.0rc1")
282+
session.install("--pre", "grpcio!=1.52.0rc1", "--verbose")
283283

284284
session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES, *constraints)
285285

requirements.in

Lines changed: 0 additions & 14 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 96 deletions
This file was deleted.

spanner/pyvenv.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)