Build/Test Explorer

TestFusion
Invocation status: Failed

Kokoro: cloud-devrel/client-libraries/python/googleapis/python-bigtable/continuous/continuous

2 targets evaluated on for 21 min, 7 sec
by kokoro-github-subscriber
1 Failed1 Flaky

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.
[12:42:16] Transferring environment variable script to build VM
[12:42:17] Transferring kokoro_log_reader.py to build VM
[12:42:18] Transferring source code to build VM
[12:42:21] Executing build script on build VM



[ID: 9625597] Executing command via SSH:
export KOKORO_BUILD_NUMBER="1140"
export KOKORO_JOB_NAME="cloud-devrel/client-libraries/python/googleapis/python-bigtable/continuous/continuous"
source /tmpfs/kokoro-env_vars.sh; cd /tmpfs/src/ ; chmod 755 github/python-bigtable/.kokoro/trampoline.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-bigtable/.kokoro/trampoline.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

2022-08-24 12:42:22 Creating folder on disk for secrets: /tmpfs/src/gfile/secret_manager
Activated service account credentials for: [kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com]
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.
Using default tag: latest
latest: Pulling from cloud-devrel-kokoro-resources/python-multi
7b1a6ab2e44d: Pulling fs layer
efda0cb4e940: Pulling fs layer
5afd1e696f4a: Pulling fs layer
bdc05debc682: Pulling fs layer
1f08968bc3a8: Pulling fs layer
f9f04c715151: Pulling fs layer
a891d4b1ab60: Pulling fs layer
3bf51e9a41bc: Pulling fs layer
3b49cdb0cc0c: Pulling fs layer
decbea96b723: Pulling fs layer
a2b964b235b6: Pulling fs layer
8f9f178fcc48: Pulling fs layer
649390b026ce: Pulling fs layer
f7f53b411e60: Pulling fs layer
2bb5a8889ee1: Pulling fs layer
316815cec557: Pulling fs layer
bd5b3bae3fbe: Pulling fs layer
bdc05debc682: Waiting
1f08968bc3a8: Waiting
f9f04c715151: Waiting
a891d4b1ab60: Waiting
3bf51e9a41bc: Waiting
3b49cdb0cc0c: Waiting
decbea96b723: Waiting
a2b964b235b6: Waiting
8f9f178fcc48: Waiting
649390b026ce: Waiting
f7f53b411e60: Waiting
2bb5a8889ee1: Waiting
316815cec557: Waiting
bd5b3bae3fbe: Waiting
5afd1e696f4a: Verifying Checksum
5afd1e696f4a: Download complete
bdc05debc682: Verifying Checksum
bdc05debc682: Download complete
1f08968bc3a8: Verifying Checksum
1f08968bc3a8: Download complete
7b1a6ab2e44d: Verifying Checksum
7b1a6ab2e44d: Download complete
f9f04c715151: Verifying Checksum
f9f04c715151: Download complete
3bf51e9a41bc: Verifying Checksum
3bf51e9a41bc: Download complete
a891d4b1ab60: Verifying Checksum
a891d4b1ab60: Download complete
efda0cb4e940: Verifying Checksum
efda0cb4e940: Download complete
decbea96b723: Verifying Checksum
decbea96b723: Download complete
a2b964b235b6: Verifying Checksum
a2b964b235b6: Download complete
8f9f178fcc48: Verifying Checksum
8f9f178fcc48: Download complete
7b1a6ab2e44d: Pull complete
649390b026ce: Verifying Checksum
649390b026ce: Download complete
f7f53b411e60: Verifying Checksum
f7f53b411e60: Download complete
316815cec557: Verifying Checksum
316815cec557: Download complete
bd5b3bae3fbe: Verifying Checksum
bd5b3bae3fbe: Download complete
3b49cdb0cc0c: Verifying Checksum
3b49cdb0cc0c: Download complete
2bb5a8889ee1: Verifying Checksum
2bb5a8889ee1: Download complete
efda0cb4e940: Pull complete
5afd1e696f4a: Pull complete
bdc05debc682: Pull complete
1f08968bc3a8: Pull complete
f9f04c715151: Pull complete
a891d4b1ab60: Pull complete
3bf51e9a41bc: Pull complete
3b49cdb0cc0c: Pull complete
decbea96b723: Pull complete
a2b964b235b6: Pull complete
8f9f178fcc48: Pull complete
649390b026ce: Pull complete
f7f53b411e60: Pull complete
2bb5a8889ee1: Pull complete
316815cec557: Pull complete
bd5b3bae3fbe: Pull complete
Digest: sha256:c560b9a3f1b110e2e51a1d82e77bcedf2f60c750c56d81f8d479c461d59aca5f
Status: Downloaded newer image for gcr.io/cloud-devrel-kokoro-resources/python-multi:latest
gcr.io/cloud-devrel-kokoro-resources/python-multi:latest
Executing: docker run --rm --interactive --network=host --privileged --volume=/var/run/docker.sock:/var/run/docker.sock --workdir=/tmpfs/src --entrypoint=github/python-bigtable/.kokoro/build.sh --env-file=/tmpfs/tmp/tmphfsmaq7s/envfile --volume=/tmpfs:/tmpfs gcr.io/cloud-devrel-kokoro-resources/python-multi
KOKORO_KEYSTORE_DIR=/tmpfs/src/keystore
KOKORO_GITHUB_COMMIT_URL=https://github.com/googleapis/python-bigtable/commit/d2bfca61c6ba09ee6a5d85c1e7bfbbe72991efa6
KOKORO_JOB_NAME=cloud-devrel/client-libraries/python/googleapis/python-bigtable/continuous/continuous
KOKORO_JOB_CLUSTER=GCP_UBUNTU
KOKORO_GIT_COMMIT=d2bfca61c6ba09ee6a5d85c1e7bfbbe72991efa6
KOKORO_BLAZE_DIR=/tmpfs/src/objfs
KOKORO_ROOT=/tmpfs
KOKORO_JOB_TYPE=CONTINUOUS_INTEGRATION
KOKORO_BUILD_NUMBER=1140
KOKORO_JOB_POOL=yoshi-ubuntu
KOKORO_GITHUB_COMMIT=d2bfca61c6ba09ee6a5d85c1e7bfbbe72991efa6
KOKORO_BUILD_INITIATOR=kokoro-github-subscriber
KOKORO_ARTIFACTS_DIR=/tmpfs/src
KOKORO_BUILD_ID=d9c51100-1822-4a21-81ba-d6aad16a5e2a
KOKORO_GFILE_DIR=/tmpfs/src/gfile
KOKORO_POSIX_ROOT=/tmpfs
KOKORO_BUILD_ARTIFACTS_SUBDIR=prod/cloud-devrel/client-libraries/python/googleapis/python-bigtable/continuous/continuous/1140/20220824-124111
WARNING: Skipping nox-automation as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.3.1; however, version 22.2.2 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
2022.8.7
nox > Running session unit-3.7
nox > Creating virtual environment (virtualenv) using python3.7 in .nox/unit-3-7
nox > python -m pip install mock asyncmock pytest pytest-cov pytest-asyncio -c /tmpfs/src/github/python-bigtable/testing/constraints-3.7.txt
nox > python -m pip install -e . -c /tmpfs/src/github/python-bigtable/testing/constraints-3.7.txt
nox > py.test --quiet --junitxml=unit_3.7_sponge_log.xml --cov=google --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
........................................................................ [ 5%]
........................................................................ [ 10%]
........................................................................ [ 15%]
........................................................................ [ 20%]
........................................................................ [ 25%]
........................................................................ [ 30%]
........................................................................ [ 35%]
........................................................................ [ 40%]
........................................................................ [ 45%]
........................................................................ [ 50%]
........................................................................ [ 55%]
........................................................................ [ 60%]
........................................................................ [ 65%]
........................................................................ [ 70%]
........................................................................ [ 75%]
........................................................................ [ 80%]
........................................................................ [ 85%]
........................................................................ [ 90%]
........................................................................ [ 95%]
............................................................... [100%]
=============================== warnings summary ===============================
tests/unit/test_row_data.py::test_partial_rows_data_state_start
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:508: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

tests/unit/test_row_data.py::test_partial_rows_data_state_new_row_w_row
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:543: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

tests/unit/test_row_data.py::test_partial_rows_data_multiple_chunks
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:580: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /tmpfs/src/github/python-bigtable/unit_3.7_sponge_log.xml -


1431 passed, 3 warnings in 27.15s
nox > Session unit-3.7 was successful.
nox > Running session unit-3.8
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/unit-3-8
nox > python -m pip install mock asyncmock pytest pytest-cov pytest-asyncio -c /tmpfs/src/github/python-bigtable/testing/constraints-3.8.txt
nox > python -m pip install -e . -c /tmpfs/src/github/python-bigtable/testing/constraints-3.8.txt
nox > py.test --quiet --junitxml=unit_3.8_sponge_log.xml --cov=google --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
........................................................................ [ 5%]
........................................................................ [ 10%]
........................................................................ [ 15%]
........................................................................ [ 20%]
........................................................................ [ 25%]
........................................................................ [ 30%]
........................................................................ [ 35%]
........................................................................ [ 40%]
........................................................................ [ 45%]
........................................................................ [ 50%]
........................................................................ [ 55%]
........................................................................ [ 60%]
........................................................................ [ 65%]
........................................................................ [ 70%]
........................................................................ [ 75%]
........................................................................ [ 80%]
........................................................................ [ 85%]
........................................................................ [ 90%]
........................................................................ [ 95%]
............................................................... [100%]
=============================== warnings summary ===============================
tests/unit/test_row_data.py::test_partial_rows_data_state_start
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:508: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

tests/unit/test_row_data.py::test_partial_rows_data_state_new_row_w_row
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:543: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

tests/unit/test_row_data.py::test_partial_rows_data_multiple_chunks
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:580: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /tmpfs/src/github/python-bigtable/unit_3.8_sponge_log.xml -


1431 passed, 3 warnings in 28.95s
nox > Session unit-3.8 was successful.
nox > Running session unit-3.9
nox > Creating virtual environment (virtualenv) using python3.9 in .nox/unit-3-9
nox > python -m pip install mock asyncmock pytest pytest-cov pytest-asyncio -c /tmpfs/src/github/python-bigtable/testing/constraints-3.9.txt
nox > python -m pip install -e . -c /tmpfs/src/github/python-bigtable/testing/constraints-3.9.txt
nox > py.test --quiet --junitxml=unit_3.9_sponge_log.xml --cov=google --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
........................................................................ [ 5%]
........................................................................ [ 10%]
........................................................................ [ 15%]
........................................................................ [ 20%]
........................................................................ [ 25%]
........................................................................ [ 30%]
........................................................................ [ 35%]
........................................................................ [ 40%]
........................................................................ [ 45%]
........................................................................ [ 50%]
........................................................................ [ 55%]
........................................................................ [ 60%]
........................................................................ [ 65%]
........................................................................ [ 70%]
........................................................................ [ 75%]
........................................................................ [ 80%]
........................................................................ [ 85%]
........................................................................ [ 90%]
........................................................................ [ 95%]
............................................................... [100%]
=============================== warnings summary ===============================
tests/unit/test_row_data.py::test_partial_rows_data_state_start
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:508: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

tests/unit/test_row_data.py::test_partial_rows_data_state_new_row_w_row
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:543: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

tests/unit/test_row_data.py::test_partial_rows_data_multiple_chunks
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:580: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /tmpfs/src/github/python-bigtable/unit_3.9_sponge_log.xml -


1431 passed, 3 warnings in 27.29s
nox > Session unit-3.9 was successful.
nox > Running session unit-3.10
nox > Creating virtual environment (virtualenv) using python3.10 in .nox/unit-3-10
nox > python -m pip install mock asyncmock pytest pytest-cov pytest-asyncio -c /tmpfs/src/github/python-bigtable/testing/constraints-3.10.txt
nox > python -m pip install -e . -c /tmpfs/src/github/python-bigtable/testing/constraints-3.10.txt
nox > py.test --quiet --junitxml=unit_3.10_sponge_log.xml --cov=google --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
........................................................................ [ 5%]
........................................................................ [ 10%]
........................................................................ [ 15%]
........................................................................ [ 20%]
........................................................................ [ 25%]
........................................................................ [ 30%]
........................................................................ [ 35%]
........................................................................ [ 40%]
........................................................................ [ 45%]
........................................................................ [ 50%]
........................................................................ [ 55%]
........................................................................ [ 60%]
........................................................................ [ 65%]
........................................................................ [ 70%]
........................................................................ [ 75%]
........................................................................ [ 80%]
........................................................................ [ 85%]
........................................................................ [ 90%]
........................................................................ [ 95%]
............................................................... [100%]
=============================== warnings summary ===============================
.nox/unit-3-10/lib/python3.10/site-packages/google/api_core/operations_v1/abstract_operations_client.py:17
/tmpfs/src/github/python-bigtable/.nox/unit-3-10/lib/python3.10/site-packages/google/api_core/operations_v1/abstract_operations_client.py:17: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils import util

tests/unit/test_row_data.py::test_partial_rows_data_state_start
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:508: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

tests/unit/test_row_data.py::test_partial_rows_data_state_new_row_w_row
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:543: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

tests/unit/test_row_data.py::test_partial_rows_data_multiple_chunks
/tmpfs/src/github/python-bigtable/tests/unit/test_row_data.py:580: DeprecationWarning: `PartialRowsData#state()` is deprecated and will be removed in the future
assert yrd.state == yrd.NEW_ROW

tests/unit/gapic/bigtable_admin_v2/test_bigtable_instance_admin.py: 15 warnings
tests/unit/gapic/bigtable_admin_v2/test_bigtable_table_admin.py: 15 warnings
tests/unit/gapic/bigtable_v2/test_bigtable.py: 14 warnings
/tmpfs/src/github/python-bigtable/.nox/unit-3-10/lib/python3.10/site-packages/grpc/aio/_channel.py:287: DeprecationWarning: There is no current event loop
self._loop = cygrpc.get_working_loop()

tests/unit/gapic/bigtable_admin_v2/test_bigtable_instance_admin.py: 15 warnings
tests/unit/gapic/bigtable_admin_v2/test_bigtable_table_admin.py: 15 warnings
tests/unit/gapic/bigtable_v2/test_bigtable.py: 14 warnings
/tmpfs/src/github/python-bigtable/.nox/unit-3-10/lib/python3.10/site-packages/grpc/aio/_channel.py:288: DeprecationWarning: There is no current event loop
self._channel = cygrpc.AioChannel(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /tmpfs/src/github/python-bigtable/unit_3.10_sponge_log.xml -


1431 passed, 92 warnings in 28.21s
nox > Session unit-3.10 was successful.
nox > Running session system_emulated-3.8
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/system_emulated-3-8
Google Cloud SDK 360.0.0
bq 2.0.71
core 2021.10.04
gsutil 5.3


Your current Cloud SDK version is: 360.0.0
Installing components from version: 360.0.0

┌────────────────────────────────────────────────┐
│ These components will be installed. │
├─────────────────────────┬────────────┬─────────┤
│ Name │ Version │ Size │
├─────────────────────────┼────────────┼─────────┤
│ Cloud Bigtable Emulator │ 2019.08.30 │ 6.6 MiB │
│ gcloud Beta Commands │ 2021.10.04 │ < 1 MiB │
└─────────────────────────┴────────────┴─────────┘

For the latest full release notes, please visit:
https://cloud.google.com/sdk/release_notes

Do you want to continue (Y/n)?
╔════════════════════════════════════════════════════════════╗
╠═ Creating update staging area ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Installing: Cloud Bigtable Emulator ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Installing: Cloud Bigtable Emulator ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Installing: gcloud Beta Commands ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Creating backup and activating new installation ═╣
╚════════════════════════════════════════════════════════════╝

Performing post processing steps...
......................................................................done.

Update done!

nox > python -m pip install --pre grpcio
Executing: /google-cloud-sdk/platform/bigtable-emulator/cbtemulator --host=localhost --port=8789
[bigtable] Cloud Bigtable emulator running on 127.0.0.1:8789
nox > python -m pip install mock pytest google-cloud-testutils -c /tmpfs/src/github/python-bigtable/testing/constraints-3.8.txt
nox > python -m pip install -e . -c /tmpfs/src/github/python-bigtable/testing/constraints-3.8.txt
nox > py.test --quiet --junitxml=system_3.8_sponge_log.xml tests/system
......s..s.ssssssssssssssssssss...s...ssss [100%]
- generated xml file: /tmpfs/src/github/python-bigtable/system_3.8_sponge_log.xml -
15 passed, 27 skipped in 0.43s
nox > Session system_emulated-3.8 was successful.
nox > Running session system-3.8
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/system-3-8
nox > python -m pip install --pre grpcio
nox > python -m pip install mock pytest google-cloud-testutils -c /tmpfs/src/github/python-bigtable/testing/constraints-3.8.txt
nox > python -m pip install -e . -c /tmpfs/src/github/python-bigtable/testing/constraints-3.8.txt
nox > py.test --quiet --junitxml=system_3.8_sponge_log.xml tests/system
...............F..Fs....FF................ [100%]
=================================== FAILURES ===================================
__________________________ test_instance_create_prod ___________________________

target = functools.partial(>)
predicate = .if_exception_type_predicate at 0x7f92971659d0>
sleep_generator =
deadline = 60, on_error = None

def retry_target(target, predicate, sleep_generator, deadline, on_error=None):
"""Call a function and retry if it fails.

This is the lowest-level retry helper. Generally, you'll use the
higher-level retry helper :class:`Retry`.

Args:
target(Callable): The function to call and retry. This must be a
nullary function - apply arguments with `functools.partial`.
predicate (Callable[Exception]): A callable used to determine if an
exception raised by the target should be considered retryable.
It should return True to retry or False otherwise.
sleep_generator (Iterable[float]): An infinite iterator that determines
how long to sleep between retries.
deadline (float): How long to keep retrying the target. The last sleep
period is shortened as necessary, so that the last retry runs at
``deadline`` (and not considerably beyond it).
on_error (Callable[Exception]): A function to call while processing a
retryable exception. Any error raised by this function will *not*
be caught.

Returns:
Any: the return value of the target function.

Raises:
google.api_core.RetryError: If the deadline is exceeded while retrying.
ValueError: If the sleep generator stops yielding values.
Exception: If the target raises a method that isn't retryable.
"""
if deadline is not None:
deadline_datetime = datetime_helpers.utcnow() + datetime.timedelta(
seconds=deadline
)
else:
deadline_datetime = None

last_exc = None

for sleep in sleep_generator:
try:
> return target()

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:190:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self =
retry =

def _done_or_raise(self, retry=DEFAULT_RETRY):
"""Check if the future is done and raise if it's not."""
kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}

if not self.done(**kwargs):
> raise _OperationNotComplete()
E google.api_core.future.polling._OperationNotComplete

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:89: _OperationNotComplete

The above exception was the direct cause of the following exception:

self =
timeout = 60, retry =

def _blocking_poll(self, timeout=None, retry=DEFAULT_RETRY):
"""Poll and wait for the Future to be resolved.

Args:
timeout (int):
How long (in seconds) to wait for the operation to complete.
If None, wait indefinitely.
"""
if self._result_set:
return

retry_ = self._retry.with_deadline(timeout)

try:
kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}
> retry_(self._done_or_raise)(**kwargs)

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (), kwargs = {}
target = functools.partial(>)
sleep_generator =

@functools.wraps(func)
def retry_wrapped_func(*args, **kwargs):
"""A wrapper that calls target function with retry."""
target = functools.partial(func, *args, **kwargs)
sleep_generator = exponential_sleep_generator(
self._initial, self._maximum, multiplier=self._multiplier
)
> return retry_target(
target,
self._predicate,
sleep_generator,
self._deadline,
on_error=on_error,
)

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:283:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

target = functools.partial(>)
predicate = .if_exception_type_predicate at 0x7f92971659d0>
sleep_generator =
deadline = 60, on_error = None

def retry_target(target, predicate, sleep_generator, deadline, on_error=None):
"""Call a function and retry if it fails.

This is the lowest-level retry helper. Generally, you'll use the
higher-level retry helper :class:`Retry`.

Args:
target(Callable): The function to call and retry. This must be a
nullary function - apply arguments with `functools.partial`.
predicate (Callable[Exception]): A callable used to determine if an
exception raised by the target should be considered retryable.
It should return True to retry or False otherwise.
sleep_generator (Iterable[float]): An infinite iterator that determines
how long to sleep between retries.
deadline (float): How long to keep retrying the target. The last sleep
period is shortened as necessary, so that the last retry runs at
``deadline`` (and not considerably beyond it).
on_error (Callable[Exception]): A function to call while processing a
retryable exception. Any error raised by this function will *not*
be caught.

Returns:
Any: the return value of the target function.

Raises:
google.api_core.RetryError: If the deadline is exceeded while retrying.
ValueError: If the sleep generator stops yielding values.
Exception: If the target raises a method that isn't retryable.
"""
if deadline is not None:
deadline_datetime = datetime_helpers.utcnow() + datetime.timedelta(
seconds=deadline
)
else:
deadline_datetime = None

last_exc = None

for sleep in sleep_generator:
try:
return target()

# pylint: disable=broad-except
# This function explicitly must deal with broad exceptions.
except Exception as exc:
if not predicate(exc):
raise
last_exc = exc
if on_error is not None:
on_error(exc)

now = datetime_helpers.utcnow()

if deadline_datetime is not None:
if deadline_datetime <= now:
> raise exceptions.RetryError(
"Deadline of {:.1f}s exceeded while calling target function".format(
deadline
),
last_exc,
) from last_exc
E google.api_core.exceptions.RetryError: Deadline of 60.0s exceeded while calling target function, last exception:

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:205: RetryError

During handling of the above exception, another exception occurred:

admin_client =
unique_suffix = '-1661370419528', location_id = 'us-central1-c'
instance_labels = {'python-system': '2022-08-24t19-46-59'}
instances_to_delete = []
skip_on_emulator = None

def test_instance_create_prod(
admin_client,
unique_suffix,
location_id,
instance_labels,
instances_to_delete,
skip_on_emulator,
):
from google.cloud.bigtable import enums

alt_instance_id = f"ndef{unique_suffix}"
instance = admin_client.instance(alt_instance_id, labels=instance_labels)
alt_cluster_id = f"{alt_instance_id}-cluster"
serve_nodes = 1
cluster = instance.cluster(
alt_cluster_id,
location_id=location_id,
serve_nodes=serve_nodes,
)

operation = instance.create(clusters=[cluster])
instances_to_delete.append(instance)
> operation.result(timeout=60) # Ensure the operation completes.

tests/system/test_instance_admin.py:166:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:132: in result
self._blocking_poll(timeout=timeout, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self =
timeout = 60, retry =

def _blocking_poll(self, timeout=None, retry=DEFAULT_RETRY):
"""Poll and wait for the Future to be resolved.

Args:
timeout (int):
How long (in seconds) to wait for the operation to complete.
If None, wait indefinitely.
"""
if self._result_set:
return

retry_ = self._retry.with_deadline(timeout)

try:
kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}
retry_(self._done_or_raise)(**kwargs)
except exceptions.RetryError:
> raise concurrent.futures.TimeoutError(
"Operation did not complete within the designated " "timeout."
)
E concurrent.futures._base.TimeoutError: Operation did not complete within the designated timeout.

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:112: TimeoutError
________ test_instance_create_app_profile_create_with_multi_cluster_ids ________

target = functools.partial(>)
predicate = .if_exception_type_predicate at 0x7f92971659d0>
sleep_generator =
deadline = 240, on_error = None

def retry_target(target, predicate, sleep_generator, deadline, on_error=None):
"""Call a function and retry if it fails.

This is the lowest-level retry helper. Generally, you'll use the
higher-level retry helper :class:`Retry`.

Args:
target(Callable): The function to call and retry. This must be a
nullary function - apply arguments with `functools.partial`.
predicate (Callable[Exception]): A callable used to determine if an
exception raised by the target should be considered retryable.
It should return True to retry or False otherwise.
sleep_generator (Iterable[float]): An infinite iterator that determines
how long to sleep between retries.
deadline (float): How long to keep retrying the target. The last sleep
period is shortened as necessary, so that the last retry runs at
``deadline`` (and not considerably beyond it).
on_error (Callable[Exception]): A function to call while processing a
retryable exception. Any error raised by this function will *not*
be caught.

Returns:
Any: the return value of the target function.

Raises:
google.api_core.RetryError: If the deadline is exceeded while retrying.
ValueError: If the sleep generator stops yielding values.
Exception: If the target raises a method that isn't retryable.
"""
if deadline is not None:
deadline_datetime = datetime_helpers.utcnow() + datetime.timedelta(
seconds=deadline
)
else:
deadline_datetime = None

last_exc = None

for sleep in sleep_generator:
try:
> return target()

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:190:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self =
retry =

def _done_or_raise(self, retry=DEFAULT_RETRY):
"""Check if the future is done and raise if it's not."""
kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}

if not self.done(**kwargs):
> raise _OperationNotComplete()
E google.api_core.future.polling._OperationNotComplete

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:89: _OperationNotComplete

The above exception was the direct cause of the following exception:

self =
timeout = 240, retry =

def _blocking_poll(self, timeout=None, retry=DEFAULT_RETRY):
"""Poll and wait for the Future to be resolved.

Args:
timeout (int):
How long (in seconds) to wait for the operation to complete.
If None, wait indefinitely.
"""
if self._result_set:
return

retry_ = self._retry.with_deadline(timeout)

try:
kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}
> retry_(self._done_or_raise)(**kwargs)

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (), kwargs = {}
target = functools.partial(>)
sleep_generator =

@functools.wraps(func)
def retry_wrapped_func(*args, **kwargs):
"""A wrapper that calls target function with retry."""
target = functools.partial(func, *args, **kwargs)
sleep_generator = exponential_sleep_generator(
self._initial, self._maximum, multiplier=self._multiplier
)
> return retry_target(
target,
self._predicate,
sleep_generator,
self._deadline,
on_error=on_error,
)

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:283:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

