Try to resolve some flaky tests #23716
Open
+15
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
test browser64.test_offset_converter
original output for the test
Why unresponsive?
I don't know. Furthermore, I don't know what
wasmOffsetConverter
exactly is. But forcing temporal error in JS makes unresponsive.-> unresponsive. so, just set try catch on it
It gives log like this.
If some error was on JS, this change should give more hint to resolve flakiness.
test wasm64.test_pthread_wait64_notify
file
libeventloop.js
node
+wasm64
generated following error, output from Circle CI hereemscripten_set_timeout_loop()
sometimes call setTimeout with negative value.TimeoutNegativeWarning
, which warns that case.--disable-warning
option on 21.3.0 fortunately.To fix the problem, I changed
common.py
for every node>=23 calls in this PR.Does it really resolve flakiness?
For this kind of flakiness(throwing
TimeoutNegativeWarning
), yes.change
libeventloop.js
before merge this PR.run
wasm64.test_pthread_wait64_notify
I see the test fails, with following log
Apply this patch
Now, test works, with
setTimeout(tick, -1);
Possible alternative change
test_pthread_wait64_notify
@node_pthreads @no_wasm2js('https://github.com/WebAssembly/binaryen/issues/5991') def test_pthread_wait64_notify(self): + self.node_args += ['--disable-warning=TimeoutNegativeWarning'] self.do_run_in_out_file_test('atomic/test_wait64_notify.c')
libeventloop.js
-> It make bundle size bigger, even it has environment with browser, not only Node.Summary
browser64.test_offset_converter
? No.browser64.test_offset_converter
? Maybe?wasm64.test_pthread_wait64_notify
? Maybe? But, if every failed test was due toTimeoutNegativeWarning
, Yes.