Skip to content

Add path-aware required native builds CI gate - #60396

Merged
cortinico merged 2 commits into
react:mainfrom
cortinico:codex/native-builds-required-gate
Dec 1, 2026
Merged

cortinico merged 2 commits into
react:mainfrom
cortinico:codex/native-builds-required-gate

Conversation

@cortinico

@cortinico cortinico commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Add an always-evaluated native_builds_gate check to Test All so branch protection can require a single result for the native builds. It requires build_android and the iOS RNTester Debug/Release matrix to succeed when their respective path filters select them; intentional platform skips pass, but skipped/failed required builds and a failed path-filter job fail the gate.

The native build jobs and their downstream dependencies are unchanged. After the new check is available, update main branch protection to require native_builds_gate (GitHub Actions) in place of build_android. This does not bypass GitHub's approval requirement for workflows from forks: an unapproved workflow still creates no jobs.

Changelog:

[INTERNAL] [ADDED] - Add a path-aware native build status gate for required CI checks

Test Plan:

  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/test-all.yml")' — passed.
  • git diff HEAD^ HEAD --check — passed.
  • Executed the gate's shell script locally with seven combinations: both platforms pass, iOS-only, Android-only, docs-only (pass); Android failure, iOS upstream failure/skipped, path-filter failure (fail as expected).
  • Full native CI was not run locally; the PR workflow will exercise the gate.

@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 30, 2026
@cortinico
cortinico marked this pull request as ready for review November 30, 2026 11:10
@github-actions

Copy link
Copy Markdown

Visual regression

1 visual difference(s) at fd8edec47c2e. Visual differences need maintainer approval. Review the report, then apply visual-change-approved.

ios touchable/feedback-events/pressed: Changed, 1620 px (0.285%)

diff

Expected and Captured
Expected Captured
expected captured

@cortinico
cortinico requested a review from huntie November 30, 2026 16:15
@cortinico

Copy link
Copy Markdown
Contributor Author

@huntie we're going to use this one as "required" job rather than build_android and test_ios_rntester as those jobs might be skipped

@huntie huntie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@cortinico
cortinico merged commit 91668b3 into react:main Dec 1, 2026
100 of 104 checks passed
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