Skip to content

Inject various static analyzers into a rebuild of an srpm, and harvest the results in Firehose format

License

Notifications You must be signed in to change notification settings

pombredanne/mock-with-analysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mock-with-analysis

Uses the "mock" tool to rebuild a srpm within a chroot, but injects various static analyzers into the build as side effects, gathering the results as Firehose XML files.

The following analyzers are currently run:

as well as gathering gcc warnings.

The results are scraped out to the mock's results dir in a new "static-analysis" directory:

/var/lib/mock/CONFIG/result/state.log
                            root.log
                            build.log
                            BUILT-RPMS
                            static-analysis/ <=== this and below are new
                                           /reports/*.xml
                                           /sources/

where "static-analysis/reports/" contains the firehose XML files, and "static-analysis/sources/" contains all relevant source files, named after their SHA-1 digest.

Currently under heavy development

TODO:
  • add other analyzers (which?)
  • make more robust
    • capture analysis failures in the XML
      • gcc warnings that we can't parse
      • crashes of an analysis tool
    • add timeouts: if a checker takes too long, kill it (and capture it within in the XML)

About

Inject various static analyzers into a rebuild of an srpm, and harvest the results in Firehose format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.2%
  • C 3.3%
  • Makefile 1.5%