Build/Test Explorer

TestFusion
Invocation status: Passed

Kokoro: cloud-devrel/python-docs-samples/python3.12/presubmit

2 targets evaluated on for 4 min, 40 sec
by kokoro-github-subscriber
2 Passed

Showing build.log

Download
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
[14:10:43 PDT] Transferring environment variable script to build VM
[14:10:44 PDT] Transferring kokoro_log_reader.py to build VM
[14:10:45 PDT] Transferring source code to build VM
[14:11:03 PDT] Executing build script on build VM



[ID: 9295022] Executing command via SSH:
export KOKORO_BUILD_NUMBER="4888"
export KOKORO_JOB_NAME="cloud-devrel/python-docs-samples/python3.12/presubmit"
source /tmpfs/kokoro-env_vars.sh; cd /tmpfs/src/ ; chmod 755 github/python-docs-samples/.kokoro/trampoline_v2.sh ; PYTHON_3_VERSION="$(pyenv which python3 2> /dev/null || which python3)" ; PYTHON_2_VERSION="$(pyenv which python2 2> /dev/null || which python2)" ; if "$PYTHON_3_VERSION" -c "import psutil" ; then KOKORO_PYTHON_COMMAND="$PYTHON_3_VERSION" ; else KOKORO_PYTHON_COMMAND="$PYTHON_2_VERSION" ; fi > /dev/null 2>&1 ; echo "export KOKORO_PYTHON_COMMAND="$KOKORO_PYTHON_COMMAND"" > "$HOME/.kokoro_python_vars" ; nohup bash -c "( rm -f /tmpfs/kokoro_build_exit_code ; github/python-docs-samples/.kokoro/trampoline_v2.sh ; echo \${PIPESTATUS[0]} > /tmpfs/kokoro_build_exit_code ) > /tmpfs/kokoro_build.log 2>&1" > /dev/null 2>&1 & echo $! > /tmpfs/kokoro_build.pid ; source "$HOME/.kokoro_python_vars" ; "$KOKORO_PYTHON_COMMAND" /tmpfs/kokoro_log_reader.py /tmpfs/kokoro_build.log /tmpfs/kokoro_build_exit_code /tmpfs/kokoro_build.pid /tmpfs/kokoro_log_reader.pid --start_byte 0

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
================================================================
2025-05-28T21:11:04Z: Building with Trampoline 2.0.3
================================================================
================================================================
2025-05-28T21:11:04Z: Configuring Container Registry access
================================================================
WARNING: Your config file at [/home/kbuilder/.docker/config.json] contains these credential helper entries:

{
"credHelpers": {
"gcr.io": "gcr",
"us.gcr.io": "gcr",
"asia.gcr.io": "gcr",
"staging-k8s.gcr.io": "gcr",
"eu.gcr.io": "gcr"
}
}
These will be overwritten.
Docker configuration file updated.
================================================================
2025-05-28T21:11:04Z: Changing to the project root: /tmpfs/src/github/python-docs-samples.
================================================================
================================================================
2025-05-28T21:11:04Z: Checking environment variables.
================================================================
================================================================
2025-05-28T21:11:04Z: Preparing Docker image.
================================================================
================================================================
2025-05-28T21:11:04Z: Start pulling the Docker image: gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker.
================================================================
Using default tag: latest
latest: Pulling from cloud-devrel-kokoro-resources/python-samples-testing-docker
0622fac788ed: Pulling fs layer
b1de7591ba63: Pulling fs layer
6b38802c3dd9: Pulling fs layer
cee416e42155: Pulling fs layer
1d4c6c498d96: Pulling fs layer
d5af8d927ab3: Pulling fs layer
f4efa54e6abc: Pulling fs layer
0df282198c35: Pulling fs layer
13f3dc63b73b: Pulling fs layer
c966282bf19c: Pulling fs layer
8a336812538c: Pulling fs layer
35608253ffbf: Pulling fs layer
52ab42078966: Pulling fs layer
b4746ee2aaa5: Pulling fs layer
a1fd5a6d4be7: Pulling fs layer
6d75818e0978: Pulling fs layer
130216acf494: Pulling fs layer
2916b289e8a5: Pulling fs layer
d3808fc2d41c: Pulling fs layer
e17a629333d0: Pulling fs layer
f04461289ef9: Pulling fs layer
d773a2240e88: Pulling fs layer
907ed9ee49d3: Pulling fs layer
a38197ff1d2f: Pulling fs layer
e384675ea9ce: Pulling fs layer
663c286ccf3c: Pulling fs layer
321b5f2e7bab: Pulling fs layer
9a84352c4c50: Pulling fs layer
cee416e42155: Waiting
1d4c6c498d96: Waiting
d5af8d927ab3: Waiting
f4efa54e6abc: Waiting
0df282198c35: Waiting
13f3dc63b73b: Waiting
c966282bf19c: Waiting
8a336812538c: Waiting
35608253ffbf: Waiting
52ab42078966: Waiting
b4746ee2aaa5: Waiting
f04461289ef9: Waiting
a1fd5a6d4be7: Waiting
d773a2240e88: Waiting
6d75818e0978: Waiting
907ed9ee49d3: Waiting
321b5f2e7bab: Waiting
130216acf494: Waiting
a38197ff1d2f: Waiting
9a84352c4c50: Waiting
2916b289e8a5: Waiting
d3808fc2d41c: Waiting
663c286ccf3c: Waiting
e17a629333d0: Waiting
e384675ea9ce: Waiting
6b38802c3dd9: Download complete
0622fac788ed: Verifying Checksum
0622fac788ed: Download complete
cee416e42155: Verifying Checksum
cee416e42155: Download complete
d5af8d927ab3: Verifying Checksum
d5af8d927ab3: Download complete
1d4c6c498d96: Verifying Checksum
1d4c6c498d96: Download complete
0df282198c35: Verifying Checksum
0df282198c35: Download complete
f4efa54e6abc: Verifying Checksum
f4efa54e6abc: Download complete
0622fac788ed: Pull complete
c966282bf19c: Verifying Checksum
c966282bf19c: Download complete
b1de7591ba63: Verifying Checksum
b1de7591ba63: Download complete
8a336812538c: Verifying Checksum
8a336812538c: Download complete
35608253ffbf: Verifying Checksum
35608253ffbf: Download complete
b4746ee2aaa5: Verifying Checksum
b4746ee2aaa5: Download complete
52ab42078966: Verifying Checksum
52ab42078966: Download complete
6d75818e0978: Verifying Checksum
6d75818e0978: Download complete
a1fd5a6d4be7: Verifying Checksum
a1fd5a6d4be7: Download complete
130216acf494: Verifying Checksum
130216acf494: Download complete
2916b289e8a5: Verifying Checksum
2916b289e8a5: Download complete
d3808fc2d41c: Verifying Checksum
d3808fc2d41c: Download complete
e17a629333d0: Verifying Checksum
e17a629333d0: Download complete
f04461289ef9: Verifying Checksum
f04461289ef9: Download complete
d773a2240e88: Verifying Checksum
d773a2240e88: Download complete
907ed9ee49d3: Verifying Checksum
907ed9ee49d3: Download complete
a38197ff1d2f: Verifying Checksum
a38197ff1d2f: Download complete
e384675ea9ce: Download complete
13f3dc63b73b: Verifying Checksum
13f3dc63b73b: Download complete
321b5f2e7bab: Verifying Checksum
321b5f2e7bab: Download complete
9a84352c4c50: Verifying Checksum
9a84352c4c50: Download complete
663c286ccf3c: Verifying Checksum
663c286ccf3c: Download complete
b1de7591ba63: Pull complete
6b38802c3dd9: Pull complete
cee416e42155: Pull complete
1d4c6c498d96: Pull complete
d5af8d927ab3: Pull complete
f4efa54e6abc: Pull complete
0df282198c35: Pull complete
13f3dc63b73b: Pull complete
c966282bf19c: Pull complete
8a336812538c: Pull complete
35608253ffbf: Pull complete
52ab42078966: Pull complete
b4746ee2aaa5: Pull complete
a1fd5a6d4be7: Pull complete
6d75818e0978: Pull complete
130216acf494: Pull complete
2916b289e8a5: Pull complete
d3808fc2d41c: Pull complete
e17a629333d0: Pull complete
f04461289ef9: Pull complete
d773a2240e88: Pull complete
907ed9ee49d3: Pull complete
a38197ff1d2f: Pull complete
e384675ea9ce: Pull complete
663c286ccf3c: Pull complete
321b5f2e7bab: Pull complete
9a84352c4c50: Pull complete
Digest: sha256:2afa92fcaf3b984e0f654ae3f38d060d72964aa2ed51ccf5d796694eea811066
Status: Downloaded newer image for gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker:latest
gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker:latest
================================================================
2025-05-28T21:12:07Z: Finished pulling the Docker image: gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker.
================================================================
================================================================
2025-05-28T21:12:07Z: Running the tests in a Docker container.
================================================================
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/local/lib/python3.7/site-packages (24.0)
Activated service account credentials for: [python-docs-samples-secrets-vi@cloud-devrel-kokoro-resources.iam.gserviceaccount.com]
Activated service account credentials for: [jenkins-and-travis@python-docs-samples-tests.iam.gserviceaccount.com]
\Cloud SQL proxy started for MySQL.
\Cloud SQL proxy started for Postgres.
\Cloud SQL proxy started for SQL Server.

