RedHatQE / firewatch

React to OpenShift CI test failures
Apache License 2.0
5 stars 11 forks source link

Add hierarchy to handle multiple matching rules for a failure #193

Closed oharan2 closed 5 months ago

oharan2 commented 5 months ago

Currently, if we have more then one matching rule for a failure, the code will take the first rule matched and consider the second a "duplicate" ticket.

The goal is to prioritize it with first check if there's a rule with the same name, otherwise use patterns or duplication.

Workflow example:

  1. We have two rules defined, one for exact- and one for exact-step. But, the rule for exact-* is first in the list of rules and exact-step is second.
  2. A failure in exact-step is identified and paired with both rules.
  3. In this for loop, the first pair (exact-* rule) generates a bug.
  4. In the second iteration of the for loop, the failure pair with the exact-step rule does not generate a ticket, since it'll be identified as a duplicated failure.
redhat-qe-bot commented 5 months ago

Report bugs in Issues

The following are automatically added:

Available user actions:

Supported /retest check runs * This repository does not support retest actions
Supported labels * hold * verified * wip * lgtm
oharan2 commented 5 months ago

/verified

oharan2 commented 5 months ago

/verified

oharan2 commented 5 months ago

/verified