Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

samples.snippets.quickstart_analyzeiampolicylongrunning_test: test_analyze_iam_policy_longrunning failed #201

Closed
flaky-bot bot opened this issue Jun 15, 2021 · 5 comments
Assignees
Labels
api: cloudasset Issues related to the googleapis/python-asset 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: p1 Important issue which blocks shipping the next release. Will be fixed prior to 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 Jun 15, 2021

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 9a36ff8
buildURL: Build Status, Sponge
status: failed

Test output
analysis_bucket = 'analysis-8501212614285565916632235583689590931'
dataset = 'analysis_172710528319663483716543796426996361135'
capsys = <_pytest.capture.CaptureFixture object at 0x7f998bbec588>
def test_analyze_iam_policy_longrunning(analysis_bucket, dataset, capsys):
    dump_file_path = "gs://{}/analysis-dump.txt".format(analysis_bucket)
    quickstart_analyzeiampolicylongrunning.analyze_iam_policy_longrunning_gcs(PROJECT, dump_file_path)
    out, _ = capsys.readouterr()
    assert "True" in out

    dataset_id = "projects/{}/datasets/{}".format(PROJECT, dataset)
  quickstart_analyzeiampolicylongrunning.analyze_iam_policy_longrunning_bigquery(PROJECT, dataset_id, "analysis_")

quickstart_analyzeiampolicylongrunning_test.py:75:


quickstart_analyzeiampolicylongrunning.py:75: in analyze_iam_policy_longrunning_bigquery
operation.result(300)


self = <google.api_core.operation.Operation object at 0x7f998bc34048>
timeout = 300, retry = <google.api_core.retry.Retry object at 0x7f998bfa2390>

def result(self, timeout=None, retry=DEFAULT_RETRY):
    """Get the result of the operation, blocking if necessary.

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

    Returns:
        google.protobuf.Message: The Operation's result.

    Raises:
        google.api_core.GoogleAPICallError: If the operation errors or if
            the timeout is reached before the operation completes.
    """
    kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}
    self._blocking_poll(timeout=timeout, **kwargs)

    if self._exception is not None:
        # pylint: disable=raising-bad-type
        # Pylint doesn't recognize that this is valid in this case.
      raise self._exception

E google.api_core.exceptions.InternalServerError: 500 Job failed. Please consult the support team with the operation name.

.nox/py-3-6/lib/python3.6/site-packages/google/api_core/future/polling.py:134: InternalServerError

@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 Jun 15, 2021
@product-auto-label product-auto-label bot added api: cloudasset Issues related to the googleapis/python-asset API. samples Issues that are directly related to samples. labels Jun 15, 2021
@flaky-bot flaky-bot bot added the flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. label Jun 15, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Jun 15, 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 (9a36ff8), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

@parthea
Copy link
Contributor

parthea commented Jun 16, 2021

I'm going to close this issue in case it is a once off problem. A new issue will re-open if the problem re-occurs.

@parthea parthea closed this as completed Jun 16, 2021
@flaky-bot flaky-bot bot reopened this Jun 18, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Jun 18, 2021

Oops! Looks like this issue is still flaky. It failed again. 😬

I reopened the issue, but a human will need to close it again.


commit: 9a36ff8
buildURL: Build Status, Sponge
status: failed

Test output
analysis_bucket = 'analysis-298872480074514297942362287291565938731'
dataset = 'analysis_27633691162615292240333021372575403755'
capsys = <_pytest.capture.CaptureFixture object at 0x7fca0ac524d0>
def test_analyze_iam_policy_longrunning(analysis_bucket, dataset, capsys):
    dump_file_path = "gs://{}/analysis-dump.txt".format(analysis_bucket)
  quickstart_analyzeiampolicylongrunning.analyze_iam_policy_longrunning_gcs(PROJECT, dump_file_path)

quickstart_analyzeiampolicylongrunning_test.py:70:


quickstart_analyzeiampolicylongrunning.py:44: in analyze_iam_policy_longrunning_gcs
operation.result(300)


self = <google.api_core.operation.Operation object at 0x7fca0ac99850>
timeout = 300, retry = <google.api_core.retry.Retry object at 0x7fca0b03aad0>

def result(self, timeout=None, retry=DEFAULT_RETRY):
    """Get the result of the operation, blocking if necessary.

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

    Returns:
        google.protobuf.Message: The Operation's result.

    Raises:
        google.api_core.GoogleAPICallError: If the operation errors or if
            the timeout is reached before the operation completes.
    """
    kwargs = {} if retry is DEFAULT_RETRY else {"retry": retry}
    self._blocking_poll(timeout=timeout, **kwargs)

    if self._exception is not None:
        # pylint: disable=raising-bad-type
        # Pylint doesn't recognize that this is valid in this case.
      raise self._exception

E google.api_core.exceptions.InternalServerError: 500 Job failed. Please consult the support team with the operation name.

.nox/py-3-7/lib/python3.7/site-packages/google/api_core/future/polling.py:134: InternalServerError

@parthea
Copy link
Contributor

parthea commented Jun 18, 2021

Googlers see b/191428098

@parthea
Copy link
Contributor

parthea commented Jun 19, 2021

I'm going to close this off as I've had a few consecutive successful builds. It appears the issue is no longer present.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: cloudasset Issues related to the googleapis/python-asset 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: p1 Important issue which blocks shipping the next release. Will be fixed prior to 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

1 participant