-
Notifications
You must be signed in to change notification settings - Fork 6k
Conversation
On Linux when I run this with:
I consistently get the following failure:
cc @cyanglaz |
I didn't see the failure mentioned in #33603 (comment) But I saw:
Maybe another flaky tests that is surfaced by running parallel? |
@cyanglaz yeah, that's probably a different flaky test. To see the flaky shell test, maybe just comment out |
Weird. I commented out everything except For example i had something like:
But they weren't in the tests ran on CI. |
@cyanglaz It sounds like you might have commented out too much. Maybe you commented out https://github.com/flutter/engine/pull/33603/files#diff-521d7c59c3f721b259f094c760c2613e16e889b0f24702280924466109e3b0b0R235 ? |
Oh there were additional tests ran for mac, I commented those out now. logychris-macpro2:src ychris$ ./flutter/testing/run_tests.py --variant host_debug_unopt --type engine --engine-capture-core-dump --use-sanitizer-suppressions Running command "python3 /Users/ychris/flutter/engine/src/third_party/gtest-parallel/gtest-parallel /Users/ychris/flutter/engine/src/out/host_debug_unopt/shell_unittests --repeat=2" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Command run successfully in 2.67 seconds: python3 /Users/ychris/flutter/engine/src/third_party/gtest-parallel/gtest-parallel /Users/ychris/flutter/engine/src/out/host_debug_unopt/shell_unittests --repeat=2 Running command "python3 test.py" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Command run successfully in 0.25 seconds: python3 test.py |
Ah okay. I mean the failure seems to be pretty timing dependent, so getting it to trigger could very well require all the rest of the tests to be enabled as well (except for the other flaking ones). |
4b71425
to
0797a27
Compare
0797a27
to
cf78340
Compare
We can't land this just yet as there are multiple flakes revealed by this patch. Moving to WIP for now. |
dec63b2
to
4521833
Compare
if IsMac(): | ||
# flutter_desktop_darwin_unittests uses global state that isn't handled |
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.
I created an issue: flutter/flutter#104789 to track a potential work to make the tests avoid using global states. Maybe we can add a reference to the issue here?
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.
Done.
4521833
to
c51acc0
Compare
Linux Unopt is down to under 30 minutes from over 50 minutes after this =) |
Uses gtest-parallel to run gtest unit tests in parallel. Adds a dependence on https://chromium.googlesource.com/external/github.com/google/gtest-parallel/, and uses it in run_tests.py. This is a big speedup on my local machine with a lot of cores. It may be less helpful in CI where VMs might have fewer cores, but we'll see.