-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Bug]: DemoDebug Local test failed #1242
Comments
Are You a Windows OS User?
So, the local screenshot tests would fail on Windows OS. I am not sure of the exact cause of the problem with the DataStore, but I have encountered the same error, too. |
Yes, I'm use a Windows OS. |
I think it would be correct to express that Roborazzi does not support Windows OS, but rather Robolectric NATIVE GraphicsMode does not support Windows OS! |
Yes, I agree with that.
I checked that word from yours link. |
The issue with Roborazzi and DataStore are two different issue. |
From your Issues and relative links, I finally landed this page. |
|
@SimonMarquis I recently tried to use Roborazzi in my app but it get stucked 😅 when I ran it on my machine. Maybe Roborazzi needs to update too or I'm the only one experiencing this. - Windows 10 |
Unfortunately there still seems to be issues with windows runners...
|
I was unable to reproduce this issue in roborazzi repository. @hoisie |
Just to be clear, this was a typo, and should read 4.12 release. Windows seems to be a lot more protective of files that have been opened in native code. For instance, unlike in Mac and Linux, it's not possible to delete the temp native runtime DLL file in the same process where it was opened. We are seeing something similar with font files too. This is why we have extra cleanup logic for Windows. |
I am not sure that the
This deletion logic occurs in a shutdown hook, so it would run after all tests are complete. I think we should completely remove these error messages on Windows, because they will cause a lot of noise and confusion. I think that the tests are failing due to other reasons. |
You are probably right. I can't test it further since I don't have my Windows machine with me, but the errors seem to come from other IO Exceptions.
|
https://github.com/robolectric/robolectric/releases/tag/robolectric-4.12.1 was just released which should reduce the amount of log noise in Windows (though it won't fix the underlying cause of this issue). RE comparing screenshots across platforms (i.e. Linux / Mac / Linux): |
Could this be an issue related to Looper/Dispatcher that would not behave exactly the same? There are some state setup in Lines 125 to 132 in 88c3eb0
|
@Jaehwa-Noh a fix has been implemented in #1542 for your initial bug report, can you check if the fix works for you as well? |
This might also fix the secondary issue, let us know. |
Okay I'll test it as soon as possible. |
@SimonMarquis |
Change-Id: I5b2c2ec315b8c5fadff0b0b33e5cd51603c1e30a
@Jaehwa-Noh do you still reproduce this issue? If that is the case, you can close the issue. |
Done. Thank you. |
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
Run local tests on DemoDebug variant: ./gradlew testDemoDebug
has failed test on the barely fork the repository.
I entered the command in the Execute Gradle Task on android studio.
But the test does not success, see below.
Any thing I missed? or is this already known issue?
Relevant logcat output
Code of Conduct
The text was updated successfully, but these errors were encountered: