-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(script): handle patch versions after the .0 for set version #36020
Conversation
I think there are failing tests that are related to this change, e.g. https://app.circleci.com/pipelines/github/facebook/react-native/19246/workflows/8c6b4a43-0304-4bd6-9069-1747e5b18242/jobs/429271/parallel-runs/0/steps/0-107
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comment above, it looks like it breaks the tests.
As @rshest said, you need to update also the tests to take into account this possibility. Also, why do we want to support prerelease like |
hey @cipolleschi / @rshest - thanks for your feedback, apologises for not running yarn test locally before opening the PR (I usually don't do it because it's way more local errors then when running on CI). So, for the tests that are broken - there's a long and short version. The short version is that I removed them because they were "blocking" completely valid scenarios. The long story is this:
And because of all the above, basically, the correct thing to do to me was to simply remove these tests - 'cause the only way I could think of "inverting" them would turn them into basically redundant tests (verifying that all the parts are parsed correctly, that's already tested) if there's some variation of the tests that you'd like me to add instead do let me know, happy to change |
Base commit: bf34810 |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cipolleschi merged this pull request in 7adf6b1. |
…book#36020) Summary: A small backport to main of a local fix done in 0.71 to account for the logic for releases 0.Y.1,2,3-prerelease (meaning, not just strictly 0). I could have done like the other logics and just remove the check for patch, but decided to at least make sure it's a digit 😅 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [INTERNAL] [FIXED] - handle patch versions after the .0 for set version Pull Request resolved: facebook#36020 Test Plan: Tested in 0.71-stable, without it we can't test RNTestProject. Reviewed By: jacdebug, cortinico Differential Revision: D42924375 Pulled By: cipolleschi fbshipit-source-id: b003d884cc45a2602adbc14fa8b66d3f1e0c94a6
Summary
A small backport to main of a local fix done in 0.71 to account for the logic for releases 0.Y.1,2,3-prerelease (meaning, not just strictly 0).
I could have done like the other logics and just remove the check for patch, but decided to at least make sure it's a digit 😅
Changelog
[INTERNAL] [FIXED] - handle patch versions after the .0 for set version
Test Plan
Tested in 0.71-stable, without it we can't test RNTestProject.