target = functools.partial(>)
predicate = .if_exception_type_predicate at 0x7f92971659d0>
sleep_generator =
deadline = 240, on_error = None

def retry_target(target, predicate, sleep_generator, deadline, on_error=None):
"""Call a function and retry if it fails.

This is the lowest-level retry helper. Generally, you'll use the
higher-level retry helper :class:`Retry`.

Args:
target(Callable): The function to call and retry. This must be a
nullary function - apply arguments with `functools.partial`.
predicate (Callable[Exception]): A callable used to determine if an
exception raised by the target should be considered retryable.
It should return True to retry or False otherwise.
sleep_generator (Iterable[float]): An infinite iterator that determines
how long to sleep between retries.
deadline (float): How long to keep retrying the target. The last sleep
period is shortened as necessary, so that the last retry runs at
``deadline`` (and not considerably beyond it).
on_error (Callable[Exception]): A function to call while processing a
retryable exception. Any error raised by this function will *not*
be caught.

Returns:
Any: the return value of the target function.

Raises:
google.api_core.RetryError: If the deadline is exceeded while retrying.
ValueError: If the sleep generator stops yielding values.
Exception: If the target raises a method that isn't retryable.
"""
if deadline is not None:
deadline_datetime = datetime_helpers.utcnow() + datetime.timedelta(
seconds=deadline
)
else:
deadline_datetime = None

last_exc = None

for sleep in sleep_generator:
try:
return target()

# pylint: disable=broad-except
# This function explicitly must deal with broad exceptions.
except Exception as exc:
if not predicate(exc):
raise
last_exc = exc
if on_error is not None:
on_error(exc)

now = datetime_helpers.utcnow()

if deadline_datetime is not None:
if deadline_datetime <= now:
> raise exceptions.RetryError(
"Deadline of {:.1f}s exceeded while calling target function".format(
deadline
),
last_exc,
) from last_exc
E google.api_core.exceptions.RetryError: Deadline of 240.0s exceeded while calling target function, last exception:

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:205: RetryError

During handling of the above exception, another exception occurred:

admin_client =
unique_suffix = '-1661370419528'
admin_instance_populated =
admin_cluster =
location_id = 'us-central1-c'
instance_labels = {'python-system': '2022-08-24t19-46-59'}
instances_to_delete = []
skip_on_emulator = None

def test_instance_create_app_profile_create_with_multi_cluster_ids(
admin_client,
unique_suffix,
admin_instance_populated,
admin_cluster,
location_id,
instance_labels,
instances_to_delete,
skip_on_emulator,
):
alt_instance_id = f"dif{unique_suffix}"
instance = admin_client.instance(
alt_instance_id,
instance_type=enums.Instance.Type.PRODUCTION,
labels=instance_labels,
)

serve_nodes = 1

alt_cluster_id_1 = f"{alt_instance_id}-c1"
cluster_1 = instance.cluster(
alt_cluster_id_1,
location_id=location_id,
serve_nodes=serve_nodes,
default_storage_type=enums.StorageType.HDD,
)

alt_cluster_id_2 = f"{alt_instance_id}-c2"
location_id_2 = "us-central1-f"
cluster_2 = instance.cluster(
alt_cluster_id_2,
location_id=location_id_2,
serve_nodes=serve_nodes,
default_storage_type=enums.StorageType.HDD,
)
operation = instance.create(clusters=[cluster_1, cluster_2])
instances_to_delete.append(instance)
> operation.result(timeout=240) # Ensure the operation completes.

tests/system/test_instance_admin.py:441:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:132: in result
self._blocking_poll(timeout=timeout, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self =
timeout = 240, retry =

def _blocking_poll(self, timeout=None, retry=DEFAULT_RETRY):
"""Poll and wait for the Future to be resolved.

Args:
timeout (int):
How long (in seconds) to wait for the operation to complete.
If None, wait indefinitely.
"""
if self._result_set:
return

retry_ = self._retry.with_deadline(timeout)

try:
kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}
retry_(self._done_or_raise)(**kwargs)
except exceptions.RetryError:
> raise concurrent.futures.TimeoutError(
"Operation did not complete within the designated " "timeout."
)
E concurrent.futures._base.TimeoutError: Operation did not complete within the designated timeout.

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:112: TimeoutError
_____________________________ test_cluster_create ______________________________

target = functools.partial(>)
predicate = .if_exception_type_predicate at 0x7f92971659d0>
sleep_generator =
deadline = 60, on_error = None

def retry_target(target, predicate, sleep_generator, deadline, on_error=None):
"""Call a function and retry if it fails.

This is the lowest-level retry helper. Generally, you'll use the
higher-level retry helper :class:`Retry`.

Args:
target(Callable): The function to call and retry. This must be a
nullary function - apply arguments with `functools.partial`.
predicate (Callable[Exception]): A callable used to determine if an
exception raised by the target should be considered retryable.
It should return True to retry or False otherwise.
sleep_generator (Iterable[float]): An infinite iterator that determines
how long to sleep between retries.
deadline (float): How long to keep retrying the target. The last sleep
period is shortened as necessary, so that the last retry runs at
``deadline`` (and not considerably beyond it).
on_error (Callable[Exception]): A function to call while processing a
retryable exception. Any error raised by this function will *not*
be caught.

Returns:
Any: the return value of the target function.

Raises:
google.api_core.RetryError: If the deadline is exceeded while retrying.
ValueError: If the sleep generator stops yielding values.
Exception: If the target raises a method that isn't retryable.
"""
if deadline is not None:
deadline_datetime = datetime_helpers.utcnow() + datetime.timedelta(
seconds=deadline
)
else:
deadline_datetime = None

last_exc = None

for sleep in sleep_generator:
try:
> return target()

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:190:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self =
retry =

def _done_or_raise(self, retry=DEFAULT_RETRY):
"""Check if the future is done and raise if it's not."""
kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}

if not self.done(**kwargs):
> raise _OperationNotComplete()
E google.api_core.future.polling._OperationNotComplete

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:89: _OperationNotComplete

The above exception was the direct cause of the following exception:

self =
timeout = 60, retry =

def _blocking_poll(self, timeout=None, retry=DEFAULT_RETRY):
"""Poll and wait for the Future to be resolved.

Args:
timeout (int):
How long (in seconds) to wait for the operation to complete.
If None, wait indefinitely.
"""
if self._result_set:
return

retry_ = self._retry.with_deadline(timeout)

try:
kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}
> retry_(self._done_or_raise)(**kwargs)

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (), kwargs = {}
target = functools.partial(>)
sleep_generator =

@functools.wraps(func)
def retry_wrapped_func(*args, **kwargs):
"""A wrapper that calls target function with retry."""
target = functools.partial(func, *args, **kwargs)
sleep_generator = exponential_sleep_generator(
self._initial, self._maximum, multiplier=self._multiplier
)
> return retry_target(
target,
self._predicate,
sleep_generator,
self._deadline,
on_error=on_error,
)

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:283:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

target = functools.partial(>)
predicate = .if_exception_type_predicate at 0x7f92971659d0>
sleep_generator =
deadline = 60, on_error = None

def retry_target(target, predicate, sleep_generator, deadline, on_error=None):
"""Call a function and retry if it fails.

This is the lowest-level retry helper. Generally, you'll use the
higher-level retry helper :class:`Retry`.

Args:
target(Callable): The function to call and retry. This must be a
nullary function - apply arguments with `functools.partial`.
predicate (Callable[Exception]): A callable used to determine if an
exception raised by the target should be considered retryable.
It should return True to retry or False otherwise.
sleep_generator (Iterable[float]): An infinite iterator that determines
how long to sleep between retries.
deadline (float): How long to keep retrying the target. The last sleep
period is shortened as necessary, so that the last retry runs at
``deadline`` (and not considerably beyond it).
on_error (Callable[Exception]): A function to call while processing a
retryable exception. Any error raised by this function will *not*
be caught.

Returns:
Any: the return value of the target function.

Raises:
google.api_core.RetryError: If the deadline is exceeded while retrying.
ValueError: If the sleep generator stops yielding values.
Exception: If the target raises a method that isn't retryable.
"""
if deadline is not None:
deadline_datetime = datetime_helpers.utcnow() + datetime.timedelta(
seconds=deadline
)
else:
deadline_datetime = None

last_exc = None

for sleep in sleep_generator:
try:
return target()

# pylint: disable=broad-except
# This function explicitly must deal with broad exceptions.
except Exception as exc:
if not predicate(exc):
raise
last_exc = exc
if on_error is not None:
on_error(exc)

now = datetime_helpers.utcnow()

if deadline_datetime is not None:
if deadline_datetime <= now:
> raise exceptions.RetryError(
"Deadline of {:.1f}s exceeded while calling target function".format(
deadline
),
last_exc,
) from last_exc
E google.api_core.exceptions.RetryError: Deadline of 60.0s exceeded while calling target function, last exception:

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/retry.py:205: RetryError

During handling of the above exception, another exception occurred:

admin_instance_populated =
admin_instance_id = 'g-c-p-1661370419528', skip_on_emulator = None

def test_cluster_create(
admin_instance_populated,
admin_instance_id,
skip_on_emulator,
):
alt_cluster_id = f"{admin_instance_id}-c2"
alt_location_id = "us-central1-f"
serve_nodes = 2

cluster_2 = admin_instance_populated.cluster(
alt_cluster_id,
location_id=alt_location_id,
serve_nodes=serve_nodes,
default_storage_type=(enums.StorageType.SSD),
)
operation = cluster_2.create()
> operation.result(timeout=60) # Ensure the operation completes.

tests/system/test_instance_admin.py:682:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:132: in result
self._blocking_poll(timeout=timeout, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self =
timeout = 60, retry =

def _blocking_poll(self, timeout=None, retry=DEFAULT_RETRY):
"""Poll and wait for the Future to be resolved.

Args:
timeout (int):
How long (in seconds) to wait for the operation to complete.
If None, wait indefinitely.
"""
if self._result_set:
return

retry_ = self._retry.with_deadline(timeout)

try:
kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}
retry_(self._done_or_raise)(**kwargs)
except exceptions.RetryError:
> raise concurrent.futures.TimeoutError(
"Operation did not complete within the designated " "timeout."
)
E concurrent.futures._base.TimeoutError: Operation did not complete within the designated timeout.

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:112: TimeoutError
______________________ test_cluster_create_w_autoscaling _______________________

args = (parent: "projects/precise-truck-742/instances/g-c-p-1661370419528"
cluster_id: "g-c-p-1661370419528-c2"
cluster {
l... }
autoscaling_targets {
cpu_utilization_percent: 20
}
}
}
default_storage_type: SSD
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/precise-truck-742/instances/g-c-p-1661370419528'), ('x-goog-api-client', 'gl-python/3.8.12 grpc/1.49.0rc1 gax/2.8.2')]}

@functools.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
try:
> return callable_(*args, **kwargs)

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:50:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self =
request = parent: "projects/precise-truck-742/instances/g-c-p-1661370419528"
cluster_id: "g-c-p-1661370419528-c2"
cluster {
lo... }
autoscaling_targets {
cpu_utilization_percent: 20
}
}
}
default_storage_type: SSD
}

timeout = None
metadata = [('x-goog-request-params', 'parent=projects/precise-truck-742/instances/g-c-p-1661370419528'), ('x-goog-api-client', 'gl-python/3.8.12 grpc/1.49.0rc1 gax/2.8.2')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
request,
timeout=None,
metadata=None,
credentials=None,
wait_for_ready=None,
compression=None):
state, call, = self._blocking(request, timeout, metadata, credentials,
wait_for_ready, compression)
> return _end_unary_response_blocking(state, call, False, None)

.nox/system-3-8/lib/python3.8/site-packages/grpc/_channel.py:946:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state =
call =
with_call = False, deadline = None

def _end_unary_response_blocking(state, call, with_call, deadline):
if state.code is grpc.StatusCode.OK:
if with_call:
rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
return state.response, rendezvous
else:
return state.response
else:
> raise _InactiveRpcError(state)
E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.ALREADY_EXISTS
E details = "Cluster already exists in us-central1-f: projects/precise-truck-742/instances/g-c-p-1661370419528/clusters/g-c-p-1661370419528-c2"
E debug_error_string = "UNKNOWN:Error received from peer ipv4:74.125.135.95:443 {created_time:"2022-08-24T19:56:48.50011189+00:00", grpc_status:6, grpc_message:"Cluster already exists in us-central1-f: projects/precise-truck-742/instances/g-c-p-1661370419528/clusters/g-c-p-1661370419528-c2"}"
E >

.nox/system-3-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError

The above exception was the direct cause of the following exception:

admin_instance_populated =
admin_instance_id = 'g-c-p-1661370419528', skip_on_emulator = None

def test_cluster_create_w_autoscaling(
admin_instance_populated,
admin_instance_id,
skip_on_emulator,
):
alt_cluster_id = f"{admin_instance_id}-c2"
alt_location_id = "us-central1-f"
min_serve_nodes = 1
max_serve_nodes = 8
cpu_utilization_percent = 20

cluster_2 = admin_instance_populated.cluster(
alt_cluster_id,
location_id=alt_location_id,
min_serve_nodes=min_serve_nodes,
max_serve_nodes=max_serve_nodes,
cpu_utilization_percent=cpu_utilization_percent,
default_storage_type=(enums.StorageType.SSD),
)
> operation = cluster_2.create()

tests/system/test_instance_admin.py:719:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
google/cloud/bigtable/cluster.py:383: in create
return client.instance_admin_client.create_cluster(
google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py:1182: in create_cluster
response = rpc(
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:154: in __call__
return wrapped_func(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (parent: "projects/precise-truck-742/instances/g-c-p-1661370419528"
cluster_id: "g-c-p-1661370419528-c2"
cluster {
l... }
autoscaling_targets {
cpu_utilization_percent: 20
}
}
}
default_storage_type: SSD
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/precise-truck-742/instances/g-c-p-1661370419528'), ('x-goog-api-client', 'gl-python/3.8.12 grpc/1.49.0rc1 gax/2.8.2')]}

@functools.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
try:
return callable_(*args, **kwargs)
except grpc.RpcError as exc:
> raise exceptions.from_grpc_error(exc) from exc
E google.api_core.exceptions.AlreadyExists: 409 Cluster already exists in us-central1-f: projects/precise-truck-742/instances/g-c-p-1661370419528/clusters/g-c-p-1661370419528-c2

.nox/system-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:52: AlreadyExists
- generated xml file: /tmpfs/src/github/python-bigtable/system_3.8_sponge_log.xml -
=========================== short test summary info ============================
FAILED tests/system/test_instance_admin.py::test_instance_create_prod - concu...
FAILED tests/system/test_instance_admin.py::test_instance_create_app_profile_create_with_multi_cluster_ids
FAILED tests/system/test_instance_admin.py::test_cluster_create - concurrent....
FAILED tests/system/test_instance_admin.py::test_cluster_create_w_autoscaling
4 failed, 37 passed, 1 skipped in 776.53s (0:12:56)
nox > Command py.test --quiet --junitxml=system_3.8_sponge_log.xml tests/system failed with exit code 1
nox > Session system-3.8 failed.
nox > Running session mypy
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/mypy
nox > python -m pip install -e .
nox > python -m pip install mypy types-setuptools types-protobuf types-mock
nox > python -m pip install google-cloud-testutils
nox > mypy google/ tests/
Success: no issues found in 82 source files
nox > Session mypy was successful.
nox > Running session cover
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/cover
nox > python -m pip install coverage pytest-cov
nox > coverage report --show-missing --fail-under=100
Name Stmts Miss Branch BrPart Cover Missing
----------------------------------------------------------------------------------------------------------------------------------------
google/cloud/bigtable/__init__.py 8 0 0 0 100%
google/cloud/bigtable/app_profile.py 88 0 22 0 100%
google/cloud/bigtable/backup.py 149 0 26 0 100%
google/cloud/bigtable/batcher.py 33 0 14 0 100%
google/cloud/bigtable/client.py 130 0 42 0 100%
google/cloud/bigtable/cluster.py 121 0 34 0 100%
google/cloud/bigtable/column_family.py 98 0 42 0 100%
google/cloud/bigtable/encryption_info.py 18 0 6 0 100%
google/cloud/bigtable/enums.py 46 0 24 0 100%
google/cloud/bigtable/error.py 16 0 4 0 100%
google/cloud/bigtable/instance.py 120 0 32 0 100%
google/cloud/bigtable/policy.py 60 0 20 0 100%
google/cloud/bigtable/row.py 225 0 60 0 100%
google/cloud/bigtable/row_data.py 124 0 40 0 100%
google/cloud/bigtable/row_filters.py 236 0 128 0 100%
google/cloud/bigtable/row_merger.py 147 0 82 0 100%
google/cloud/bigtable/row_set.py 65 0 28 0 100%
google/cloud/bigtable/table.py 284 0 90 0 100%
google/cloud/bigtable_admin_v2/__init__.py 79 0 0 0 100%
google/cloud/bigtable_admin_v2/services/__init__.py 0 0 0 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/__init__.py 3 0 0 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/async_client.py 325 0 104 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py 468 0 188 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/pagers.py 81 0 28 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/__init__.py 9 0 0 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/base.py 89 0 14 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc.py 166 0 60 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc_asyncio.py 165 0 60 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_table_admin/__init__.py 3 0 0 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_table_admin/async_client.py 349 0 116 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_table_admin/client.py 494 0 204 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_table_admin/pagers.py 120 0 42 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/__init__.py 9 0 0 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/base.py 94 0 14 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc.py 177 0 64 0 100%
google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc_asyncio.py 176 0 64 0 100%
google/cloud/bigtable_admin_v2/types/__init__.py 6 0 0 0 100%
google/cloud/bigtable_admin_v2/types/bigtable_instance_admin.py 118 0 56 0 100%
google/cloud/bigtable_admin_v2/types/bigtable_table_admin.py 131 0 66 0 100%
google/cloud/bigtable_admin_v2/types/common.py 12 0 4 0 100%
google/cloud/bigtable_admin_v2/types/instance.py 67 0 28 0 100%
google/cloud/bigtable_admin_v2/types/table.py 87 0 36 0 100%
google/cloud/bigtable_v2/__init__.py 30 0 0 0 100%
google/cloud/bigtable_v2/services/__init__.py 0 0 0 0 100%
google/cloud/bigtable_v2/services/bigtable/__init__.py 3 0 0 0 100%
google/cloud/bigtable_v2/services/bigtable/async_client.py 168 0 62 0 100%
google/cloud/bigtable_v2/services/bigtable/client.py 328 0 158 0 100%
google/cloud/bigtable_v2/services/bigtable/transports/__init__.py 9 0 0 0 100%
google/cloud/bigtable_v2/services/bigtable/transports/base.py 53 0 14 0 100%
google/cloud/bigtable_v2/services/bigtable/transports/grpc.py 84 0 30 0 100%
google/cloud/bigtable_v2/services/bigtable/transports/grpc_asyncio.py 83 0 30 0 100%
google/cloud/bigtable_v2/types/__init__.py 4 0 0 0 100%
google/cloud/bigtable_v2/types/bigtable.py 69 0 34 0 100%
google/cloud/bigtable_v2/types/data.py 88 0 38 0 100%
google/cloud/bigtable_v2/types/response_params.py 6 0 2 0 100%
tests/unit/__init__.py 0 0 0 0 100%
tests/unit/_testing.py 11 0 4 0 100%
tests/unit/test_app_profile.py 426 0 6 0 100%
tests/unit/test_backup.py 532 0 8 0 100%
tests/unit/test_batcher.py 90 0 4 0 100%
tests/unit/test_client.py 410 0 8 0 100%
tests/unit/test_cluster.py 548 0 16 0 100%
tests/unit/test_column_family.py 402 0 12 0 100%
tests/unit/test_encryption_info.py 84 0 0 0 100%
tests/unit/test_error.py 60 0 0 0 100%
tests/unit/test_instance.py 532 0 12 0 100%
tests/unit/test_policy.py 180 0 0 0 100%
tests/unit/test_row.py 497 0 14 0 100%
tests/unit/test_row_data.py 686 0 30 0 100%
tests/unit/test_row_filters.py 714 0 4 0 100%
tests/unit/test_row_merger.py 87 0 18 0 100%
tests/unit/test_row_set.py 209 0 0 0 100%
tests/unit/test_table.py 1154 0 90 0 100%
----------------------------------------------------------------------------------------------------------------------------------------
TOTAL 12743 0 2436 0 100%
nox > coverage erase
nox > Session cover was successful.
nox > Running session lint
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/lint
nox > python -m pip install flake8 black==22.3.0
nox > black --check docs google tests noxfile.py setup.py
All done! ✨ 🍰 ✨
93 files would be left unchanged.
nox > flake8 google tests
nox > Session lint was successful.
nox > Running session lint_setup_py
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/lint_setup_py
nox > python -m pip install docutils pygments
nox > python setup.py check --restructuredtext --strict
running check
nox > Session lint_setup_py was successful.
nox > Running session blacken
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/blacken
nox > python -m pip install black==22.3.0
nox > black docs google tests noxfile.py setup.py
All done! ✨ 🍰 ✨
93 files left unchanged.
nox > Session blacken was successful.
nox > Running session docs
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/docs
nox > python -m pip install -e .
nox > python -m pip install sphinx==4.0.1 alabaster recommonmark
nox > sphinx-build -W -T -N -b html -d docs/_build/doctrees/ docs/ docs/_build/html/
Running Sphinx v4.0.1
making output directory... done
[autosummary] generating autosummary for: README.rst, app-profile.rst, backup.rst, changelog.md, client-intro.rst, client.rst, cluster.rst, column-family.rst, data-api.rst, encryption-info.rst, ..., instance-api.rst, instance.rst, multiprocessing.rst, row-data.rst, row-filters.rst, row-set.rst, row.rst, table-api.rst, table.rst, usage.rst
loading intersphinx inventory from https://python.readthedocs.org/en/latest/objects.inv...
loading intersphinx inventory from https://googleapis.dev/python/google-auth/latest/objects.inv...
loading intersphinx inventory from https://googleapis.dev/python/google-api-core/latest/objects.inv...
loading intersphinx inventory from https://grpc.github.io/grpc/python/objects.inv...
loading intersphinx inventory from https://proto-plus-python.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://googleapis.dev/python/protobuf/latest/objects.inv...
intersphinx inventory has moved: https://python.readthedocs.org/en/latest/objects.inv -> https://python.readthedocs.io/en/latest/objects.inv
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 21 source files that are out of date
updating environment: [new config] 21 added, 0 changed, 0 removed
reading sources... [ 4%] README
reading sources... [ 9%] app-profile
reading sources... [ 14%] backup
reading sources... [ 19%] changelog
/tmpfs/src/github/python-bigtable/.nox/docs/lib/python3.8/site-packages/recommonmark/parser.py:75: UserWarning: Container node skipped: type=document
warn("Container node skipped: type={0}".format(mdnode.t))
reading sources... [ 23%] client
reading sources... [ 28%] client-intro
reading sources... [ 33%] cluster
reading sources... [ 38%] column-family
reading sources... [ 42%] data-api
reading sources... [ 47%] encryption-info
reading sources... [ 52%] index
reading sources... [ 57%] instance
reading sources... [ 61%] instance-api
reading sources... [ 66%] multiprocessing
reading sources... [ 71%] row
reading sources... [ 76%] row-data
reading sources... [ 80%] row-filters
reading sources... [ 85%] row-set
reading sources... [ 90%] table
reading sources... [ 95%] table-api
reading sources... [100%] usage

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 4%] README
writing output... [ 9%] app-profile
writing output... [ 14%] backup
writing output... [ 19%] changelog
writing output... [ 23%] client
writing output... [ 28%] client-intro
writing output... [ 33%] cluster
writing output... [ 38%] column-family
writing output... [ 42%] data-api
writing output... [ 47%] encryption-info
writing output... [ 52%] index
writing output... [ 57%] instance
writing output... [ 61%] instance-api
writing output... [ 66%] multiprocessing
writing output... [ 71%] row
writing output... [ 76%] row-data
writing output... [ 80%] row-filters
writing output... [ 85%] row-set
writing output... [ 90%] table
writing output... [ 95%] table-api
writing output... [100%] usage

generating indices... genindex py-modindex done
highlighting module code... [ 8%] google.cloud.bigtable.app_profile
highlighting module code... [ 16%] google.cloud.bigtable.backup
highlighting module code... [ 25%] google.cloud.bigtable.client
highlighting module code... [ 33%] google.cloud.bigtable.cluster
highlighting module code... [ 41%] google.cloud.bigtable.column_family
highlighting module code... [ 50%] google.cloud.bigtable.encryption_info
highlighting module code... [ 58%] google.cloud.bigtable.instance
highlighting module code... [ 66%] google.cloud.bigtable.row
highlighting module code... [ 75%] google.cloud.bigtable.row_data
highlighting module code... [ 83%] google.cloud.bigtable.row_filters
highlighting module code... [ 91%] google.cloud.bigtable.row_set
highlighting module code... [100%] google.cloud.bigtable.table

writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in docs/_build/html.
nox > Session docs was successful.
nox > Ran multiple sessions:
nox > * unit-3.7: success
nox > * unit-3.8: success
nox > * unit-3.9: success
nox > * unit-3.10: success
nox > * system_emulated-3.8: success
nox > * system-3.8: failed
nox > * mypy: success
nox > * cover: success
nox > * lint: success
nox > * lint_setup_py: success
nox > * blacken: success
nox > * docs: success
[FlakyBot] Sending logs to Flaky Bot...
[FlakyBot] See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
[FlakyBot] Published system_3.8_sponge_log.xml (5435596610178109)!
[FlakyBot] Published unit_3.10_sponge_log.xml (5435611300417032)!
[FlakyBot] Published unit_3.7_sponge_log.xml (5435607805161146)!
[FlakyBot] Published unit_3.8_sponge_log.xml (5435604198470214)!
[FlakyBot] Published unit_3.9_sponge_log.xml (5435594220929046)!
[FlakyBot] Done!
cleanup


[ID: 9625597] Command finished after 1123 secs, exit value: 1


Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
[13:01:04] Collecting build artifacts from build VM
Build script failed with exit code: 1