-
Notifications
You must be signed in to change notification settings - Fork 25k
Run unit-tests on GHA #48499
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
base: main
Are you sure you want to change the base?
Run unit-tests on GHA #48499
Conversation
cipolleschi
left a comment
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.
Thanks for working on this. I see that the CI jobs are red, so this probably need some more work. If they are red because they depend on #48498, you can change the destination branch to be the other PR:
I also left a comment to reduce a bit the CI costs
.github/workflows/test-all.yml
Outdated
| jsengine: ${{ matrix.jsengine }} | ||
| architecture: ${{ matrix.architecture }} | ||
| run-unit-tests: "false" | ||
| run-unit-tests: true |
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.
the problem with this is that we will run unit tests on ALL the matrix configuration. This is a bit of an overkill and it will increase the costs of CI sensibly.
I believe it would be better to copy this job in the workflow and to run unit tests with the Hermes, New Architecture, Static Library configuration only. This should be enough.
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.
copy this job in the workflow
Instead of making a copy, I'd suggest adding this as a parameter to the matrix and use the include feature to run it only on the configurations you mentioned.
Would you be okay with keeping things simple for now and ☝️ to be a separate PR?
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.
can you move this to matrix in this pr?
This is not pretty complex, and adding a param to the matrix should not add a lot of noise.
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.
Hermes, New Architecture, Static Library configuration only
For both Debug and Release or just one of these?
I probably could, but then you'd be reviewing a PR in my fork. |
f4e45ed to
cc8efb9
Compare
|
I've rebased + force-pushed since the merge of #48498. |
|
This is output from the log of the "test_ios_rntester (Hermes, NewArch, Release)" job: |
.github/workflows/test-all.yml
Outdated
| jsengine: ${{ matrix.jsengine }} | ||
| architecture: ${{ matrix.architecture }} | ||
| run-unit-tests: "false" | ||
| run-unit-tests: true |
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.
can you move this to matrix in this pr?
This is not pretty complex, and adding a param to the matrix should not add a lot of noise.
|
if you rebase on main once again, the problem should be fixed. Unit tests needs an emulator to run and I changed the CI to build for any emulator as we want also the RNTester App to be downloadable for other reasons... |
cc8efb9 to
816c705
Compare
|
I've rebased and pushed with a commit adding |
|
test_ios_rntester (Hermes, NewArch, Release) is failing with an undefined symbols error while linking: |
|
Main is green... do you mind rebasing on top of it? |
816c705 to
7b32b83
Compare
|
I've rebased on latest |
|
The tests are failing now due to this change, introduced four days ago with #48755. I can also include that fix in this PR if you'd want me to? |
|
We are making several changes in this infrastructure, so I expect for some back and forth here. :( |
7b32b83 to
608016c
Compare
|
Closing as not relevant anymore |
|
@cortinico interesting, because the PR is outdated or the code is going away? I still don't see the unit tests being enabled in the test-all workflow on |
Ah you're right. I've overlooked this PR as I thought it was related to E2E tests (which we change significantly over the last months), while instead it's related to iOS unit tests, so we can reopen it. |
|
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Summary:
As suggested by this comment, #45133 inadvertently disabled unit tests on GHA and I believe these changes will re-enable running them.
To actually make those green again, I believe #48498 needs to merge first.
Changelog:
[INTERNAL] [FIXED] - Start running unit tests on GHA again.
Test Plan:
I'll await the GHA logs 🤞