GoogleCloudPlatform / python-docs-samples

Code samples used on cloud.google.com
Apache License 2.0
7.46k stars 6.44k forks source link

jobs.v3.api_client.email_alert_search_sample_test: test_email_alert_search_sample failed #4827

Closed flaky-bot[bot] closed 3 years ago

flaky-bot[bot] commented 4 years ago

Note: #4755 was also for this test, but it is locked


commit: 8907fe12363f0352afd7a1ee8223ac0674513b48 buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/jobs/v3/api_client/.nox/py-3-7/lib/python3.7/site-packages/backoff/_sync.py", line 105, in retry
    seconds = _next_wait(wait, jitter, elapsed, max_time_)
  File "/workspace/jobs/v3/api_client/.nox/py-3-7/lib/python3.7/site-packages/backoff/_common.py", line 27, in _next_wait
    value = next(wait)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/jobs/v3/api_client/email_alert_search_sample_test.py", line 43, in test_email_alert_search_sample
    eventually_consistent_test()
  File "/workspace/jobs/v3/api_client/.nox/py-3-7/lib/python3.7/site-packages/backoff/_sync.py", line 108, in retry
    raise e
  File "/workspace/jobs/v3/api_client/.nox/py-3-7/lib/python3.7/site-packages/backoff/_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "/workspace/jobs/v3/api_client/email_alert_search_sample_test.py", line 41, in eventually_consistent_test
    assert re.search(expected, out)
AssertionError: assert None
 +  where None = ('.*matchingJobs.*', "{'metadata': {'requestId': 'c9e73fa7-beb7-46c0-a1e7-40a64f047ee9:APAb7ITqm2u3X2haYiTQz8g/ZsrP6pDwYw=='}}\n")
 +    where  = re.search
flaky-bot[bot] commented 4 years ago

Looks like this issue is flaky. :worried:

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

A human should fix and close this.


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

tmatsuo commented 4 years ago

There's not much we can do other than having a longer wait time. I'll bump the retry timeout if we see the same failure.

flaky-bot[bot] commented 4 years ago

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

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


commit: 6bdf295a693ba610e189061655111fad13e730b1 buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/jobs/v3/api_client/.nox/py-3-8/lib/python3.8/site-packages/backoff/_sync.py", line 105, in retry
    seconds = _next_wait(wait, jitter, elapsed, max_time_)
  File "/workspace/jobs/v3/api_client/.nox/py-3-8/lib/python3.8/site-packages/backoff/_common.py", line 27, in _next_wait
    value = next(wait)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/jobs/v3/api_client/email_alert_search_sample_test.py", line 43, in test_email_alert_search_sample
    eventually_consistent_test()
  File "/workspace/jobs/v3/api_client/.nox/py-3-8/lib/python3.8/site-packages/backoff/_sync.py", line 108, in retry
    raise e
  File "/workspace/jobs/v3/api_client/.nox/py-3-8/lib/python3.8/site-packages/backoff/_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "/workspace/jobs/v3/api_client/email_alert_search_sample_test.py", line 41, in eventually_consistent_test
    assert re.search(expected, out)
AssertionError: assert None
 +  where None = ('.*matchingJobs.*', "{'metadata': {'requestId': 'b26fbcae-727f-4f02-a015-f550b52f6cbd:APAb7IQTo0mT/LWv8h8PQfI5zUGERDjttw=='}}\n")
 +    where  = re.search
tmatsuo commented 4 years ago

I'll bump the timeout

flaky-bot[bot] commented 4 years ago

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

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


commit: 4eb1d094c45e67eb2dde77ffeffbff517783e6b2 buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/jobs/v3/api_client/.nox/py-3-7/lib/python3.7/site-packages/backoff/_sync.py", line 105, in retry
    seconds = _next_wait(wait, jitter, elapsed, max_time_)
  File "/workspace/jobs/v3/api_client/.nox/py-3-7/lib/python3.7/site-packages/backoff/_common.py", line 27, in _next_wait
    value = next(wait)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/jobs/v3/api_client/email_alert_search_sample_test.py", line 44, in test_email_alert_search_sample
    eventually_consistent_test()
  File "/workspace/jobs/v3/api_client/.nox/py-3-7/lib/python3.7/site-packages/backoff/_sync.py", line 108, in retry
    raise e
  File "/workspace/jobs/v3/api_client/.nox/py-3-7/lib/python3.7/site-packages/backoff/_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "/workspace/jobs/v3/api_client/email_alert_search_sample_test.py", line 42, in eventually_consistent_test
    assert re.search(expected, out)
AssertionError: assert None
 +  where None = ('.*matchingJobs.*', "{'metadata': {'requestId': 'aa541520-c77b-4a30-99d1-7ec28a155ea1:APAb7ISgr+kl6025GRF8kNi4lZqvZ/E2uw=='}}\n")
 +    where  = re.search
tmatsuo commented 4 years ago

I don't think there's not much we can do other than talking to the product team and make the tail latency shorter.

tmatsuo commented 4 years ago

Another idea: we can omit the assertion (or make it non critical failure) because at least the client library is making a desired request.

fhinkel commented 3 years ago

Looks like @craiglabenz increased the time out and are trying twice. Let's see if it's still flaky. Bot, feel free to reopen if needed 🤖 .

flaky-bot[bot] commented 3 years ago

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

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


commit: 54208af42eeea6b2a2e9485158e244516c03ff8c buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/jobs/v3/api_client/email_alert_search_sample_test.py", line 24, in company_name
    company_name, job_name = email_alert_search_sample.set_up()
  File "/workspace/jobs/v3/api_client/email_alert_search_sample.py", line 53, in set_up
    client_service, company_to_be_created)
  File "/workspace/jobs/v3/api_client/base_company_sample.py", line 62, in create_company
    raise e
  File "/workspace/jobs/v3/api_client/base_company_sample.py", line 57, in create_company
    parent=parent, body=request).execute()
  File "/workspace/jobs/v3/api_client/.nox/py-3-6/lib/python3.6/site-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/workspace/jobs/v3/api_client/.nox/py-3-6/lib/python3.6/site-packages/googleapiclient/http.py", line 915, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: 
tmatsuo commented 3 years ago

The last failure was due to accidental removal of roles/cloudjobdiscovery.jobsEditor role from the service account, closing.