Blacklist anything that is not Fedora
ClosedPublic

Authored by mkrizek on Apr 30 2015, 11:40 AM.

Details

Summary

Fixes https://taskotron.fedoraproject.org/taskmaster/builders/x86_64/builds/63826 that was caused by http://koji.fedoraproject.org/koji/buildinfo?buildID=632072 ('el7' not in release).

Also it removes blacklisted_releases, as @kparal suggested, we don't have to add a new tag everytime there's new epel release (although it's not often).

Test Plan

Tests pass.

Diff Detail

Repository
rTRGR taskotron-trigger
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mkrizek retitled this revision from to Blacklist anything that is not Fedora.Apr 30 2015, 11:40 AM
mkrizek updated this object.
mkrizek edited the test plan for this revision. (Show Details)
mkrizek added reviewers: tflink, kparal.
mkrizek added a subscriber: kparal.
tflink accepted this revision.May 4 2015, 2:37 PM

I'm hesitant to hardcode blacklisting of everything epel but I suppose that running on epel isn't exactly on the roadmap for the near future and we can always back out the hardcoded changes.

This revision is now accepted and ready to land.May 4 2015, 2:37 PM
kparal added a comment.May 4 2015, 4:05 PM

If my rawhide concern is invalid, you have my ack.

jobtriggers/koji_build_msg.py
39–40

Since you removed the blacklist feature, this message might be slightly confusing. What about

'This build doesn't contain "fc" in its release tag, considering as unsupported and skipping: %s' % envr

?

jobtriggers/koji_tag_msg.py
56–57

What do you think about checking for f\d\d.* regular expressions? Should be a bit safer.

This will exclude rawhide koji tag, is that intended? I don't see it in the unit tests, so I don't know. But we do trigger some checks for rawhide builds at the moment (rpmlint), I believe.

57–59

Ditto.

mkrizek added inline comments.May 5 2015, 6:14 AM
jobtriggers/koji_tag_msg.py
56–57

Yes, but rawhide builds (rpmlint) are triggered by koji_build consumer. This is koji_tag consumer. Even so, doesn't rawhide koji tag start with "f23"?

kparal added inline comments.May 5 2015, 6:53 AM
jobtriggers/koji_tag_msg.py
56–57

Ah, in that case it's fine.

If you look here:
http://koji.fedoraproject.org/koji/taginfo?tagID=197
http://koji.fedoraproject.org/koji/taginfo?tagID=292
the rawhide tag is actually a parent of f23 tag and it is locked. I'm not sure for what purpose it is used. But it looks like you're right and we're fine with just using f23.

mkrizek updated this revision to Diff 977.May 6 2015, 3:02 PM
  • Use regex to be a bit safer about koji tag recognition
kparal accepted this revision.May 7 2015, 8:59 AM
This revision was automatically updated to reflect the committed changes.