-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Chore: Upgrade Detox to 16.7.2 #30084
Conversation
Looks like some CI jobs are failing, but not at the tests step. The task failing is "Report size of RNTester.app" (which is a task after the actual testing so per se the detox bump is fine), with the error:
Not sure how to fix it 😅 |
It would be great to get some input on what versions work best from people that actually use Detox (and RN), which isn’t me; do you? |
I've used Detox extensively in the first half of the year, and tbh the mindset is always to stay as close as possible to latest release because of the amount of fixes they put into each version. That said, I think it's slightly out of scope for the purpose of this PR which is literally to just get rid of the problem I detailed above. We could probably open a "good first issue" for folks to go over the detox testing and improve it, in the spirit of Hacktoberfest. |
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.
Yeah that sounds good to me 👍
Just hit this issue trying to yarn install the repo. This shouldn't affect people actually using detox in their app since it is only the version used for our tests. |
cc @hramos |
Can you try re-running the builds? The other PRs seems to be passing this step. Tom and I hit this issue today. Would be great to get this in. |
@tido64 rerunning 🤞 |
Base commit: d8b0e9d |
Base commit: d8b0e9d |
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.
@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request was successfully merged by @kelset in fb14fd4. When will my fix make it into a release? | Upcoming Releases |
Summary
With Xcode 12 being the latest, Detox 15.x has issues - in particular, it means that if you try to
yarn install
the dependencies for the repo, you'll be greeted by this error:With the 👍 of @hramos & @alloy I've prep'd up a small defensive PR that can be quickly merged before cutting 0.64, that bumps the version of Detox from 15.4.4 to the highest version available within the reach of "no breaking changes" in changelog.
The main reason why with 16.x this error doesn't happen is that from 16.0.0:
It would have been better to update directly to latest (at the time of writing 17.7.1) but there are at least two versions that had changelogs that seem to involve bigger changes:
Hopefully CI will will show that the bump doesn't break any test 🤞
Changelog
[Internal] [Changed] - Bumped Detox in the repo to 16.7.2 for Xcode 12 compatibility
Test Plan
Running yarn in the main repo with Node 14 & Xcode 12, without this change, will cause the error copy-pasted above. After upgrading to this version, the error disappear.