Showing build.log
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.
[08:14:51 PST] Transferring environment variable script to build VM
[08:14:52 PST] Transferring kokoro_log_reader.py to build VM
[08:14:53 PST] Transferring source code to build VM
[08:15:08 PST] Executing build script on build VM
[ID: 6315794] Executing command via SSH:
export KOKORO_BUILD_NUMBER="17226"
export KOKORO_JOB_NAME="cloud-devrel/python-docs-samples/python3.9/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
================================================================
2024-12-02T16:15:09Z: Building with Trampoline 2.0.3
================================================================
================================================================
2024-12-02T16:15:09Z: 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.
================================================================
2024-12-02T16:15:09Z: Changing to the project root: /tmpfs/src/github/python-docs-samples.
================================================================
================================================================
2024-12-02T16:15:09Z: Checking environment variables.
================================================================
================================================================
2024-12-02T16:15:09Z: Preparing Docker image.
================================================================
================================================================
2024-12-02T16:15:09Z: 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
80888bc6716f: Pulling fs layer
03c724804c61: Pulling fs layer
05410f3866a3: Pulling fs layer
656c46bf312c: Pulling fs layer
1bf293f769d2: Pulling fs layer
b675417f13ab: Pulling fs layer
53f42e8b892a: Pulling fs layer
18b82e09288d: Pulling fs layer
8aa12e84f83f: Pulling fs layer
6997b196b7b0: Pulling fs layer
246dcb4dc014: Pulling fs layer
e0d045af05af: Pulling fs layer
3401d33f44aa: Pulling fs layer
3422b321081b: Pulling fs layer
6d547a2dd452: Pulling fs layer
8c7365b1e718: Pulling fs layer
b8ae8311c94e: Pulling fs layer
b564e325fac2: Pulling fs layer
cd0e55646a1f: Pulling fs layer
0e6f2b2b9130: Pulling fs layer
cf64d5c20f83: Pulling fs layer
2f259691572d: Pulling fs layer
cb82b59bfa32: Pulling fs layer
9a71f9dfecad: Pulling fs layer
ccef0a8f41e9: Pulling fs layer
2748c3855c2e: Pulling fs layer
656c46bf312c: Waiting
18b82e09288d: Waiting
8aa12e84f83f: Waiting
1bf293f769d2: Waiting
b675417f13ab: Waiting
53f42e8b892a: Waiting
6997b196b7b0: Waiting
cd0e55646a1f: Waiting
0e6f2b2b9130: Waiting
e0d045af05af: Waiting
246dcb4dc014: Waiting
3401d33f44aa: Waiting
cf64d5c20f83: Waiting
8c7365b1e718: Waiting
3422b321081b: Waiting
6d547a2dd452: Waiting
2f259691572d: Waiting
2748c3855c2e: Waiting
b8ae8311c94e: Waiting
b564e325fac2: Waiting
ccef0a8f41e9: Waiting
9a71f9dfecad: Waiting
05410f3866a3: Download complete
80888bc6716f: Verifying Checksum
80888bc6716f: Download complete
656c46bf312c: Verifying Checksum
656c46bf312c: Download complete
80888bc6716f: Pull complete
b675417f13ab: Verifying Checksum
b675417f13ab: Download complete
03c724804c61: Verifying Checksum
03c724804c61: Download complete
53f42e8b892a: Verifying Checksum
53f42e8b892a: Download complete
18b82e09288d: Verifying Checksum
18b82e09288d: Download complete
6997b196b7b0: Verifying Checksum
6997b196b7b0: Download complete
246dcb4dc014: Verifying Checksum
246dcb4dc014: Download complete
e0d045af05af: Verifying Checksum
e0d045af05af: Download complete
3401d33f44aa: Download complete
3422b321081b: Verifying Checksum
3422b321081b: Download complete
6d547a2dd452: Verifying Checksum
6d547a2dd452: Download complete
8c7365b1e718: Verifying Checksum
8c7365b1e718: Download complete
b8ae8311c94e: Verifying Checksum
b8ae8311c94e: Download complete
b564e325fac2: Verifying Checksum
b564e325fac2: Download complete
cd0e55646a1f: Verifying Checksum
cd0e55646a1f: Download complete
8aa12e84f83f: Verifying Checksum
8aa12e84f83f: Download complete
cf64d5c20f83: Verifying Checksum
cf64d5c20f83: Download complete
0e6f2b2b9130: Verifying Checksum
0e6f2b2b9130: Download complete
2f259691572d: Verifying Checksum
2f259691572d: Download complete
cb82b59bfa32: Download complete
ccef0a8f41e9: Verifying Checksum
ccef0a8f41e9: Download complete
1bf293f769d2: Verifying Checksum
1bf293f769d2: Download complete
2748c3855c2e: Verifying Checksum
2748c3855c2e: Download complete
9a71f9dfecad: Verifying Checksum
03c724804c61: Pull complete
05410f3866a3: Pull complete
656c46bf312c: Pull complete
1bf293f769d2: Pull complete
b675417f13ab: Pull complete
53f42e8b892a: Pull complete
18b82e09288d: Pull complete
8aa12e84f83f: Pull complete
6997b196b7b0: Pull complete
246dcb4dc014: Pull complete
e0d045af05af: Pull complete
3401d33f44aa: Pull complete
3422b321081b: Pull complete
6d547a2dd452: Pull complete
8c7365b1e718: Pull complete
b8ae8311c94e: Pull complete
b564e325fac2: Pull complete
cd0e55646a1f: Pull complete
0e6f2b2b9130: Pull complete
cf64d5c20f83: Pull complete
2f259691572d: Pull complete
cb82b59bfa32: Pull complete
9a71f9dfecad: Pull complete
ccef0a8f41e9: Pull complete
2748c3855c2e: Pull complete
Digest: sha256:3b0dd85909b9edd6270077f2a23b4c46d9d178bcfe95c7083edeed2d103989f0
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
================================================================
2024-12-02T16:16:03Z: Finished pulling the Docker image: gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker.
================================================================
================================================================
2024-12-02T16:16:04Z: 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...371 collected.
Checking for changes with "git diff"... [0 of 371 complete].
Running command(s)... [0 of 1 complete].
#
# generative_ai/function_calling
#
------------------------------------------------------------
- testing /workspace/generative_ai/function_calling
------------------------------------------------------------
Using noxfile-template from parent folder (/workspace).
/workspace /workspace/generative_ai/function_calling
Makefile:60: Use of a Python Virtual Environment is recommended. See README.md for details.
pip install nox
cd generative_ai/function_calling
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.25.3)
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.8)
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/function_calling
cp /workspace/noxfile-template.py noxfile.py
cd generative_ai/function_calling
nox -s py-3.9
nox > Running session py-3.9
nox > Creating virtual environment (virtualenv) using python3.9 in .nox/py-3-9
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.9.18, pytest-8.2.0, pluggy-1.5.0 -- /workspace/generative_ai/function_calling/.nox/py-3-9/bin/python
cachedir: .pytest_cache
rootdir: /workspace
configfile: pytest.ini
plugins: anyio-4.6.2.post1, asyncio-0.23.6
asyncio: mode=strict
collecting ... collected 7 items
test_function_calling.py::test_function_calling PASSED [ 14%]
test_function_calling.py::test_function_calling_advanced_function_selection PASSED [ 28%]
test_function_calling.py::test_function_calling_basic FAILED [ 42%]
test_function_calling.py::test_function_calling_config FAILED [ 57%]
test_function_calling.py::test_function_calling_chat PASSED [ 71%]
test_function_calling.py::test_parallel_function_calling PASSED [ 85%]
test_function_calling.py::test_prototype PASSED [100%]
=================================== FAILURES ===================================
_________________________ test_function_calling_basic __________________________
Traceback (most recent call last):
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 241, in
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call
yield from thread_exception_runtest_hook()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call
yield from unraisable_exception_runtest_hook()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield from self._runtest_for(item, "call")
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/logging.py", line 833, in _runtest_for
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/capture.py", line 878, in pytest_runtest_call
return (yield)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
return (yield)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 183, in pytest_runtest_call
raise e
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 173, in pytest_runtest_call
item.runtest()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/python.py", line 1627, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 182, in _multicall
return outcome.get_result()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_result.py", line 100, in get_result
raise exc.with_traceback(exc.__traceback__)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/python.py", line 162, in pytest_pyfunc_call
result = testfunction(**testargs)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
File "/workspace/generative_ai/function_calling/test_function_calling.py", line 59, in test_function_calling_basic
response = chat_function_calling_basic.generate_text()
File "/workspace/generative_ai/function_calling/chat_function_calling_basic.py", line 39, in generate_text
client = openai.OpenAI(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_client.py", line 122, in __init__
super().__init__(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 825, in __init__
self._client = http_client or SyncHttpxClientWrapper(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 723, in __init__
super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'proxies'
_________________________ test_function_calling_config _________________________
Traceback (most recent call last):
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 241, in
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call
yield from thread_exception_runtest_hook()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call
yield from unraisable_exception_runtest_hook()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield from self._runtest_for(item, "call")
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/logging.py", line 833, in _runtest_for
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/capture.py", line 878, in pytest_runtest_call
return (yield)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
return (yield)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 183, in pytest_runtest_call
raise e
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 173, in pytest_runtest_call
item.runtest()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/python.py", line 1627, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 182, in _multicall
return outcome.get_result()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_result.py", line 100, in get_result
raise exc.with_traceback(exc.__traceback__)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/python.py", line 162, in pytest_pyfunc_call
result = testfunction(**testargs)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
File "/workspace/generative_ai/function_calling/test_function_calling.py", line 65, in test_function_calling_config
response = chat_function_calling_config.generate_text()
File "/workspace/generative_ai/function_calling/chat_function_calling_config.py", line 39, in generate_text
client = openai.OpenAI(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_client.py", line 122, in __init__
super().__init__(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 825, in __init__
self._client = http_client or SyncHttpxClientWrapper(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 723, in __init__
super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'proxies'
- generated xml file: /workspace/generative_ai/function_calling/sponge_log.xml -
=========================== short test summary info ============================
FAILED test_function_calling.py::test_function_calling_basic - TypeError: __i...
FAILED test_function_calling.py::test_function_calling_config - TypeError: __...
========================= 2 failed, 5 passed in 14.85s =========================
nox > Command pytest --junitxml=sponge_log.xml failed with exit code 1
nox > Session py-3.9 failed.
make: *** [Makefile:40: test] Error 1
/workspace/generative_ai/function_calling
PWD: /workspace/generative_ai/function_calling
Testing failed: Nox returned a non-zero exit code.
err: exit status 2
#
# Summary
#
SUCCESS: 0, FAILURE: 1, SKIPPED: 0, ERROR: 0,
generative_ai/function_calling........................................[ FAILURE]
================================================================
2024-12-02T16:17:15Z: Build finished with 2
================================================================
[ID: 6315794] Command finished after 128 secs, exit value: 2
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
[08:17:16 PST] Collecting build artifacts from build VM
Build script failed with exit code: 2
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
[08:14:51 PST] Transferring environment variable script to build VM
[08:14:52 PST] Transferring kokoro_log_reader.py to build VM
[08:14:53 PST] Transferring source code to build VM
[08:15:08 PST] Executing build script on build VM
[ID: 6315794] Executing command via SSH:
export KOKORO_BUILD_NUMBER="17226"
export KOKORO_JOB_NAME="cloud-devrel/python-docs-samples/python3.9/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
================================================================
2024-12-02T16:15:09Z: Building with Trampoline 2.0.3
================================================================
================================================================
2024-12-02T16:15:09Z: 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.
================================================================
2024-12-02T16:15:09Z: Changing to the project root: /tmpfs/src/github/python-docs-samples.
================================================================
================================================================
2024-12-02T16:15:09Z: Checking environment variables.
================================================================
================================================================
2024-12-02T16:15:09Z: Preparing Docker image.
================================================================
================================================================
2024-12-02T16:15:09Z: 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
80888bc6716f: Pulling fs layer
03c724804c61: Pulling fs layer
05410f3866a3: Pulling fs layer
656c46bf312c: Pulling fs layer
1bf293f769d2: Pulling fs layer
b675417f13ab: Pulling fs layer
53f42e8b892a: Pulling fs layer
18b82e09288d: Pulling fs layer
8aa12e84f83f: Pulling fs layer
6997b196b7b0: Pulling fs layer
246dcb4dc014: Pulling fs layer
e0d045af05af: Pulling fs layer
3401d33f44aa: Pulling fs layer
3422b321081b: Pulling fs layer
6d547a2dd452: Pulling fs layer
8c7365b1e718: Pulling fs layer
b8ae8311c94e: Pulling fs layer
b564e325fac2: Pulling fs layer
cd0e55646a1f: Pulling fs layer
0e6f2b2b9130: Pulling fs layer
cf64d5c20f83: Pulling fs layer
2f259691572d: Pulling fs layer
cb82b59bfa32: Pulling fs layer
9a71f9dfecad: Pulling fs layer
ccef0a8f41e9: Pulling fs layer
2748c3855c2e: Pulling fs layer
656c46bf312c: Waiting
18b82e09288d: Waiting
8aa12e84f83f: Waiting
1bf293f769d2: Waiting
b675417f13ab: Waiting
53f42e8b892a: Waiting
6997b196b7b0: Waiting
cd0e55646a1f: Waiting
0e6f2b2b9130: Waiting
e0d045af05af: Waiting
246dcb4dc014: Waiting
3401d33f44aa: Waiting
cf64d5c20f83: Waiting
8c7365b1e718: Waiting
3422b321081b: Waiting
6d547a2dd452: Waiting
2f259691572d: Waiting
2748c3855c2e: Waiting
b8ae8311c94e: Waiting
b564e325fac2: Waiting
ccef0a8f41e9: Waiting
9a71f9dfecad: Waiting
05410f3866a3: Download complete
80888bc6716f: Verifying Checksum
80888bc6716f: Download complete
656c46bf312c: Verifying Checksum
656c46bf312c: Download complete
80888bc6716f: Pull complete
b675417f13ab: Verifying Checksum
b675417f13ab: Download complete
03c724804c61: Verifying Checksum
03c724804c61: Download complete
53f42e8b892a: Verifying Checksum
53f42e8b892a: Download complete
18b82e09288d: Verifying Checksum
18b82e09288d: Download complete
6997b196b7b0: Verifying Checksum
6997b196b7b0: Download complete
246dcb4dc014: Verifying Checksum
246dcb4dc014: Download complete
e0d045af05af: Verifying Checksum
e0d045af05af: Download complete
3401d33f44aa: Download complete
3422b321081b: Verifying Checksum
3422b321081b: Download complete
6d547a2dd452: Verifying Checksum
6d547a2dd452: Download complete
8c7365b1e718: Verifying Checksum
8c7365b1e718: Download complete
b8ae8311c94e: Verifying Checksum
b8ae8311c94e: Download complete
b564e325fac2: Verifying Checksum
b564e325fac2: Download complete
cd0e55646a1f: Verifying Checksum
cd0e55646a1f: Download complete
8aa12e84f83f: Verifying Checksum
8aa12e84f83f: Download complete
cf64d5c20f83: Verifying Checksum
cf64d5c20f83: Download complete
0e6f2b2b9130: Verifying Checksum
0e6f2b2b9130: Download complete
2f259691572d: Verifying Checksum
2f259691572d: Download complete
cb82b59bfa32: Download complete
ccef0a8f41e9: Verifying Checksum
ccef0a8f41e9: Download complete
1bf293f769d2: Verifying Checksum
1bf293f769d2: Download complete
2748c3855c2e: Verifying Checksum
2748c3855c2e: Download complete
9a71f9dfecad: Verifying Checksum
03c724804c61: Pull complete
05410f3866a3: Pull complete
656c46bf312c: Pull complete
1bf293f769d2: Pull complete
b675417f13ab: Pull complete
53f42e8b892a: Pull complete
18b82e09288d: Pull complete
8aa12e84f83f: Pull complete
6997b196b7b0: Pull complete
246dcb4dc014: Pull complete
e0d045af05af: Pull complete
3401d33f44aa: Pull complete
3422b321081b: Pull complete
6d547a2dd452: Pull complete
8c7365b1e718: Pull complete
b8ae8311c94e: Pull complete
b564e325fac2: Pull complete
cd0e55646a1f: Pull complete
0e6f2b2b9130: Pull complete
cf64d5c20f83: Pull complete
2f259691572d: Pull complete
cb82b59bfa32: Pull complete
9a71f9dfecad: Pull complete
ccef0a8f41e9: Pull complete
2748c3855c2e: Pull complete
Digest: sha256:3b0dd85909b9edd6270077f2a23b4c46d9d178bcfe95c7083edeed2d103989f0
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
================================================================
2024-12-02T16:16:03Z: Finished pulling the Docker image: gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker.
================================================================
================================================================
2024-12-02T16:16:04Z: 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...371 collected.
Checking for changes with "git diff"... [0 of 371 complete].
Running command(s)... [0 of 1 complete].
#
# generative_ai/function_calling
#
------------------------------------------------------------
- testing /workspace/generative_ai/function_calling
------------------------------------------------------------
Using noxfile-template from parent folder (/workspace).
/workspace /workspace/generative_ai/function_calling
Makefile:60: Use of a Python Virtual Environment is recommended. See README.md for details.
pip install nox
cd generative_ai/function_calling
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.25.3)
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.8)
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/function_calling
cp /workspace/noxfile-template.py noxfile.py
cd generative_ai/function_calling
nox -s py-3.9
nox > Running session py-3.9
nox > Creating virtual environment (virtualenv) using python3.9 in .nox/py-3-9
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.9.18, pytest-8.2.0, pluggy-1.5.0 -- /workspace/generative_ai/function_calling/.nox/py-3-9/bin/python
cachedir: .pytest_cache
rootdir: /workspace
configfile: pytest.ini
plugins: anyio-4.6.2.post1, asyncio-0.23.6
asyncio: mode=strict
collecting ... collected 7 items
test_function_calling.py::test_function_calling PASSED [ 14%]
test_function_calling.py::test_function_calling_advanced_function_selection PASSED [ 28%]
test_function_calling.py::test_function_calling_basic FAILED [ 42%]
test_function_calling.py::test_function_calling_config FAILED [ 57%]
test_function_calling.py::test_function_calling_chat PASSED [ 71%]
test_function_calling.py::test_parallel_function_calling PASSED [ 85%]
test_function_calling.py::test_prototype PASSED [100%]
=================================== FAILURES ===================================
_________________________ test_function_calling_basic __________________________
Traceback (most recent call last):
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 241, in
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call
yield from thread_exception_runtest_hook()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call
yield from unraisable_exception_runtest_hook()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield from self._runtest_for(item, "call")
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/logging.py", line 833, in _runtest_for
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/capture.py", line 878, in pytest_runtest_call
return (yield)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
return (yield)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 183, in pytest_runtest_call
raise e
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 173, in pytest_runtest_call
item.runtest()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/python.py", line 1627, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 182, in _multicall
return outcome.get_result()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_result.py", line 100, in get_result
raise exc.with_traceback(exc.__traceback__)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/python.py", line 162, in pytest_pyfunc_call
result = testfunction(**testargs)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
File "/workspace/generative_ai/function_calling/test_function_calling.py", line 59, in test_function_calling_basic
response = chat_function_calling_basic.generate_text()
File "/workspace/generative_ai/function_calling/chat_function_calling_basic.py", line 39, in generate_text
client = openai.OpenAI(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_client.py", line 122, in __init__
super().__init__(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 825, in __init__
self._client = http_client or SyncHttpxClientWrapper(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 723, in __init__
super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'proxies'
_________________________ test_function_calling_config _________________________
Traceback (most recent call last):
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 241, in
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/threadexception.py", line 87, in pytest_runtest_call
yield from thread_exception_runtest_hook()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/unraisableexception.py", line 90, in pytest_runtest_call
yield from unraisable_exception_runtest_hook()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield from self._runtest_for(item, "call")
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/logging.py", line 833, in _runtest_for
yield
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/capture.py", line 878, in pytest_runtest_call
return (yield)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
return (yield)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 183, in pytest_runtest_call
raise e
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/runner.py", line 173, in pytest_runtest_call
item.runtest()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/python.py", line 1627, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 182, in _multicall
return outcome.get_result()
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_result.py", line 100, in get_result
raise exc.with_traceback(exc.__traceback__)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/_pytest/python.py", line 162, in pytest_pyfunc_call
result = testfunction(**testargs)
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
File "/workspace/generative_ai/function_calling/test_function_calling.py", line 65, in test_function_calling_config
response = chat_function_calling_config.generate_text()
File "/workspace/generative_ai/function_calling/chat_function_calling_config.py", line 39, in generate_text
client = openai.OpenAI(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_client.py", line 122, in __init__
super().__init__(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 825, in __init__
self._client = http_client or SyncHttpxClientWrapper(
File "/workspace/generative_ai/function_calling/.nox/py-3-9/lib/python3.9/site-packages/openai/_base_client.py", line 723, in __init__
super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'proxies'
- generated xml file: /workspace/generative_ai/function_calling/sponge_log.xml -
=========================== short test summary info ============================
FAILED test_function_calling.py::test_function_calling_basic - TypeError: __i...
FAILED test_function_calling.py::test_function_calling_config - TypeError: __...
========================= 2 failed, 5 passed in 14.85s =========================
nox > Command pytest --junitxml=sponge_log.xml failed with exit code 1
nox > Session py-3.9 failed.
make: *** [Makefile:40: test] Error 1
/workspace/generative_ai/function_calling
PWD: /workspace/generative_ai/function_calling
Testing failed: Nox returned a non-zero exit code.
err: exit status 2
#
# Summary
#
SUCCESS: 0, FAILURE: 1, SKIPPED: 0, ERROR: 0,
generative_ai/function_calling........................................[ FAILURE]
================================================================
2024-12-02T16:17:15Z: Build finished with 2
================================================================
[ID: 6315794] Command finished after 128 secs, exit value: 2
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
[08:17:16 PST] Collecting build artifacts from build VM
Build script failed with exit code: 2