Skip to content

ci: analyze //android/... for linux_arm64 in pr-check - #14513

Merged
TrapsterDK merged 3 commits into
mainfrom
cloud/14438
Nov 21, 2026
Merged

TrapsterDK merged 3 commits into
mainfrom
cloud/14438

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #14438

Adds an android-linux-arm64 set to pr-check. It runs bazel build --nobuild --keep_going --lockfile_mode=error --platforms=//tools/platforms:linux_arm64 --host_platform=//tools/platforms:linux_arm64 //android/... on every PR. An Android target that is not skipped on linux_arm64 now fails the PR instead of the release cell. The set analyzes only, about 40 s on CI with the remote cache.

  • tools/ci/producers/src/pr_check.rs: new set and unit test.
  • .github/workflows/pr-check.yml: new step for the set.
  • tools/ci/pr_check_test.rs: requires the step, the platform flags and //android/....

The set runs on every PR instead of only on changes under android/, core/platforms/ or cc/. A path check needs git, which //tools/ci:host_program_test does not allow the tool to start by name.

Tested: //tools/ci:host_program_test, //tools/ci:workflow_files_test, //tools/ci/producers:producers_bin_test and //tools/ci:actionlint_test passed. On main, the set's command analyzed 177 targets with no errors. tools/dx check --apply on the touched files was clean.

🤖 Generated with Claude Code

A new android-linux-arm64 pr-check set runs bazel build --nobuild for
linux_arm64 over //android/... when a PR touches android/, core/platforms/
or cc/, so an Android target that is not skipped there fails the PR
instead of the release cell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TrapsterDK TrapsterDK added the train Tested; land via merge train label Nov 21, 2026 — with Claude

Copy link
Copy Markdown
Collaborator Author

The analysis failure is in the preflight set's crate lock check, not in this PR. bazel mod show_repo --lockfile_mode=error --repo_env=CARGO_BAZEL_DIGEST_CHECK=1 @crates @dx_quality_crates @dx_thrift_crates fails with Digests do not match ... lockfile is out of date for 'dx_crates'. The same command fails the same way, with digest 7440405e… != 56870eb4…, on main 8c9c770 with no changes. This PR touches no Cargo manifest or crate lock. The android-linux-arm64 set comes after preflight in the job, so it did not run here.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

The affected tests (shard 0) failures come from main, not this PR. //core/modules:versions_contract, //core/modules:consumer_deps_test (every_bazel_dep_has_a_floor_comment_and_is_newest, every_nested_lock_has_the_root_registry_deps) and //tools/testing:module_extension_srcs_test (module_srcs_carry_every_non_starlark_file_a_private_package_references) fail the same way on main 8c9c770. //tools/ci:aggregate_gates_test and //tools/ci:config_consistency_test are known main failures on files this PR does not touch. The tests this PR changes, //tools/ci:workflow_files_test, //tools/ci/producers:producers_bin_test and //tools/ci:actionlint_test, passed in this shard.


Generated by Claude Code

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Merge train: dropped, //tools/ci:host_program_test fails: tools/ci/producers/src/pr_check.rs spawn-by-name 1: 0 allowed; remove the new one (the new Command::new("git") in pr_check.rs). Passes on main and with this PR reverted from the train.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw4aq9a55MtjjUhEzN

host_program_test bans starting git by name, and the git diff path guard
was the set's only reason to. The set now always analyzes //android/...
for linux_arm64, which also catches breaks that come from outside
android/, core/platforms/ and cc/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copy link
Copy Markdown
Collaborator Author

Fixed in d4713fa. I removed the git diff path guard, so pr_check.rs no longer starts git and the allowlist is unchanged. The set now runs on every PR. //tools/ci:host_program_test passes along with workflow_files_test, producers_bin_test and actionlint_test. The branch merges cleanly with main 5312cc1. train is still set.


Generated by Claude Code

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Fixed: //tools/ci:host_program_test no longer sees a Command::new("git") in tools/ci/producers/src/pr_check.rs. d4713fa (pushed while this fix ran) drops the git diff path guard, so the android-linux-arm64 set analyzes //android/... for linux_arm64 on every PR. I merged origin/main into the branch. //tools/ci:host_program_test, //tools/ci:workflow_files_test, //tools/ci/producers:producers_bin_test and //tools/ci:actionlint_test pass locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw4aq9a55MtjjUhEzN

@TrapsterDK
TrapsterDK merged commit 51f252d into main Nov 21, 2026
4 of 5 checks passed
@TrapsterDK
TrapsterDK deleted the cloud/14438 branch November 21, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

train Tested; land via merge train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: analyze //android/... for linux_arm64 on PRs so the release cell does not find unskipped Android targets

2 participants