mozilla-services / mozilla-services/updatebot
KeyError: 'bugs' in `findOpenBugs`
Open
Nobody has claimed this yet.
Bug
- Dominant language
- Python
- Stars
- 9
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Sentry Issue: UPDATEBOT-PROD-1V
KeyError: 'bugs'
File "automation.py", line 233, in run
taskRunner.process_task(lib, task)
File "/builds/worker/updatebot/tasktypes/vendoring.py", line 35, in process_task
open_bugs = self.bugzillaProvider.find_open_bugs([j.bugzilla_id for j in all_jobs])
File "components/logging.py", line 38, in func_wrapper
ret = func(*args, **kwargs)
File "components/bugzilla.py", line 242, in find_open_bugs
return findOpenBugs(self.config['url'], filtered_ids)
File "apis/bugzilla_api.py", line 159, in findOpenBugs
return [b['id'] for b in j['bugs']]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace response handling from apis/bugzilla_api.py:159 through components/bugzilla.py:242 and updatebot/tasktypes/vendoring.py:35. Reproduce or inspect the Sentry failure in findOpenBugs, then verify the affected updatebot task no longer raises KeyError: 'bugs'.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100