Closed Bug 1879294 Opened 2 years ago Closed 2 years ago

Perma Gecko Decision bustage task requests.exceptions.RetryError: HTTPSConnectionPool(host='bugbug.herokuapp.com' port=443) Max retries exceeded with url: /push/autoland/schedules (Caused by ResponseError('too many 500 error responses'))

Categories

(Developer Infrastructure :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

Filed by: csabou [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=446470770&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/B0d0j6xHR-u3mv5y5DJAYA/runs/0/artifacts/public/logs/live_backing.log


[task 2024-02-08T09:36:17.687Z] Retry: /push/autoland/ecac86381755909e8faede9aea165494395da095/schedules
[task 2024-02-08T09:36:17.740Z] https://bugbug.herokuapp.com:443 "GET /push/autoland/ecac86381755909e8faede9aea165494395da095/schedules HTTP/1.1" 500 265
[task 2024-02-08T09:36:17.740Z] Incremented Retry for (url='/push/autoland/ecac86381755909e8faede9aea165494395da095/schedules'): Retry(total=0, connect=5, read=5, redirect=None, status=None)
[task 2024-02-08T09:36:19.343Z] Retry: /push/autoland/ecac86381755909e8faede9aea165494395da095/schedules
[task 2024-02-08T09:36:19.343Z] Resetting dropped connection: bugbug.herokuapp.com
[task 2024-02-08T09:36:19.519Z] https://bugbug.herokuapp.com:443 "GET /push/autoland/ecac86381755909e8faede9aea165494395da095/schedules HTTP/1.1" 500 265
[task 2024-02-08T09:36:19.522Z] PERFHERDER_DATA: {"framework": {"name": "build_metrics"}, "suites": [{"name": "bugbug_push_schedules_time", "value": 542.9901881059999, "lowerIsBetter": true, "shouldAlert": false, "subtests": []}, {"name": "bugbug_push_schedules_retries", "value": 54, "lowerIsBetter": true, "shouldAlert": false, "subtests": []}]}
[task 2024-02-08T09:36:19.522Z] PERFHERDER_DATA: {"framework": {"name": "build_metrics"}, "suites": [{"name": "bugbug_push_schedules_time", "value": 543.0497489020001, "lowerIsBetter": true, "shouldAlert": false, "subtests": []}, {"name": "bugbug_push_schedules_retries", "value": 54, "lowerIsBetter": true, "shouldAlert": false, "subtests": []}]}
[task 2024-02-08T09:36:19.522Z] Traceback (most recent call last):
[task 2024-02-08T09:36:19.522Z]   File "/builds/worker/checkouts/gecko/third_party/python/requests/requests/adapters.py", line 486, in send
[task 2024-02-08T09:36:19.522Z]     resp = conn.urlopen(
[task 2024-02-08T09:36:19.522Z]   File "/builds/worker/checkouts/gecko/third_party/python/urllib3/urllib3/connectionpool.py", line 889, in urlopen
[task 2024-02-08T09:36:19.522Z]     return self.urlopen(
[task 2024-02-08T09:36:19.522Z]   File "/builds/worker/checkouts/gecko/third_party/python/urllib3/urllib3/connectionpool.py", line 889, in urlopen
[task 2024-02-08T09:36:19.522Z]     return self.urlopen(
[task 2024-02-08T09:36:19.522Z]   File "/builds/worker/checkouts/gecko/third_party/python/urllib3/urllib3/connectionpool.py", line 889, in urlopen
[task 2024-02-08T09:36:19.522Z]     return self.urlopen(
[task 2024-02-08T09:36:19.522Z]   [Previous line repeated 2 more times]
[task 2024-02-08T09:36:19.522Z]   File "/builds/worker/checkouts/gecko/third_party/python/urllib3/urllib3/connectionpool.py", line 879, in urlopen
[task 2024-02-08T09:36:19.523Z]     retries = retries.increment(method, url, response=response, _pool=self)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/urllib3/urllib3/util/retry.py", line 592, in increment
[task 2024-02-08T09:36:19.523Z]     raise MaxRetryError(_pool, url, error or ResponseError(cause))
[task 2024-02-08T09:36:19.523Z] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='bugbug.herokuapp.com', port=443): Max retries exceeded with url: /push/autoland/ecac86381755909e8faede9aea165494395da095/schedules (Caused by ResponseError('too many 500 error responses'))
[task 2024-02-08T09:36:19.523Z] 
[task 2024-02-08T09:36:19.523Z] During handling of the above exception, another exception occurred:
[task 2024-02-08T09:36:19.523Z] 
[task 2024-02-08T09:36:19.523Z] Traceback (most recent call last):
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/taskcluster/mach_commands.py", line 221, in taskgraph_decision
[task 2024-02-08T09:36:19.523Z]     ret = taskgraph_commands["decision"].func(options)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/taskcluster/gecko_taskgraph/main.py", line 683, in decision
[task 2024-02-08T09:36:19.523Z]     taskgraph_decision(options)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/taskcluster/gecko_taskgraph/decision.py", line 223, in taskgraph_decision
[task 2024-02-08T09:36:19.523Z]     write_artifact("task-graph.json", tgg.morphed_task_graph.to_json())
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 220, in morphed_task_graph
[task 2024-02-08T09:36:19.523Z]     return self._run_until("morphed_task_graph")
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 425, in _run_until
[task 2024-02-08T09:36:19.523Z]     k, v = next(self._run)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 399, in _run
[task 2024-02-08T09:36:19.523Z]     optimized_task_graph, label_to_taskid = optimize_task_graph(
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 65, in optimize_task_graph
[task 2024-02-08T09:36:19.523Z]     removed_tasks = remove_tasks(
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 217, in remove_tasks
[task 2024-02-08T09:36:19.523Z]     if opt.should_remove_task(task, params, arg):
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 471, in should_remove_task
[task 2024-02-08T09:36:19.523Z]     return self.reduce(results)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 491, in reduce
[task 2024-02-08T09:36:19.523Z]     for rv in results:
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 467, in _generate_results
[task 2024-02-08T09:36:19.523Z]     yield getattr(sub, fname)(*passthru, arg)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 471, in should_remove_task
[task 2024-02-08T09:36:19.523Z]     return self.reduce(results)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 512, in reduce
[task 2024-02-08T09:36:19.523Z]     for rv in results:
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 467, in _generate_results
[task 2024-02-08T09:36:19.523Z]     yield getattr(sub, fname)(*passthru, arg)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 471, in should_remove_task
[task 2024-02-08T09:36:19.523Z]     return self.reduce(results)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 491, in reduce
[task 2024-02-08T09:36:19.523Z]     for rv in results:
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 467, in _generate_results
[task 2024-02-08T09:36:19.523Z]     yield getattr(sub, fname)(*passthru, arg)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/taskcluster/gecko_taskgraph/optimize/bugbug.py", line 143, in should_remove_task
[task 2024-02-08T09:36:19.523Z]     new_data = push_schedules(params["project"], rev)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/util.py", line 1045, in __call__
[task 2024-02-08T09:36:19.523Z]     self[args] = self.func(*args)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/taskcluster/gecko_taskgraph/util/bugbug.py", line 96, in push_schedules
[task 2024-02-08T09:36:19.523Z]     r = session.get(url)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/requests/requests/sessions.py", line 602, in get
[task 2024-02-08T09:36:19.523Z]     return self.request("GET", url, **kwargs)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/requests/requests/sessions.py", line 589, in request
[task 2024-02-08T09:36:19.523Z]     resp = self.send(prep, **send_kwargs)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/requests/requests/sessions.py", line 703, in send
[task 2024-02-08T09:36:19.523Z]     r = adapter.send(request, **kwargs)
[task 2024-02-08T09:36:19.523Z]   File "/builds/worker/checkouts/gecko/third_party/python/requests/requests/adapters.py", line 510, in send
[task 2024-02-08T09:36:19.523Z]     raise RetryError(e, request=request)
[task 2024-02-08T09:36:19.523Z] requests.exceptions.RetryError: HTTPSConnectionPool(host='bugbug.herokuapp.com', port=443): Max retries exceeded with url: /push/autoland/ecac86381755909e8faede9aea165494395da095/schedules (Caused by ResponseError('too many 500 error responses'))
[task 2024-02-08T09:36:19.523Z] Creating default state directory: /builds/worker/.mozbuild
[task 2024-02-08T09:36:19.523Z] Creating local state directory: /builds/worker/.mozbuild/srcdirs/gecko-8a5b87fe5d69
[taskcluster 2024-02-08 09:36:21.870Z] === Task Finished ===
[taskcluster 2024-02-08 09:36:37.144Z] Unsuccessful task run with exit code: 1 completed in 1919.069 seconds

Affects autoland, try affected on certain pushes, mozilla-central and other repos from what I've seen are unaffected.

This is due to bug 1879264 and https://github.com/mozilla/bugbug/pull/4029, which should be fixed soon.

In theory we have a fallback, but the fallback is only active in case of BugbugTimeoutException (https://searchfox.org/mozilla-central/rev/57516f1ab5660f9abf459300bc625279eb323213/taskcluster/gecko_taskgraph/optimize/bugbug.py#145), and here we have a RetryError instead.

Ah, it's because we throw BugbugTimeoutException only in case of repeated 202, but not in case of repeated errors: https://searchfox.org/mozilla-central/rev/57516f1ab5660f9abf459300bc625279eb323213/taskcluster/gecko_taskgraph/util/bugbug.py#93-115.

Severity: S4 → --
Priority: P5 → --
Product: Firefox Build System → Developer Infrastructure

This has been mitigated, decision tasks are green, considering this as fixed.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Summary: [AUTOLAND CLOSED] Perma Gecko Decision bustage task requests.exceptions.RetryError: HTTPSConnectionPool(host='bugbug.herokuapp.com' port=443) Max retries exceeded with url: /push/autoland/schedules (Caused by ResponseError('too many 500 error responses')) → Perma Gecko Decision bustage task requests.exceptions.RetryError: HTTPSConnectionPool(host='bugbug.herokuapp.com' port=443) Max retries exceeded with url: /push/autoland/schedules (Caused by ResponseError('too many 500 error responses'))
You need to log in before you can comment on or make changes to this bug.