-
Notifications
You must be signed in to change notification settings - Fork 52
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] write test as single line via base64 #771
Conversation
What kind of errors is this guarding against? Invalid xml only? We should catch those specific exceptions then. |
src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/WasmTestMessagesProcessor.cs
Show resolved
Hide resolved
src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/WasmTestMessagesProcessor.cs
Outdated
Show resolved
Hide resolved
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.
Oops, forgot to submit!
src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/WasmTestMessagesProcessor.cs
Outdated
Show resolved
Hide resolved
ea57bf9
to
86f5abf
Compare
After the last observation I realized that
Therefore I made it really one line, which also simplified dealing with race condition (with lines from Chrome DevTools Protocol) on receiving side. |
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.
Were you able to reproduce the issue locally? And does this fix it?
We should probably come up with a better way of doing this. Can we read files from the VFS after the app exits, but the page is still open?
src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/WasmTestMessagesProcessor.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/WasmTestMessagesProcessor.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/WasmTestMessagesProcessor.cs
Show resolved
Hide resolved
src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/WasmTestMessagesProcessor.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.XHarness.TestRunners.Xunit/ThreadlessXunitTestRunner.cs
Outdated
Show resolved
Hide resolved
The results file for |
src/Microsoft.DotNet.XHarness.TestRunners.Xunit/ThreadlessXunitTestRunner.cs
Outdated
Show resolved
Hide resolved
I commented on 61854, I doubt it would help. I think that 16MB should be fine. The ugly part is that emscripten stdout will do If we get back to writing multiple lines, we need to prevent the race condition with lines from "chrome devtools protocol" by other means. My previous adding |
No, not yet. Were you ?
The shell JS like V8 doesn't have this issue as far as I could tell. For the browser, we could replace this with HTTP POST to xharness web server and save it there. |
I really like this HTTP idea. |
we could even write it back over a different web socket, if we want to avoid using HttpClient. |
src/Microsoft.DotNet.XHarness.TestRunners.Xunit/ThreadlessXunitTestRunner.cs
Outdated
Show resolved
Hide resolved
The problem is in how to get out of wasm into JS. In JS the http is the easy part. I would merge this one so that we could iterrate with testing in in CI and will create another PR exploring this idea. |
I would like to avoid using C# HttpClient because I don't want to force the DLL dependency on all users of |
I realized that we could combine multiple ideas. |
We could call a js function which would return the contents of the file from the VFS, or we could write that to some dom element, and read it from XHarness. We connect through selenium, so we can "talk" to the page. |
No description provided.