Actions
action #99489
closedqa-maintenance/openQABot CI job fails on `TypeError: 'NoneType' object is not subscriptable`
Description
Observation¶
https://gitlab.suse.de/qa-maintenance/openQABot/-/jobs/614922 fails with
$ /usr/bin/oqaqambot --verbose $BOT_PARAMS 2>&1 | tee openqabot.log
Traceback (most recent call last):
File "/usr/bin/oqaqambot", line 11, in <module>
load_entry_point('openQABot==0.3.0', 'console_scripts', 'oqaqambot')()
File "/usr/lib/python3.6/site-packages/openqabot/main.py", line 18, in main
sys.exit(run_bot(logger, args, sys))
File "/usr/lib/python3.6/site-packages/openqabot/main.py", line 41, in run_bot
return OpenQABot(metadata, args)()
File "/usr/lib/python3.6/site-packages/openqabot/openqabot.py", line 88, in __init__
self.mrs = MR(args.smelt, args.base_url, args.commenter)()
File "/usr/lib/python3.6/site-packages/openqabot/update/mr.py", line 23, in __call__
return self._get_mr_data()
File "/usr/lib/python3.6/site-packages/openqabot/update/mr.py", line 138, in _get_mr_data
return self._get_mr_requests(ids)
File "/usr/lib/python3.6/site-packages/openqabot/update/mr.py", line 124, in _get_mr_requests
for r in ret
File "/usr/lib/python3.6/site-packages/openqabot/update/mr.py", line 126, in <listcomp>
and "MAINTENANCE_REQUEST" in r["requestactionSet"][0]["srcProject"]["name"]
TypeError: 'NoneType' object is not subscriptable
Reproducible¶
the next job
https://gitlab.suse.de/qa-maintenance/openQABot/-/jobs/615058
has passed
Suggestion¶
- Monitor. As long as this does not happen again, don't care about it
Updated by jbaier_cz about 3 years ago
This seems like a "bad" response from the smelt. Probably an issue with one of the incidents, so it is data releated.
Updated by jbaier_cz about 3 years ago
- Is duplicate of action #97955: [openqabot] Possible TypeError during execution "'NoneType' object is not subscriptable" added
Updated by okurz about 3 years ago
- Status changed from New to Rejected
- Assignee set to okurz
rejecting in favor of original #97955 . I agree with the suggestion in #97955#note-1 to have better exception handling, shouldn't be too hard.
Updated by jbaier_cz over 2 years ago
- Related to action #115733: bot-ng pipeline fails because of empty dictionary in data returned by smelt size:M added
Updated by jbaier_cz over 2 years ago
- Related to deleted (action #115733: bot-ng pipeline fails because of empty dictionary in data returned by smelt size:M)
Actions