Skip to content

Commit

Permalink
Run a bzlmod aquery during presubmit
Browse files Browse the repository at this point in the history
Should catch missing bzlmod deps, which is the most common failure root cause for rules_android BazelCI runs.

PiperOrigin-RevId: 567354485
Change-Id: Ie3ed1a07fe3f944a235ead60411544586c4e7bfd
  • Loading branch information
ted-xie authored and copybara-github committed Sep 21, 2023
1 parent 08fa4f7 commit cd4691d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kokoro/presubmit/presubmit_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ function main() {
cd "${KOKORO_ARTIFACTS_DIR}/git/rules_android"

# Fetch all external deps; should reveal any bugs related to external dep
# references.
"$bazel" aquery 'deps(...)' --noenable_bzlmod 2>&1 > /dev/null
# references. First run this query with bzlmod enabled to catch missing
# bzlmod deps.
"$bazel" aquery 'deps(...)' --enable_bzlmod > /dev/null
# Perform the same aquery with bzlmod disabled to sniff out WORKSPACE issues
"$bazel" aquery 'deps(...)' --noenable_bzlmod > /dev/null

"$bazel" test "${COMMON_ARGS[@]}" //src/common/golang/... \
//src/tools/ak/... \
Expand Down

0 comments on commit cd4691d

Please sign in to comment.