ci: consolidate android-omnibus deployments on external PRs - #3447
Merged
Conversation
jakemas
approved these changes
Aug 24, 2026
Contributor
|
🔒 Security Review — View Report Please review before merging. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3447 +/- ##
==========================================
+ Coverage 78.02% 78.18% +0.16%
==========================================
Files 699 699
Lines 124589 124592 +3
Branches 17286 17290 +4
==========================================
+ Hits 97209 97418 +209
+ Misses 26512 26304 -208
- Partials 868 870 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
prasden
enabled auto-merge (squash)
August 25, 2026 03:22
justsmth
approved these changes
Aug 25, 2026
Comment on lines
+37
to
+38
| # It waits until a maintainer approves, so its token sits idle in the runner during that window. | ||
| # Empty permissions strip that token to zero scopes, so the waiting job can never touch AWS or the repo. |
Contributor
There was a problem hiding this comment.
Nit: This is not accurate:
Suggested change
| # It waits until a maintainer approves, so its token sits idle in the runner during that window. | |
| # Empty permissions strip that token to zero scopes, so the waiting job can never touch AWS or the repo. | |
| # the environment's required reviewers must approve before it -- and | |
| # therefore device-farm -- can start. It runs none of its own code, so | |
| # drop the inherited id-token/contents scopes. |
| name: android-${{ matrix.fips && 'fips-' || '' }}${{ matrix.release && 'release' || 'debug' }}-${{ matrix.shared && 'shared' || 'static' }} | ||
| needs: [authorization-check] | ||
| environment: ${{ needs.authorization-check.outputs.approval-env == 'manual-approval' && 'manual-approval' || '' }} | ||
| needs: [authorization-check, maintainer-approval] |
Contributor
There was a problem hiding this comment.
Nit: Add comment:
Suggested change
| needs: [authorization-check, maintainer-approval] | |
| # SECURITY: maintainer-approval carries the manual-approval environment | |
| # gate. Do not remove it from needs -- it is the only thing keeping | |
| # untrusted fork code from being checked out with AWS credentials in scope | |
| # on external PRs. Any new job in this workflow that checks out fork code | |
| # must depend on maintainer-approval as well. | |
| needs: [authorization-check, maintainer-approval] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context and motivation
Addendum to ci: stop deployment noise for maintainers #3445
Looking at Define AT_HWCAP* when <sys/auxv.h> hides them #3429 from an external contributor, there still remains "deployment" noise as
android-omnibusruns itsdevice-farmjob as a 6-way build matrix, and each matrix job references anenvironmentdirectly.GitHub creates a deployment object per job that references an
environment, so those six jobs produce six deployment objects that show up on the PR timeline UI. This gets noisy on PRs from external contributors.Description of changes
This PR moves the
environmentreference outside of the matrix and into a newmaintainer-approvaljob. Theenvironmentis declared once and used across jobs.On external contributor PRs, this will cut down the deployments on PRs from 7 to 2 per commit:
android-omnibus+ 1 forsecurity-reviewExternal contributors will still need approval for any workflows to run on their PRs , and
device-farmis gated behind the newmaintainer-approvalcheck.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.