-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Tool] Fix failing UI tests on GitHub Action runners #305
Comments
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
Idea of @ludovic35: check the l10n of the views in the used simulators. Maybe the simulator is not in the same locale as our, and the rendring of the view with the displayed token text are not the same. |
Some details after investigations:
Note the branch (ci/305-fix-UI-tests-failure-on-GitHub-Actions) has an interesting commit (7e8f7c7) freezing the Xcode version to exactly 16 with a new Xcode manager. Can be cherry-picked. |
So, an issue has been created in swift-snapshot-testing GitHub project: pointfreeco/swift-snapshot-testing#932 The only difference I spot today is the architecture in use: GitHub Actions macos-15 runner is based on Apple Silicon, i.e. ARM-powered SoC and not our computers no internal runners with Intel-powered SoC. It could mean if we upgrade our ahrdware tests won't pass anymore. I recommend the following:
|
On hold until we got fix for this or any unblocking details from the lib team. |
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
FYI now we accept to have UI tests failing on GitHub Actions workflow. Of course dev team must run all the tests locally. Commit: b0c8bdd |
Tested first solution with references images generated through tests started with Fastlane. |
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
Description
Today we use swift-snapshot-testing to make assertions on UI rendering of views.
We have Fastlane running these tests and it work as expected.
We have our internal GitLab CI runner, running the same Fastlane lanes, and it works like expected.
However in GitHub Actions some tests do not pass, even if they pass with the other environment, without further details.
It seems the provided environment with GitHub runners is unstable making some test fail (even if they pass on our GitLab CI and local computers), e.g.
testAllTypographies*
,testAllSizes*
,testAllElevations*
don't pass in GitHub Actions level but pass in our internal levels.We do not know if there are hardware resources issues, shadow tomeouts or other configurations trobules witht he Mac runners or the in-use simulators.
Thus we will have checks failed for UI tests and must disable requirement son them to preven pull request to be merged.
This is a bit sad and we should find a workaround or a fix for this issue.
This is not mandatory as we plan to move the demo app, with the UI tests, in out internal GitLab software forge in the future.
But could be nice to have a fix befoire.
Details
Below are the outputs of our last job:
In attachments the logs.
logs_31306604165.zip
job-logs.txt
The text was updated successfully, but these errors were encountered: