-
Notifications
You must be signed in to change notification settings - Fork 5k
Zip async implementation follow-up: Fix failures in wasm and add extra tests #114798
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
Conversation
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.
Pull Request Overview
This PR addresses asynchronous failures on wasm platforms by removing synchronous calls in async tests and adding extra tests for zip archive entries. Key changes include:
- Replacing .Result with proper await calls to eliminate monitor wait issues on wasm.
- Removing the redundant PopulateStream method in favor of direct async file reading.
- Un-commenting and updating tests to correctly count WriteAsync calls.
Tagging subscribers to this area: @dotnet/area-system-io-compression |
…unt the Async write calls, not the sync ones, and add the rest of the async methods.
…ite and EndWrite.
ee92799
to
4e954e1
Compare
src/libraries/System.IO.Compression/tests/ZipArchive/zip_UpdateTests.cs
Outdated
Show resolved
Hide resolved
All the wasm legs passed. Can I please get a review and hopefully a sign-off? @adamsitnik I'm still working on improving the Fuzzing logic. I am preparing a separate followup PR that will capture only a few exceptions per your suggestion in my previous PR. |
Fixes #114769
Follow-up of #114421
Should revert #114801
Need to remove
.Result
from async tests in the zip_InvalidParametersAndStrangeFiles class, otherwise wasm throwsPlatformNotSupportedException - Cannot wait on monitors on this runtime
.I also uncommented tests that were not passing because they needed to count the WriteAsync methods, not the sync ones. They're now passing.
I also added the rest of the async versions of the newest tests added by @edwardneal .