-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Investigate flaky test-vm-timeout-rethrow on Windows #11261
Comments
I did some investigation for this test case and it looks like some timing issue is causing it. In repro case, For repro case, here Repro: Updating due_time. loop_time : 1724132451, timeout : 1, due : 1724132452.
Updated loop->time to 1724132451 at 499.
starting timer : due : 1724132452, loop_time : 1724132451, diff = 18446744073709 <-- This is condition fails and timer is skipped
calling uv_process_reqs.
Updated loop->time to 1724132452 at 441.
Updated loop->time to 1724132452 at 499.
starting timer : due : 1724132452, loop_time : 1724132452, diff = 0.
running timer : due : 1724132452, loop_time : 1724132452, diff = 0.
******TIMER called******
calling uv_process_reqs.
Updated loop->time to 1724132452 at 499.
calling uv_process_reqs.
Updated loop->time to 1724132454 at 494.
Updated loop->time to 1724132454 at 494.
Updated loop->time to 1724132459 at 499.
calling uv_process_reqs.
Updated loop->time to 1724132459 at 499.
calling uv_process_reqs.
got Exception : false == true
Updated loop->time to 1724132611 at 499.
calling uv_process_reqs.
Updated loop->time to 1724132611 at 499.
calling uv_process_reqs. No-Repro Updating due_time. loop_time : 1724138355, timeout : 1, due : 1724138356.
Updated loop->time to 1724138356 at 499.
starting timer : due : 1724138356, loop_time : 1724138356, diff = 0.
running timer : due : 1724138356, loop_time : 1724138356, diff = 0.
******TIMER called******
calling uv_process_reqs.
Updated loop->time to 1724138356 at 499.
calling uv_process_reqs.
Updated loop->time to 1724138356 at 441.
Updated loop->time to 1724138356 at 499.
calling uv_process_reqs.
Updated loop->time to 1724138491 at 499.
calling uv_process_reqs.
Updated loop->time to 1724138492 at 499.
calling uv_process_reqs. I am wondering why would this be windows specific issue. Did we see similar issue in the past? Since when this test started failing? |
I'm not sure how long it's been happening, I just happened to notice it that time and didn't find a pre-existing issue filed about it. I don't know if Jenkins has an easy way to see the history of successes/failures of individual tests. Perhaps @nodejs/build knows the answer to this? |
@mscdex you can look at the individual tap result and then click Also in the case where the tests mostly pass, you can just check the Red blobs |
The earliest i can go is till run# 6435 which was triggered on Feb 8th. @joaocgreis , do you know if there is an easier way to check the history of a unit test in Jenkins? |
There is no easy way to check the history of a test in CI. cc @nodejs/testing |
The intention of test case is to make sure that `timeout` property is honored and the code in context terminates and throws correct exception. However in test case, the code inside context would complete before `timeout` for windows and would sometimes fail. Updated the code so it guarantee to not complete execution until timeout is triggered. Fixes: nodejs#11261
The intention of test case is to make sure that `timeout` property is honored and the code in context terminates and throws correct exception. However in test case, the code inside context would complete before `timeout` for windows and would sometimes fail. Updated the code so it guarantee to not complete execution until timeout is triggered. Fixes: nodejs#11261 PR-URL: nodejs#11530 Reviewed-By: James M Snell <jasnell.gmail.com> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Josh Gavant <[email protected]>
The intention of test case is to make sure that `timeout` property is honored and the code in context terminates and throws correct exception. However in test case, the code inside context would complete before `timeout` for windows and would sometimes fail. Updated the code so it guarantee to not complete execution until timeout is triggered. Fixes: #11261 PR-URL: #11530 Reviewed-By: James M Snell <jasnell.gmail.com> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Josh Gavant <[email protected]>
The intention of test case is to make sure that `timeout` property is honored and the code in context terminates and throws correct exception. However in test case, the code inside context would complete before `timeout` for windows and would sometimes fail. Updated the code so it guarantee to not complete execution until timeout is triggered. Fixes: #11261 PR-URL: #11530 Reviewed-By: James M Snell <jasnell.gmail.com> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Josh Gavant <[email protected]>
The intention of test case is to make sure that `timeout` property is honored and the code in context terminates and throws correct exception. However in test case, the code inside context would complete before `timeout` for windows and would sometimes fail. Updated the code so it guarantee to not complete execution until timeout is triggered. Fixes: #11261 PR-URL: #11530 Reviewed-By: James M Snell <jasnell.gmail.com> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Josh Gavant <[email protected]>
The intention of test case is to make sure that `timeout` property is honored and the code in context terminates and throws correct exception. However in test case, the code inside context would complete before `timeout` for windows and would sometimes fail. Updated the code so it guarantee to not complete execution until timeout is triggered. Fixes: #11261 PR-URL: #11530 Reviewed-By: James M Snell <jasnell.gmail.com> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Josh Gavant <[email protected]>
Example: https://ci.nodejs.org/job/node-test-binary-windows/6447/RUN_SUBSET=3,VS_VERSION=vs2015,label=win2012r2/console
The text was updated successfully, but these errors were encountered: