googleapis / python-pubsub

Apache License 2.0
392 stars 205 forks source link

tests.system: test_listing_topic_subscriptions[rest-rest] failed #1208

Closed flaky-bot[bot] closed 1 month ago

flaky-bot[bot] commented 5 months ago

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


commit: 149fa7704a746c6b0c04b3128c06680dd768a322 buildURL: Build Status, Sponge status: failed

flaky-bot[bot] commented 5 months 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 (149fa7704a746c6b0c04b3128c06680dd768a322), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

mukund-ananthu commented 1 month ago

Occurred due to a 502 response from backend:

# subclass.
        if response.status_code >= 400:
>           raise core_exceptions.from_http_response(response)
E           google.api_core.exceptions.BadGateway: 502 PUT [https://pubsub.googleapis.com/v1/projects/precise-truck-742/subscriptions/sub-3.1719002061306?%24alt=json%3Benum-encoding%3Dint](https://www.google.com/url?q=https://pubsub.googleapis.com/v1/projects/precise-truck-742/subscriptions/sub-3.1719002061306?%2524alt%3Djson%253Benum-encoding%253Dint&sa=D): <!DOCTYPE html>
E           <html lang=en>
E             <meta charset=utf-8>
E             <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
E             <title>Error 502 (Server Error)!!1</title>
E             <style>
E               *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//[www.google.com/images/errors/robot.png](http://www.google.com/images/errors/robot.png)) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//[www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png](http://www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png)) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//[www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png](http://www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png)) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//[www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png](http://www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png)) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//[www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png](http://www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png)) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
E             </style>
E             <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
E             <p><b>502.</b> <ins>That’s an error.</ins>
E             <p>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.  <ins>That’s all we know.</ins>

[google/pubsub_v1/services/subscriber/transports/rest.py:876](https://cs.corp.google.com/piper///depot/google3/google/pubsub_v1/services/subscriber/transports/rest.py?l=876): BadGateway
- generated xml file: /tmpfs/src/github/python-pubsub/system_3.12_sponge_log.xml -

which is a retryable status code according to https://cloud.google.com/pubsub/docs/reference/error-codes