-
Notifications
You must be signed in to change notification settings - Fork 6.7k
batch.tests.test_basics: test_container_job failed #8631
Copy link
Copy link
Closed
Labels
api: batchIssues related to the Batch API.Issues related to the Batch API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.Tells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.An issue filed by the Flaky Bot. Should not be added manually.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Metadata
Metadata
Assignees
Labels
api: batchIssues related to the Batch API.Issues related to the Batch API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.Tells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.An issue filed by the Flaky Bot. Should not be added manually.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
This test failed!
To configure my behavior, see the Flaky Bot documentation.
If I'm commenting on this issue too often, add the
flakybot: quietlabel andI will stop commenting.
commit: 07e8b81
buildURL: Build Status, Sponge
status: failed
Test output
Traceback (most recent call last): File "/workspace/batch/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable return callable_(*args, **kwargs) File "/workspace/batch/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 946, in __call__ return _end_unary_response_blocking(state, call, False, None) File "/workspace/batch/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking raise _InactiveRpcError(state) grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.UNAUTHENTICATED details = "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project." debug_error_string = "UNKNOWN:Error received from peer ipv4:74.125.195.95:443 {created_time:"2022-11-30T12:16:43.241885377+00:00", grpc_status:16, grpc_message:"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project."}" >The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/workspace/batch/tests/test_basics.py", line 100, in test_container_job
_test_body(job, additional_test=lambda: _check_tasks(job_name))
File "/workspace/batch/tests/test_basics.py", line 57, in _test_body
test_job = get_job(PROJECT, REGION, test_job.name.rsplit('/', maxsplit=1)[1])
File "/workspace/batch/get/get_job.py", line 34, in get_job
return client.get_job(name=f"projects/{project_id}/locations/{region}/jobs/{job_name}")
File "/workspace/batch/.nox/py-3-8/lib/python3.8/site-packages/google/cloud/batch_v1/services/batch_service/client.py", line 710, in get_job
response = rpc(
File "/workspace/batch/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py", line 154, in call
return wrapped_func(*args, **kwargs)
File "/workspace/batch/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py", line 283, in retry_wrapped_func
return retry_target(
File "/workspace/batch/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py", line 190, in retry_target
return target()
File "/workspace/batch/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 74, in error_remapped_callable
raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.Unauthenticated: 401 Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.