Skip to content

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

Merged
merged 7 commits into from
Apr 18, 2025

Conversation

carlossanlop
Copy link
Contributor

@carlossanlop carlossanlop commented Apr 17, 2025

Fixes #114769

Follow-up of #114421

Should revert #114801

Need to remove .Result from async tests in the zip_InvalidParametersAndStrangeFiles class, otherwise wasm throws PlatformNotSupportedException - 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 .

@carlossanlop carlossanlop self-assigned this Apr 17, 2025
@Copilot Copilot AI review requested due to automatic review settings April 17, 2025 19:16
Copy link
Contributor

@Copilot Copilot AI left a 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.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-io-compression
See info in area-owners.md if you want to be subscribed.

@carlossanlop
Copy link
Contributor Author

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.

@carlossanlop carlossanlop merged commit 1a51788 into dotnet:main Apr 18, 2025
79 of 85 checks passed
@carlossanlop carlossanlop deleted the ZipAsyncFollowup branch April 18, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exclude System.IO.Compression async tests from wasm
2 participants