Skip to content

Skip Meta import risk checks for exported Differential diffs - #60330

Merged
cortinico merged 1 commit into
react:mainfrom
cortinico:codex/skip-exported-meta-import
Nov 27, 2026
Merged

cortinico merged 1 commit into
react:mainfrom
cortinico:codex/skip-exported-meta-import

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

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.
  • Against live GitHub PR metadata, Remove disableSubviewClippingAndroid feature 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.
  • The workflow cannot run against its own PR because pull_request_target loads the base branch; verify the preflight/classifier/label jobs on a new exported PR event after merging.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 27, 2026
@github-actions github-actions Bot added the Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. label Nov 27, 2026
@cortinico cortinico removed the Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. label Nov 27, 2026
@cortinico
cortinico marked this pull request as ready for review November 27, 2026 16:34
@cortinico
cortinico merged commit 6407b5e into react:main Nov 27, 2026
102 of 106 checks passed
@cortinico
cortinico deleted the codex/skip-exported-meta-import branch November 27, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants