You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for similar issues before opening a new one.
Description
Sometimes when running npm run test locally, I see failures in connection_checker_test.js. I found this while investigating #8676 and it occurs to me that it could be environment specific.
The specific tests failing are:
Connection checker Dragging Checks Stacks Do not splice into unmovable stack (about 3% flaky): test link.
Connection checker Dragging Checks Stacks Connect to bottom of unmovable stack (about 14% flaky): test link.
Reproduction steps
Run tests locally several times.
Observe that two specific tests seem to fail at a fairly high rate.
Some techniques that I find helpful:
Run the tests in headless mode (seems to be better performance, and I'm developing over a remote shell): CI=true npm run test.
Comment out all but mocha from tasks in scripts/gulpfiles/test_tasks.js (so that only Mocha tests run).
Replace the top-level suite call with suite.only in tests/mocha/connection_checker_test.js (so that only this suite runs).
The failure for the 'Connection checker Dragging Checks Stacks Connect to bottom of unmovable stack' test was:
"Connection checker Dragging Checks Stacks Connect to bottom of unmovable stack" failed: Should connect below an unmovable stack block: expected false to be true
I didn't collect the stack trace of the other test failure.
Screenshots
N/A since this is a test assertion flake.
Browsers
No response
The text was updated successfully, but these errors were encountered:
Note that I just ran the entire Mocha test suite 100 times and these two tests were the only ones flaky for me (the most recent run showed the 'do not splice' test as 8% flaky and the 'connect to bottom of unmovable stack' test as 11% flaky).
I also did a run of just those two flaky tests in isolation over 1000 runs to get a better estimate of flakiness. Over 1000 runs:
9.3% flaky: Connection checker Dragging Checks Stacks Connect to bottom of unmovable stack
9.2% flaky: Connection checker Dragging Checks Stacks Do not splice into unmovable stack
Check for duplicates
Description
Sometimes when running
npm run test
locally, I see failures inconnection_checker_test.js
. I found this while investigating #8676 and it occurs to me that it could be environment specific.The specific tests failing are:
Reproduction steps
Some techniques that I find helpful:
CI=true npm run test
.mocha
fromtasks
inscripts/gulpfiles/test_tasks.js
(so that only Mocha tests run).suite
call withsuite.only
intests/mocha/connection_checker_test.js
(so that only this suite runs).Stack trace
The failure for the 'Connection checker Dragging Checks Stacks Connect to bottom of unmovable stack' test was:
I didn't collect the stack trace of the other test failure.
Screenshots
N/A since this is a test assertion flake.
Browsers
No response
The text was updated successfully, but these errors were encountered: