Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 646622

Summary: sys-apps/portage: add egencache option to generate QA report for changed dependencies
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: ToolsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: josef64, sam, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=645550
https://bugs.gentoo.org/show_bug.cgi?id=646458
https://bugs.gentoo.org/show_bug.cgi?id=873781
Whiteboard:
Package list:
Runtime testing required: ---

Description Zac Medico gentoo-dev 2018-02-05 01:13:48 UTC
When egencache is generating metadata, is it already compares the previous cache entry to the new one. So, it has a perfect opportunity to generate a QA report for changed dependencies. The report might simply consist of raw dependency metadata which is intended for analysis by other tools.

Classes of dependency changes that cause problems are enumerated here:

https://wiki.gentoo.org/wiki/Project:Portage/Changed_Deps
Comment 1 Zac Medico gentoo-dev 2018-02-05 03:26:33 UTC
This could also be implemented as a tool that creates and compares dumps of the metadata cache. The advantage of separating this from egencache is that the tool can run on a separate machine from egencache, operating on snapshots of the rsync tree.

It might also be useful to blame specific commits, but that would be much more expensive because it involves generating metadata cache separately for each commit in which a dependency change may have occurred (could use git bisect).
Comment 2 Zac Medico gentoo-dev 2018-02-06 08:59:24 UTC
The gentoo-repo-qa-bot commits are a convenient data source:

https://github.com/gentoo-mirror/gentoo/commits?author=gentoo-repo-qa-bot