Skip to content

[XABT] remove $(_AndroidUseLibZipSharp)=true default value - #9840

Merged
jonathanpeppers merged 1 commit into
mainfrom
dev/peppers/_AndroidUseLibZipSharp
Apr 17, 2025
Merged

[XABT] remove $(_AndroidUseLibZipSharp)=true default value#9840
jonathanpeppers merged 1 commit into
mainfrom
dev/peppers/_AndroidUseLibZipSharp

Conversation

@jonathanpeppers

@jonathanpeppersjonathanpeppers commented Feb 25, 2025

Copy link
Copy Markdown
Member

Context: dotnet/runtime#112017
Context: dotnet/runtime#113306

In .NET 10 Preview 1, when using System.IO.Compression to create .apk files, zipalign was giving the error:

01-30 21:38:27.669 38611 159726 W zip : WARNING: header mismatch

To workaround, we temporarily set $(_AndroidUseLibZipSharp)=true.

We think this is fixed now, so partially revert f3ef4fe.

@jonathanpeppers

Copy link
Copy Markdown
MemberAuthor

I believe this has a new issue now:

Context: dotnet/runtime#112017
In .NET 10 Preview 1, when using System.IO.Compression to create
`.apk` files, `zipalign` was giving the error:
01-30 21:38:27.669 38611 159726 W zip : WARNING: header mismatch
To workaround, we temporarily set `$(_AndroidUseLibZipSharp)=true`.
We think this is fixed now, so partially revert f3ef4fe.
@jonathanpeppers
jonathanpeppersforce-pushed the dev/peppers/_AndroidUseLibZipSharp branch from b71bce5 to ac295a0CompareApril 17, 2025 15:34
@carlossanlop

carlossanlop commented Apr 17, 2025

Copy link
Copy Markdown

Update: We're hoping this will be resolved with the latest fixes:

We also added async support if you have a chance to test it:

@jonathanpeppers

jonathanpeppers commented Apr 17, 2025

Copy link
Copy Markdown
MemberAuthor

So far this looks good, the MSBuild tests build many projects using System.IO.Compression.ZipArchive.

I restarted a few of the lanes that the Android emulator timed out.

@jonathanpeppers
jonathanpeppers marked this pull request as ready for review April 17, 2025 20:00

@jpobstjpobst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳 Yay! Thank you everyone for helping us ship this performance win for our users!

@jonathanpeppers

Copy link
Copy Markdown
MemberAuthor

The test lanes I reran are now failing due to something with AzDO downloading secrets:

##[error] developer-id-installer: "getaddrinfo ENOTFOUND xamarin-releng.vault.azure.net"

I think this is safe to merge, because 100s of tests were failing when this wasn't working. We can revisit if something comes up.

@jonathanpeppers
jonathanpeppers merged commit 1be3e2a into mainApr 17, 2025
@jonathanpeppers
jonathanpeppers deleted the dev/peppers/_AndroidUseLibZipSharp branch April 17, 2025 21:01
@github-actionsgithub-actionsBot locked and limited conversation to collaborators May 18, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@jonathanpeppers@carlossanlop@jpobst