pointless_build: Allow checker to run without a DepGraph; use manifest_commit
When run without a DepGraph, the checker won't exclude files that are
unnecessary to said DepGraph.
The manifest_commit allows the checker to run without using the `repo`
tool, and thus without having a full repo checkout.
Together, these two changes make it possible to run the checker prior to
the build_target recipe's repo sync. We'll do an initial pass in the
beginning, then another after setup_board. In cases where a build can be
terminated very early, by virtue of it only affecting always-irrelevant
files (e.g. OWNERS, md files, chromite/config), we can stop the build
before doing a repo sync.
TEST=unit tests, local runs
Reviewed-by: Evan Hernandez <firstname.lastname@example.org>
Commit-Queue: Sean Abraham <email@example.com>
Tested-by: Sean Abraham <firstname.lastname@example.org>
5 files changed