#3704 support multi-action policies and negated tests
Merged by mikem. Opened by mikem.
mikem/koji multipolicy2  into  master

Download 3704.patch

Based partially on work by cobrien from 2009.

This extends the existing policy handling code as follows:

  • Supports multi match rules
  • Supports negated tests
  • Supports break N action
  • Supports stop action
  • Backwards compatible
  • adds unit tests for new functionality
  • requires no fixes to existing unit tests

Fixes https://pagure.io/koji/issue/4491

Metadata Update from @mikem:
- Pull-request tagged with: discussion

The expectation here is that these extended capabilities (and maybe more) will be needed for scheduler policy

2 new commits added

  • unit test for flag action
  • add flag action and flagged test

Metadata Update from @tkopecek:
- Pull-request tagged with: scheduler

rebased onto 7d5daeff2863eb52f91df693a76a860344c6be82

(trivial rebase, no conflicts, unit tests pass)

rebased onto 3999728651e1a249ce1734fbd69bb4d14c78c109

rebased onto 1a7ef0726e6d4ed1b90c481f42b8fc7dccbf60c0

Rebased. Resolved conflicts with #4483.
Added more debug output.

:thumbsup:

Metadata Update from @mikem:
- Pull-request tagged with: testing-basic

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

rebased onto e3d0fe96eb36889c14590d474d27fe9076a6538f

Commit 18a39195 fixes this pull-request

Pull-Request has been merged by mikem