Skip to content

Normalize vendored zlib to upstream 1.2.11#1442

Merged
bmehta001 merged 6 commits into
microsoft:mainfrom
bmehta001:bhamehta/pablo-cg-zlib-1211
May 20, 2026
Merged

Normalize vendored zlib to upstream 1.2.11#1442
bmehta001 merged 6 commits into
microsoft:mainfrom
bmehta001:bhamehta/pablo-cg-zlib-1211

Conversation

@bmehta001
Copy link
Copy Markdown
Contributor

Summary

  • Remove the old SIMD/motley zlib patch files and restore the core zlib implementation files to upstream v1.2.11.
  • Update cgmanifest.json to reference the upstream zlib v1.2.11 commit.
  • Mark test/debug-only third-party registrations as development dependencies and update the OSS component docs to no longer claim Intel SIMD zlib optimizations.

This is intended as a follow-up into #1439 / user/pablo/cg so the CGManifest describes a standard zlib snapshot instead of the old patched tree.

Validation

  • MSBuild.exe Solutions\MSTelemetrySDK.sln /target:zlib:Rebuild /p:BuildProjectReferences=true /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v145 /verbosity:minimal
  • MSBuild.exe Solutions\MSTelemetrySDK.sln /target:sqlite:Rebuild,zlib:Rebuild,Tests\gmock:Rebuild,Tests\gtest:Rebuild,Tests\UnitTests:Rebuild /p:BuildProjectReferences=true /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v145 /verbosity:minimal
  • UnitTests.exe --gtest_color=no (460 passed)
  • MSBuild.exe Solutions\MSTelemetrySDK.sln /target:Tests\FuncTests:Rebuild /p:BuildProjectReferences=true /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v145 /verbosity:minimal
  • FuncTests.exe --gtest_color=no (45 passed)
  • WSL direct CMake configure/build with -DLINK_STATIC_DEPENDS=OFF -DBUILD_SHARED_LIBS=OFF
  • WSL UnitTests (496 passed)
  • WSL FuncTests --gtest_filter=-APITest.C_API_Test (38 passed)

pablo-msft and others added 3 commits May 18, 2026 14:10
Replace the checked-in SIMD-patched zlib sources with the upstream 1.2.11 implementation so the component manifest can reference the standard zlib commit instead of the old motley/Chromium-derived patch set.

Files changed:

- cgmanifest.json

- third_party/cgmanifest.json

- docs/List-of-OSS-Components.md

- zlib/

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bmehta001 bmehta001 requested a review from a team as a code owner May 19, 2026 16:34
Keep the legacy v142 project patch aligned with the cleaned upstream zlib sources so the generated project no longer adds removed SIMD files.

Files changed:

- tools/ports/mstelemetry/v142-build.patch

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bmehta001 bmehta001 self-assigned this May 19, 2026
@bmehta001 bmehta001 requested a review from pablo-msft May 19, 2026 18:43
pablo-msft
pablo-msft previously approved these changes May 19, 2026
@bmehta001 bmehta001 changed the base branch from user/pablo/cg to main May 19, 2026 20:27
@bmehta001 bmehta001 dismissed pablo-msft’s stale review May 19, 2026 20:27

The base branch was changed.

Comment thread third_party/cgmanifest.json
Copy link
Copy Markdown
Contributor

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

Nice work. Thanks for the cleanup. As a follow-up, it may be worth considering whether the Windows build can move to zlib from vcpkg instead of continuing to carry a checked-in snapshot, so it is easier to stay current in the future.

@bmehta001 bmehta001 merged commit be01955 into microsoft:main May 20, 2026
29 checks passed
@bmehta001 bmehta001 deleted the bhamehta/pablo-cg-zlib-1211 branch May 20, 2026 15:43
@bmehta001
Copy link
Copy Markdown
Contributor Author

Yes, will use zlib via vcpkg in my vcpkg PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants