Ticket #150 (new enhancement)
rpmlint: "artificial ignorance" - suppress errors and warnings that aren't important
|Reported by:||dmalcolm||Owned by:|
|Priority:||major||Milestone:||Package Update Acceptance Test Plan|
There are some interesting ideas in here about suppressing a logfile to show up the information that's truly important: http://www.ranum.com/security/computer_security/papers/ai/index.html
I think that the rpmlint test needs to have a set of filters, and should suppress output matching certain patterns. For example
gnome-python2-gnome.i686: W: spelling-error Summary(en_US) libgnome -> lib gnome, lib-gnome, cognomen
i.e. it's complaining about a reference to "libgnome" within gnome-python2-gnome, which is clearly a false-positive.
For this case we might have a python filtering process that says something like this (caveat: untested):
patterns = [ ": W: spelling-error \S+ libgnome .*", ] def should_ignore(line): for pat in patterns # May want to precompile the patterns: m = re.match(pat, line) if m: return True # No match: return False for line in rpmlint_output if not should_ignore(line): print(line)
and then gradually grow patterns. The idea is to make it nice and lightweight, and Fedora QA can then easily take ownership of the suppresssions, without having to get patches into rpmlint.
- Summary changed from "artificial ignorance": suppress errors and warnings that aren't important to rpmlint: "artificial ignorance" - suppress errors and warnings that aren't important
- Milestone changed from Package Sanity Tests to Package update tests