-
Notifications
You must be signed in to change notification settings - Fork 84
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
unexpected java_tests_mac failure #2136
Comments
The warning is unrelated, as far as I can tell. The problem is that the Might be easier to see here: |
Ah yep, thats my bad. Also that's a MUCH better dashboard. Looks like this is chrome test failures, @carloseltuerto can you take a look? |
When I looked at the GitHub page, it was initially all black until I scrolled all the way to the bottom, and the warning was the last visible thing before the black. |
This is the sequence:
This error is systematic - it is not flaky on Linux. Something has changed lately? This test has been working for weeks.
|
Ok, finally had some time to dig into this and I'm seeing pretty different behavior locally. Running bazel test --define=signal_trace=disabled //test/java/org/chromium/net:net_tests --runs_per_test=2 --local_test_jobs=1 seems to pass. I'll try a couple of hundred runs in parallel and see if I can reproduce. |
Alyssa, unfortunately, I have sent you on a goose chase. The final callback is being sent to the Java layer - I just did not recognise the log entry:
I am really sorry. This is a race condition in Cronvoy. |
cc: @alyssawilk @StefanoDuo |
At the end of a request, mRequestFinishedListener is used to post the CronetMetrics. Before doing so, two events must have occurred first: the "final user callback" and the "final Network callback". The Thread involved with the last of these two events is in charge of the posting the CronetMetrics - this is intrinsically racy. This PR ensures a proper behaviour. Description: Solves CI test flakiness: unexpected java_tests_mac failure: test/java/org/chromium/net:net_tests Risk Level: N/A (Cronet is still in development) Testing: CI, and local multi runs Docs Changes: N/A Release Notes: N/A Fixes #2136 Signed-off-by: Charles Le Borgne cleborgne@google.com Signed-off-by: Charles Le Borgne <cleborgne@google.com>
https://github.com/envoyproxy/envoy-mobile/runs/5744148090?check_suite_focus=true
WARNING: /Users/runner/work/envoy-mobile/envoy-mobile/test/common/jni/BUILD:17:10: in cc_binary rule //test/common/jni:libquic_test_server_jni.so: target '//test/common/jni:libquic_test_server_jni.so' depends on deprecated target '@local_jdk//:jni_header': Don't depend on targets in the JDK workspace; use @bazel_tools//tools/jdk:current_java_runtime instead (see bazelbuild/bazel#5594)
The text was updated successfully, but these errors were encountered: