New issue
Advanced search Search tips

Issue 774732 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

Automatically select PreCQ coverage by inspecting package dependencies.

Project Member Reported by dgarr...@chromium.org, Oct 13 2017

Issue description

It would be nice to auto-detect PreCQ builders by looking at ebuild packages dependencies and ensuring that at least one of the builds performed will compile/unittest CLs being tested.

I don't have a good way to do this.
 
Cc: vapier@chromium.org
Summary: Automatically select PreCQ coverage by inspecting package dependencies. (was: Select PreCQ coverage auto-inspecting package dependencies.)
We could setup a builder that discovers the set of all packages included for all boards, then for each package, maps to the source repo, processes COMMIT_QUEUE.ini for that repo, and verifies (and/or generates) the list of PreCQ builders needed for Unittest / VMTest coverage.

I'm not actually certain what's needed to build that set of pacakges and the associated git repos, so I'm not certain how hard this would be to do.

Comment 2 by vapier@chromium.org, Oct 15 2017

setup_board would be sufficient to start probing dependency graphs
Running setup_board for all boards in a single chroot is something we already do for binhost test.

What's the best way to map an ebuild to a git repository in the manifest? Are there tools, or do we just parse the ebuild directly?

Comment 4 by vapier@chromium.org, Oct 16 2017

if you're looking at cros-workon packages, there are helpers in portage_util.py for getting source repo details out of it.  for other ebuilds, you can look at their source repo* to map to an ebuild overlay, but that's as far as you can get easily.  which should be good enough i think.

*: Look at the BuildPackages output to see what i mean:
[ebuild     U  ] chromeos-base/libweave-0.0.1-r659::chromiumos [0.0.1-r658::chromiumos] to /build/amd64-generic/ USE="cros-debug -asan -cros_host -profiling {-test*}" 0 KiB

the "::chromiumos" part says it's coming from the chromiumos-overlay.
Labels: -Pri-3 Pri-2
Thanks. That's looking feasible, if not trivial.

Comment 7 by cindyb@chromium.org, May 31 2018

Hi, this bug has not been updated recently and remains untriaged. Please acknowledge the bug and provide status within two weeks (6/8/2018), or the bug will be closed. Thank you.
Components: -Infra>Client>ChromeOS Infra>Client>ChromeOS>CI
CI should triage this, and evaluate if it's still relevant.

Cc: dgarr...@chromium.org
Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)

Sign in to add a comment