Skip to content

[Xamarin.Build.Download] Prevent interactive 7-Zip extraction hangs#1506

Open
jonathanpeppers wants to merge 2 commits into
mainfrom
jonathanpeppers-fix-tgz-extraction-hang
Open

[Xamarin.Build.Download] Prevent interactive 7-Zip extraction hangs#1506
jonathanpeppers wants to merge 2 commits into
mainfrom
jonathanpeppers-fix-tgz-extraction-hang

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Changes

  • Pass 7-Zip's -y switch so extraction cannot wait indefinitely for overwrite confirmation.
  • Add regression coverage for non-interactive extraction arguments.
  • Bump Xamarin.Build.Download from 0.11.4 to 0.11.5.

Fixes #1047

Pass the documented -y switch so archive extraction cannot block waiting for overwrite confirmation, add regression coverage, and bump Xamarin.Build.Download to 0.11.5.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1d70ed1d-13b0-4ed9-b242-49fec179fa0f
Copilot AI review requested due to automatic review settings July 23, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the Xamarin.Build.Download MSBuild task to ensure 7-Zip extraction cannot block indefinitely waiting for interactive overwrite confirmation (fixing #1047), adds regression coverage, and bumps the package version for release.

Changes:

  • Add 7-Zip -y switch to force non-interactive extraction behavior on Windows.
  • Add a unit test asserting -y is included in the generated 7-Zip arguments.
  • Bump Xamarin.Build.Download package version to 0.11.5.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
util/Xamarin.Build.Download/source/Xamarin.Build.Download/XamarinDownloadArchives.cs Adds -y to 7-Zip extraction args to avoid interactive hangs.
util/Xamarin.Build.Download/source/Xamarin.Build.Download/Xamarin.Build.Download.csproj Bumps NuGet package version to 0.11.5.
util/Xamarin.Build.Download/source/Xamarin.Build.Download.Tests/Test.cs Adds regression test for non-interactive 7-Zip extraction arguments.

Keep the dummy executable in the per-test temporary directory and report a clear failure if the reflected helper cannot be found.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1d70ed1d-13b0-4ed9-b242-49fec179fa0f
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.

[Xamarin.Build.Download] Using 7z to extract .tgz files can cause the build task to hang forever.

2 participants