Actions
action #95989
closedopenqa-review gitlab CI pipeline jobs fail with "AttributeError: 'NoneType' object has no attribute 'group'"
Start date:
2021-07-26
Due date:
% Done:
0%
Estimated time:
Description
Observation¶
https://gitlab.suse.de/openqa/openqa-review/-/jobs/507143 and others:
Traceback (most recent call last):
File "/usr/bin/openqa-review", line 33, in <module>
sys.exit(load_entry_point('openqa-review==0.0.0', 'console_scripts', 'openqa-review')())
File "/usr/lib/python3.8/site-packages/openqa_review/openqa_review.py", line 1555, in main
report = generate_report(args)
File "/usr/lib/python3.8/site-packages/openqa_review/openqa_review.py", line 1486, in generate_report
return Report(browser, args, root_url, job_groups)
File "/usr/lib/python3.8/site-packages/openqa_review/openqa_review.py", line 1435, in __init__
self.report[k] = self._one_report(v)
File "/usr/lib/python3.8/site-packages/openqa_review/openqa_review.py", line 1446, in _one_report
return ProductReport(self.browser, job_group_url, self.root_url, self.args)
File "/usr/lib/python3.8/site-packages/openqa_review/openqa_review.py", line 1159, in __init__
results = get_arch_state_results(arch, current_details, previous_details, args.output_state_results)
File "/usr/lib/python3.8/site-packages/openqa_review/openqa_review.py", line 315, in get_arch_state_results
states = SortedDict(get_state(v, test_results_previous_dict) for k, v in test_results_dict.items())
File "/usr/lib/python3.8/site-packages/sortedcontainers/sorteddict.py", line 186, in __init__
self._update(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/sortedcontainers/sorteddict.py", line 559, in update
dict.update(self, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/openqa_review/openqa_review.py", line 315, in <genexpr>
states = SortedDict(get_state(v, test_results_previous_dict) for k, v in test_results_dict.items())
File "/usr/lib/python3.8/site-packages/openqa_review/openqa_review.py", line 302, in get_state
state_dict.update(get_test_bugref(cur))
File "/usr/lib/python3.8/site-packages/openqa_review/openqa_review.py", line 286, in get_test_bugref
return {"bugref": re.search(r"\S+#([0-9]+)", bugref.i["title"]).group(), "bugref_href": bugref.a["href"].strip()}
AttributeError: 'NoneType' object has no attribute 'group'
+ save_report=
Suggestions¶
Would be nice if the last report could be kept and not lost on errors
Actions