Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

samples.snippets.submit_job_test: test_submit_job failed #221

Closed
flaky-bot bot opened this issue Jul 13, 2021 · 2 comments
Closed

samples.snippets.submit_job_test: test_submit_job failed #221

flaky-bot bot opened this issue Jul 13, 2021 · 2 comments
Assignees
Labels
api: dataproc Issues related to the googleapis/python-dataproc API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Jul 13, 2021

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

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jul 13, 2021
@product-auto-label product-auto-label bot added api: dataproc Issues related to the googleapis/python-dataproc API. samples Issues that are directly related to samples. labels Jul 13, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Jul 14, 2021

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).

@flaky-bot flaky-bot bot added the flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. label Jul 14, 2021
@meredithslota meredithslota added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Jul 19, 2021
@meredithslota
Copy link
Contributor

Haven't seen this since July, closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: dataproc Issues related to the googleapis/python-dataproc API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants