Repository navigation
Skip Meta import risk checks for exported Differential diffs - #60330
Merged
Merged
Conversation
cortinico
marked this pull request as ready for review
November 27, 2026 16:34
javache
approved these changes
Nov 27, 2026
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.
Summary:
Meta-exported Differential diffs have already gone through an internal review/import path. The Meta import risk workflow currently spends a model call and may add Meta Review Required to them, as happened on #60272.
Add a read-only preflight before the model job. It exempts PRs carrying the trusted meta-exported label, or PRs authored by a repository member with a Differential Revision: D line that exactly matches an export-D branch. The matching branch and member check keep an arbitrary PR-body claim from bypassing triage; this also handles exported PRs before meta-codesync applies its label. The classifier job is skipped entirely for exempt PRs. The label job rechecks current metadata and removes an already-applied Meta Review Required label on exported PRs. A PR-body edit also reruns preflight.
Changelog:
[INTERNAL] [CHANGED] - Exempt Meta-exported Differential diffs from Meta import risk triage and remove stale review labels.
Test Plan:
npx --yes jest@29.7.0 --config '{"transform":{},"testEnvironment":"node","testRegex":"isMetaExportedPullRequest-test.js$","modulePathIgnorePatterns":["/scripts/releases/__tests__/__fixtures__/"]}' --runInBand .github/workflow-scripts/__tests__/isMetaExportedPullRequest-test.js— 5 tests passed.npx --yes prettier@3.10.0 --check .github/workflows/meta-import-risk.yml .github/workflow-scripts/isMetaExportedPullRequest.js .github/workflow-scripts/__tests__/isMetaExportedPullRequest-test.js— passed.ruby -e "require 'yaml'; YAML.load_file('.github/workflows/meta-import-risk.yml'); puts 'YAML valid'"— passed.git diff --cached --check— passed before commit.disableSubviewClippingAndroidfeature flag (#60272) #60272 matches even with meta-exported omitted from its labels, while Document OkHttp 3 source compatibility in AGENTS.md #60320 does not match.