******************** TESTING PROJECTS ********************
btlr run --max-cmd-duration=60m **/requirements.txt --git-diff origin/main... . -- /workspace/.kokoro/tests/run_single_test.sh
Collecting directories that match pattern...376 collected.
Checking for changes with "git diff"... [0 of 376 complete].
Running command(s)... [0 of 1 complete].
#
# generative_ai/embeddings
#

------------------------------------------------------------
- testing /workspace/generative_ai/embeddings
------------------------------------------------------------

Using noxfile-template from parent folder (/workspace).

/workspace /workspace/generative_ai/embeddings
Makefile:60: Use of a Python Virtual Environment is recommended. See README.md for details.
pip install nox
cd generative_ai/embeddings
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: nox in /h/.local/lib/python3.7/site-packages (2024.4.15)
Requirement already satisfied: argcomplete<4.0,>=1.9.4 in /h/.local/lib/python3.7/site-packages (from nox) (3.1.2)
Requirement already satisfied: colorlog<7.0.0,>=2.6.1 in /h/.local/lib/python3.7/site-packages (from nox) (6.9.0)
Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/site-packages (from nox) (6.7.0)
Requirement already satisfied: packaging>=20.9 in /h/.local/lib/python3.7/site-packages (from nox) (24.0)
Requirement already satisfied: tomli>=1 in /h/.local/lib/python3.7/site-packages (from nox) (2.0.1)
Requirement already satisfied: typing-extensions>=3.7.4 in /usr/local/lib/python3.7/site-packages (from nox) (4.7.1)
Requirement already satisfied: virtualenv>=20.14.1 in /usr/local/lib/python3.7/site-packages (from nox) (20.26.6)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/site-packages (from importlib-metadata->nox) (3.15.0)
Requirement already satisfied: distlib<1,>=0.3.7 in /usr/local/lib/python3.7/site-packages (from virtualenv>=20.14.1->nox) (0.3.9)
Requirement already satisfied: filelock<4,>=3.12.2 in /usr/local/lib/python3.7/site-packages (from virtualenv>=20.14.1->nox) (3.12.2)
Requirement already satisfied: platformdirs<5,>=3.9.1 in /usr/local/lib/python3.7/site-packages (from virtualenv>=20.14.1->nox) (4.0.0)
cd generative_ai/embeddings
cp /workspace/noxfile-template.py noxfile.py
cd generative_ai/embeddings
nox -s py-3.12
nox > Running session py-3.12
nox > Creating virtual environment (virtualenv) using python3.12 in .nox/py-3-12
nox > python -m pip install --upgrade pip
nox > python -m pip install -r requirements.txt --only-binary :all
nox > python -m pip install -r requirements-test.txt --only-binary :all
nox > pytest --junitxml=sponge_log.xml
============================= test session starts ==============================
platform linux -- Python 3.12.7, pytest-8.2.0, pluggy-1.6.0 -- /workspace/generative_ai/embeddings/.nox/py-3-12/bin/python
cachedir: .pytest_cache
rootdir: /workspace
configfile: pytest.ini
plugins: asyncio-0.23.6, anyio-4.9.0
asyncio: mode=Mode.STRICT
collecting ... collected 7 items

test_embeddings_examples.py::test_multimodal_embedding_image_video_text PASSED [ 14%]
test_embeddings_examples.py::test_multimodal_embedding_video PASSED [ 28%]
test_embeddings_examples.py::test_multimodal_embedding_image PASSED [ 42%]
test_embeddings_examples.py::test_generate_embeddings_with_lower_dimension PASSED [ 57%]
test_embeddings_examples.py::test_text_embed_text PASSED [ 71%]
test_embeddings_examples.py::test_code_embed_text PASSED [ 85%]
test_embeddings_examples.py::test_tune_embedding_model PASSED [100%]

=============================== warnings summary ===============================
:488
:488: DeprecationWarning: Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

:488
:488: DeprecationWarning: Type google._upb._message.ScalarMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
---- generated xml file: /workspace/generative_ai/embeddings/sponge_log.xml ----
======================== 7 passed, 2 warnings in 25.57s ========================
nox > Session py-3.12 was successful.
/workspace/generative_ai/embeddings
PWD: /workspace/generative_ai/embeddings

Testing completed.




#
# Summary
#

SUCCESS: 1, FAILURE: 0, SKIPPED: 0, ERROR: 0, 
generative_ai/embeddings..............................................[ SUCCESS]
================================================================
2025-05-28T21:13:34Z: Build finished with 0
================================================================


[ID: 9295022] Command finished after 151 secs, exit value: 0


Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
[14:13:35 PDT] Collecting build artifacts from build VM
[14:14:03 PDT] Kokoro builder finished