-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
pkg/dds/test/dap/integration/dart_test_test
flaky -> RuntimeError on unittest-asserts-release-mac-arm64
#55453
Comments
It seems like there are errors in the output when the debug adapter tries to run
@bkonyi I'm not familiar with the file |
Ah, that's an artifact generated by pub when compiling the test runner. Maybe @sigurdm will have an idea as to what's going on? |
Looks like compiling the test runner produced no output file. Message is output from here: As to why that happens I have no clue. |
@bkonyi is there a way to see how often this is failing? (I'm curious if it was a one-off or happening a lot, and whether it's only on Mac ARM or not?) |
This particular instance appears to be failing on an ARM Mac, but we've seen a lot of failures on other configurations as well. |
Also FYI @athomas. Do we sign the bleeding edge |
Hi all, I ran into a similar issue (#55639) on Ubuntu server. Is there any fix or workaround for this yet? Thanks :) |
@sigurdm is this possibly related to dart-lang/pub#4161 (comment)? |
Could be.... Are we running things in parallel here? |
test.py runs tests in parallel, yes. So if multiple tests use pub, they might be running pub in parallel. |
Removing my assignment as I don't think this is something in DAP that I can fix (from the comments above, it either sounds like a concurrency issue or an issue with Let me know if you think there is something I can do to fix this though. |
Oh, I just noticed that dart-lang/pub#4161 was closed (as fixed by dart-lang/pub#4170), so can it be the cause here? |
Not that bug exactly. But I'm still not 100% confident that we have weeded out all problems with running |
Ah, gotcha. @athomas is there a way to make these DAP tests run sequentially to see if that affects the results here? |
The test runner just runs the main function, so it'd be possible to put them all in one file and ensure that the tests run one after the other. But if that "test of tests" gets too big you'll hit timeout issues. Maybe there are other ways to ensure the tests can run in parallel instead? |
To be clear - I don't think making the tests run sequentially is a real fix (because if the underlying issue is that running But now you've said that, I'm wondering if this can be caused by concurrency at all - only the tests in (I am also still curious about #55453 (comment) above - are we certain that's not related - it was odd that I got exactly the same message running exactly the same test when I used a bleeding-edge build on a Mac, and this seemed to have been a recent development that I needed to tell macOS to allow that binary). |
Yes, other test files could run concurrently. |
The strange thing about the macOS stuff is that it's claiming chrome downloaded the binary. I'm wondering what |
Yeah, I downloaded the SDK from https://gsdview.appspot.com/dart-archive/channels/main/raw/latest/sdk/ (I tend to just grab these builds to work on the analysis server to avoid having to build the SDK myself frequently). I don't know much about macOS security so I wasn't sure if a locally built version might trigger the same warning.. It's possibly completely unrelated, it just seemed odd I triggered the exact same error on the same test. One way to verify if it's at all related could be to add a test that just runs |
If you download an unsigned build ( You could download signed dev releases instead, they are probably current enough for your purposes (sorry, no latest, you'd need to check the dev branch for the HEAD hash): |
It's no problem for me approving the unsigned version, I only brought it up because it resulted in the same error so I wondered if the issue here might be something similar (eg. macOS blocking it for some reason). If these security restrictions only apply to downloaded binaries, then sounds like it probably was just a coincidence. |
Happened once again:
|
That error is thrown here: And I guess the SocketException: Write failed (OS Error: Broken pipe, errno = 32), port = Given the code, I'm not sure if this is DAP-related, or something is just going wrong with the execution of Do you have any idea how often it fails and whether it's only the ARM bot? (I presume there are other |
The tests
are failing on configurations
Logs.
The text was updated successfully, but these errors were encountered: