Skip to content

Add CI workflow for validating C++ API snapshot (#56042)#56042

Open
coado wants to merge 2 commits intofacebook:mainfrom
coado:export-D95963515
Open

Add CI workflow for validating C++ API snapshot (#56042)#56042
coado wants to merge 2 commits intofacebook:mainfrom
coado:export-D95963515

Conversation

@coado
Copy link
Contributor

@coado coado commented Mar 10, 2026

Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D95963515

@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 Mar 10, 2026
@facebook-github-bot facebook-github-bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Mar 10, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 10, 2026

@coado has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95963515.

@coado coado force-pushed the export-D95963515 branch from 8cce19c to d65c81e Compare March 11, 2026 10:27
coado added a commit to coado/react-native that referenced this pull request Mar 11, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Differential Revision: D95963515
coado added a commit to coado/react-native that referenced this pull request Mar 11, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from d65c81e to 3c547c8 Compare March 11, 2026 10:33
coado added a commit to coado/react-native that referenced this pull request Mar 11, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 3c547c8 to 4233164 Compare March 11, 2026 11:32
coado added a commit to coado/react-native that referenced this pull request Mar 11, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 4233164 to 5d53fab Compare March 11, 2026 12:05
coado added a commit to coado/react-native that referenced this pull request Mar 11, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 5d53fab to 2e13828 Compare March 11, 2026 14:47
@meta-codesync meta-codesync bot changed the title Add CI workflow for validating C++ API snapshot Add CI workflow for validating C++ API snapshot (#56042) Mar 20, 2026
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 2e13828 to c0b092a Compare March 20, 2026 09:08
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from c0b092a to fe4669c Compare March 20, 2026 09:14
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from fe4669c to 3cb5693 Compare March 20, 2026 09:23
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:
Pull Request resolved: facebook#56042

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 3cb5693 to 8a61577 Compare March 20, 2026 09:27
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 8a61577 to b456b1d Compare March 20, 2026 09:59
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:
Pull Request resolved: facebook#56042

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from b456b1d to f8eb310 Compare March 20, 2026 10:04
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from f8eb310 to 936b2af Compare March 20, 2026 11:15
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 936b2af to 8134dad Compare March 20, 2026 11:33
coado added a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
coado pushed a commit to coado/react-native that referenced this pull request Mar 20, 2026
Summary:
Pull Request resolved: facebook#56042

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@coado coado force-pushed the export-D95963515 branch from 8134dad to 41680b6 Compare March 25, 2026 13:39
coado added a commit to coado/react-native that referenced this pull request Mar 25, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D95963515
coado added a commit to coado/react-native that referenced this pull request Mar 25, 2026
Summary:
Pull Request resolved: facebook#56042

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 41680b6 to 73d3833 Compare March 25, 2026 13:42
coado added a commit to coado/react-native that referenced this pull request Mar 25, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 73d3833 to ec6887e Compare March 25, 2026 13:42
coado added a commit to coado/react-native that referenced this pull request Mar 25, 2026
Summary:
Pull Request resolved: facebook#56042

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from ec6887e to 953db8a Compare March 25, 2026 13:46
coado added 2 commits March 25, 2026 07:36
Summary:

## Summary

Introduces initial snapshots of the React Native C++ public API. These snapshots capture the public-facing C++ API surface as `.api` files, enabling tracking of API changes across diffs.

Six snapshot files are generated, covering three targets in two build variants each:

| Target | Debug | Release |
|---|---|---|
| **ReactCommon** (shared) | `ReactCommonDebugCxx.api` | `ReactCommonReleaseCxx.api` |
| **ReactAndroid** | `ReactAndroidDebugCxx.api` | `ReactAndroidReleaseCxx.api` |
| **ReactApple** | `ReactAppleDebugCxx.api` | `ReactAppleReleaseCxx.api` |

Debug and Release variants differ in preprocessor definitions (e.g., `DEBUG`/`REACT_NATIVE_DEBUG` vs `NDEBUG`/`REACT_NATIVE_PRODUCTION`), which can affect conditional compilation and the resulting public API surface.

The snapshots are generated by the `scripts/cxx-api` tool, which runs Doxygen on the C++ headers and codegen output, then produces a normalized text representation of all public types, functions, enums, and class hierarchies.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D97296573
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D95963515
@coado coado force-pushed the export-D95963515 branch from 953db8a to b1ea03a Compare March 25, 2026 14:36
coado added a commit to coado/react-native that referenced this pull request Mar 25, 2026
Summary:

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D95963515
coado pushed a commit to coado/react-native that referenced this pull request Mar 25, 2026
Summary:
Pull Request resolved: facebook#56042

Adds CI workflow for validating whether the current C++ API snapshot is equivalent with the generated one.

Changelog:
[Internal]

Differential Revision: D95963515
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. fb-exported meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants