Project

General

Profile

Actions

action #51923

closed

[tools][functional][u] Check for bug entries that do not exist within any comment

Added by dheidler over 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Feature requests
Target version:
SUSE QA (private) - Milestone 30
Start date:
2019-05-23
Due date:
% Done:

0%

Estimated time:

Description

The bug table in openQA contains a list of all bugs referenced from comments in openQA to show bug status and title within openQA.
Whenever a comment is created, it is parsed for bugids and the according entry is created in the bug table.
All bugs in the bug table will get refreshed by openqa_bugfetcher in regular intervals.
As there are >4000 bugs in the osd database, we should make sure to delete any bug entry, that is not needed anymore.
This can be the case when a job group is deleted including all contained jobs and their comments.

Suggestion

  1. Iterate over all job and jobgroup comments in the database and create a set of bugids. The regex can already be found in the openQA code.
  2. Iterate over all bug entries and delete the ones that do not appear in the previously created set.
Actions

Also available in: Atom PDF