-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[wasm] Wasm.Build.Tests - fixes for tests failing on CI #70704
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'arch-wasm': @lewing Issue Details… exiting This is adding the fix from c361857 to When the results xml is large, and we are writing the base64 This can be seen in the case of So, wait for the two streams to be flushed out, with a timeout of 3secs.
|
We will need to update this PR after #70746 |
b540827
to
64e316a
Compare
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
… exiting When the results xml is large, and we are writing the base64 representation in one line, `node` can exit before all the output gets flushed out. This results in xharness getting an incomplete `STARTRESULTXML <len> <base64> ... ` with missing `ENDRESULTXML`, thus no `testResults.xml` is generated. This can be seen in the case of `Microsoft.Extensions.Primitives.Tests` which has xml ~140KB, and `System.Memory.Tests` which has a xml ~13MB. So, wait for the two streams to be flushed out, with a timeout of 3secs.
- Fix to call `WaitForExit()` once `WaitForExit(int)` returns, which ensures that all the async handlers have been run. - Also, for non-browser xharness runs use the emitted `wasm-console.log` as the output, so we don't depend on xharness' stdout.
…are covered in library tests
284b1bb
to
43d6be7
Compare
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
Copy sdk for testing workloads only on CI.
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
this has a timeout right now for flushing the streams, but maybe that should be removed? |
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.
This looks fine to me other than the bits of feedback I provided, changes not mandatory
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
…es, IOW, user apps
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
Chrome debugger test failure is intermittent, and unrelated. |
xharness
wasm-console.log
, for non-browser caseswasm-console.log
Fixes #70675