googleapis/python-dataproc

samples.snippets.submit_job_test: test_submit_job failed

flaky-bot opened this issue · 2 comments

Note: #148 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: a0a2ebe
buildURL: Build Status, Sponge
status: failed

Test output
capsys = <_pytest.capture.CaptureFixture object at 0x7f216050d460>
def test_submit_job(capsys):
  submit_job.submit_job(PROJECT_ID, REGION, CLUSTER_NAME)

submit_job_test.py:63:


submit_job.py:63: in submit_job
storage.Client()
.nox/py-3-8/lib/python3.8/site-packages/google/cloud/storage/client.py:402: in get_bucket
bucket.reload(
.nox/py-3-8/lib/python3.8/site-packages/google/cloud/storage/bucket.py:1001: in reload
super(Bucket, self).reload(
.nox/py-3-8/lib/python3.8/site-packages/google/cloud/storage/_helpers.py:218: in reload
api_response = client._connection.api_request(
.nox/py-3-8/lib/python3.8/site-packages/google/cloud/storage/_http.py:78: in api_request
return call()
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:285: in retry_wrapped_func
return retry_target(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:188: in retry_target
return target()
.nox/py-3-8/lib/python3.8/site-packages/google/cloud/_http.py:473: in api_request
response = self._make_request(
.nox/py-3-8/lib/python3.8/site-packages/google/cloud/_http.py:337: in _make_request
return self._do_request(
.nox/py-3-8/lib/python3.8/site-packages/google/cloud/_http.py:375: in _do_request
return self.http.request(
.nox/py-3-8/lib/python3.8/site-packages/google/auth/transport/requests.py:478: in request
self.credentials.before_request(auth_request, method, url, request_headers)
.nox/py-3-8/lib/python3.8/site-packages/google/auth/credentials.py:133: in before_request
self.refresh(request)
.nox/py-3-8/lib/python3.8/site-packages/google/oauth2/service_account.py:376: in refresh
access_token, expiry, _ = _client.jwt_grant(
.nox/py-3-8/lib/python3.8/site-packages/google/oauth2/_client.py:193: in jwt_grant
response_data = _token_endpoint_request(request, token_uri, body)
.nox/py-3-8/lib/python3.8/site-packages/google/oauth2/_client.py:165: in _token_endpoint_request
_handle_error_response(response_data)


response_data = {'error': 'invalid_grant', 'error_description': 'Invalid JWT Signature.'}

def _handle_error_response(response_data):
    """Translates an error response into an exception.

    Args:
        response_data (Mapping): The decoded response data.

    Raises:
        google.auth.exceptions.RefreshError: The errors contained in response_data.
    """
    try:
        error_details = "{}: {}".format(
            response_data["error"], response_data.get("error_description")
        )
    # If no details could be extracted, use the response data.
    except (KeyError, ValueError):
        error_details = json.dumps(response_data)
  raise exceptions.RefreshError(error_details, response_data)

E google.auth.exceptions.RefreshError: ('invalid_grant: Invalid JWT Signature.', {'error': 'invalid_grant', 'error_description': 'Invalid JWT Signature.'})

.nox/py-3-8/lib/python3.8/site-packages/google/oauth2/_client.py:60: RefreshError

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (a0a2ebe), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

Haven't seen this since July, closing.