-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix async ZipArchive calling non-async Stream methods #121938
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
|
What's wrong with #121633 ? If it's just about the comments already left there, where an existing test should be fixed, we should fix that in the existing PR rather than creating a new one. |
|
There are two related issues in #121624
Both issues shipped because of one buggy test, which I located after some analysis. The Copilot PR only fixes 1, and it's approach to fixing it is not correct. It's not going to figure out that the only purpose of As I said in my reply there, I was happy to contribute this as a replacement or let somebody convince Copilot to do it correctly, but I cannot do that myself (It can't see my review comments). There is another test failing because of the "possible breaking change" I mentioned, so I would like some guidance on what to do about it. I checked the API review video and there didn't seem to be any discussion about Edit: I'll just modify the test for now to see if CI catches anything else. I'm struggling to run full libraries tests locally |
|
I see why you suggest this is breaking - since any exception thrown from |
|
Added When you commit this breaking change:
Tagging @dotnet/compat for awareness of the breaking change. |
rzikm
left a comment
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.
Changes LGTM, should be good to go when ericstj's question above gets answered.
At least in the current ZipArchive API, no, unless .NET is simply passing a zip to another service (but needs the
Yes, especially as the method is already documented as throwing |
|
/ba-g Test failure is unrelated |
|
Thanks for the contribution! |
|
@ericstj Can we run your breaking change tool on this PR to generate the docs issue? |
|
Seems like it hit an issue https://github.com/dotnet/runtime/actions/runs/19819155489/job/56777239257. This might be the first PR that it's running on a trigger. Let me try it out locally to diagnose what went wrong. Update: yes, I broke this while refactoring. I'll add a comment with a local run of the script and submit a PR to the workflow. |
📋 Breaking Change Documentation RequiredCreate a breaking change issue with AI-generated content Generated by Breaking Change Documentation Tool - 2025-12-01 11:12:36 |
|
Created dotnet/docs#50254 |
As part of the cleanup in PR d27e210#diff-2ba828c15ad12c13f308f51998a4c9240d7c7325135ff7eaaff120e20dd61166L772 I tried to reduce the number of CLI calls when a PR number was specified. When doing so I didn't consolidate the JSON fields, nor did I update the source of the info later in the script. This addresses both problems. I've validated with local runs - example - #121938 (comment)
Fixes #121624
Supersedes #121633
Note: this could be classed as a breaking change, as an exception that was thrown on accessing
.Entriesis now thrown fromCreateAsync(although this is the approved API shape #1541 (comment)). TheZipArchive_InvalidEntryTableandZipFile_Open.InvalidFilesAsynctests have been updated to reflect this.