mozilla / mozilla/bugbot

[test_email_no_assignee] HTTPError: 502 Server Error: Bad Gateway for url: https://bugzilla.mozilla.org...

Open
#2,713 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
68
Forks
92
Avg merge
2d 2h
Merged PRs (30d)
16

Description

This seems like an internet test where Bugzilla blocks requests from tests running on TC.

https://community-tc.services.mozilla.com/tasks/cwqj5BZxSfWXRuAYxprJ5A/runs/0/logs/public/logs/live.log:

======================================================================

ERROR: test_nobody (tests.test_email_no_assignee.TestEmailNoAssignee)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/bugbot/tests/test_email_no_assignee.py", line 12, in test_nobody

    bugids = NoAssignee().get_bugs("2011-01-01", bug_ids=[229367, 400095])

  File "/bugbot/bugbot/rules/no_assignee.py", line 293, in get_bugs

    bugs = super(NoAssignee, self).get_bugs(date=date, bug_ids=bug_ids)

  File "/bugbot/bugbot/bzcleaner.py", line 465, in get_bugs

    ).get_data().wait()

  File "/bugbot/.tox/py310/lib/python3.10/site-packages/libmozdata/bugzilla.py", line 180, in wait

    self.wait_bugs()

  File "/bugbot/.tox/py310/lib/python3.10/site-packages/libmozdata/bugzilla.py", line 191, in wait_bugs

    r.result()

  File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 458, in result

    return self.__get_result()

  File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result

    raise self._exception

  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run

    result = self.fn(*self.args, **self.kwargs)

  File "/bugbot/.tox/py310/lib/python3.10/site-packages/requests/sessions.py", line 589, in request

    resp = self.send(prep, **send_kwargs)

  File "/bugbot/.tox/py310/lib/python3.10/site-packages/requests/sessions.py", line 710, in send

    r = dispatch_hook("response", hooks, r, **kwargs)

  File "/bugbot/.tox/py310/lib/python3.10/site-packages/requests/hooks.py", line 30, in dispatch_hook

    _hook_data = hook(hook_data, **kwargs)

  File "/bugbot/.tox/py310/lib/python3.10/site-packages/libmozdata/bugzilla.py", line 567, in __bugs_cb

    res.raise_for_status()

  File "/bugbot/.tox/py310/lib/python3.10/site-packages/requests/models.py", line 1026, in raise_for_status

    raise HTTPError(http_error_msg, response=self)

requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://bugzilla.mozilla.org/rest/bug?resolution=FIXED&bug_status=RESOLVED&bug_status=VERIFIED&keywords=meta&keywords_type=nowords&f1=longdesc&o1=regexp&v1=http%5Bs%5D%3F%3A%2F%2Fhg%5C.mozilla%5C.org%2F%28releases%2F%29%3Fmozilla-%5B%5E%2F%5D%2B%2Frev%2F%5B0-9a-f%5D%2B&f2=resolution&o2=changedafter&v2=2010-11-17+00%3A00%3A00%2B00%3A00&f3=resolution&o3=changedbefore&v3=2011-01-02+00%3A00%3A00%2B00%3A00&n4=1&f4=assigned_to&o4=changedby&v4=release-mgmt-account-bot%40mozilla.tld&f5=reporter&o5=nowordssubstr&v5=wptsync%40mozilla.bugs&j6=OR&f6=OP&f7=assigned_to&o7=equals&v7=nobody%40mozilla.org&f8=assigned_to&o8=regexp&v8=%5E.%2A%5C.bugs%24&f9=assigned_to&o9=isempty&f10=CP&include_fields=id&include_fields=summary&include_fields=groups&bug_id=229367&bug_id=400095&f11=status_whiteboard&o11=notsubstring&v11=%5Bno-nag%5D&product=Firefox&product=Web+Compatibility&product=GeckoView&product=Firefox+for+Android&product=Toolkit&product=Core&product=Developer+Infrastructure&product=Firefox+Build+System&product=NSPR&product=NSS&product=Release+Engineering&product=Firefox+for+iOS&product=WebExtensions&product=External+Software+Affecting+Firefox&product=Focus&product=JSS&product=Testing&product=Remote+Protocol&product=DevTools&limit=100&order=bug_id&offset=0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tests/test_email_no_assignee.py and trace the failing call through bugbot/rules/no_assignee.py and bugbot/bzcleaner.py. Run test_nobody and inspect how the Bugzilla request is made; done means the test suite no longer depends on the failing external request or reports this 502.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.