Skip to content

Conversation

@cipolleschi
Copy link
Contributor

@cipolleschi cipolleschi commented May 7, 2025

Summary:

test-js jobs are failing because the codegen snapshot tests generates a Podspecs withan hardcoded version that does not matches the version we are about to release.

This fix updates the script that set the RN version to make sure it also updates the Codegen snapshots.

This change also fixes the currently broken snapshots.

Changelog:

[Internal] - Fix set-rn-version script to update codegen snapshots

Test Plan:

Tested locally by

node scripts/release/set-rn-version --built-type release --to-version 0.80.0-rc.0

And verifying that only the snapshot got updated.

Tested that the jest test were passing by running

yarn test generate-artifacts-executor-test

@facebook-github-bot facebook-github-bot added 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 labels May 7, 2025
@cipolleschi cipolleschi changed the title cipolleschi/fix set rn version [RN][Release] Fix set-rn-version to account for codegen snapshot test files May 7, 2025
@cipolleschi cipolleschi changed the base branch from main to 0.80-stable May 7, 2025 12:25
@cipolleschi cipolleschi marked this pull request as ready for review May 7, 2025 12:28
@cipolleschi cipolleschi force-pushed the cipolleschi/fix-set-rn-version branch 2 times, most recently from 4881cdb to e4d21f2 Compare May 7, 2025 12:38
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request May 7, 2025
Summary:
test-js jobs are failing because the codegen snapshot tests generates a Podspecs withan hardcoded version that does not matches the version we are about to release.

This fix updates the script that set the RN version to make sure it also updates the Codegen snapshots.

This is a porting to `main` of [this PR](facebook#51156).

## Changelog:
[Internal] - Fix set-rn-version to account for codegen snapshot test files

Differential Revision: D74321590
@cipolleschi cipolleschi force-pushed the cipolleschi/fix-set-rn-version branch 3 times, most recently from 225f9e9 to e9e90f8 Compare May 7, 2025 12:54
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request May 7, 2025
…ok#51157)

Summary:

test-js jobs are failing because the codegen snapshot tests generates a Podspecs withan hardcoded version that does not matches the version we are about to release.

This fix updates the script that set the RN version to make sure it also updates the Codegen snapshots.

This is a porting to `main` of [this PR](facebook#51156).

## Changelog:
[Internal] - Fix set-rn-version to account for codegen snapshot test files

Reviewed By: fabriziocucci, cortinico

Differential Revision: D74321590
@cipolleschi cipolleschi force-pushed the cipolleschi/fix-set-rn-version branch from e9e90f8 to 91e7251 Compare May 7, 2025 13:12
facebook-github-bot pushed a commit that referenced this pull request May 7, 2025
Summary:
Pull Request resolved: #51157

test-js jobs are failing because the codegen snapshot tests generates a Podspecs withan hardcoded version that does not matches the version we are about to release.

This fix updates the script that set the RN version to make sure it also updates the Codegen snapshots.

This is a porting to `main` of [this PR](#51156).

## Changelog:
[Internal] - Fix set-rn-version to account for codegen snapshot test files

Reviewed By: fabriziocucci, cortinico

Differential Revision: D74321590

fbshipit-source-id: 6837e60a0a2834030680f7ec0c7584bf2622f33e
@hezi hezi merged commit 79e2298 into 0.80-stable May 12, 2025
81 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 Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants