Repository navigation
Document binary cache ZIP compression settings - #613
Merged
Billy O'Neal (BillyONeal) merged 1 commit intoOct 1, 2026
Merged
Billy O'Neal (BillyONeal) merged 1 commit into
Billy O'Neal (BillyONeal) merged 1 commit into
Conversation
Contributor
|
Learn Build status updates of commit e4afd61: ✅ Validation status: passed
For more details, please refer to the build report. |
Contributor
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
xiaozhuai (xiaozhuai)
marked this pull request as ready for review
September 18, 2026 01:26
Billy O'Neal (BillyONeal)
pushed a commit
to microsoft/vcpkg-tool
that referenced
this pull request
Sep 23, 2026
Adds `--binary-cache-compression-level=<0-9>` and `VCPKG_BINARY_CACHE_COMPRESSION_LEVEL` so users can trade archive size for binary-cache submission time. The command-line option takes precedence; leaving both unset preserves the archive tool's default compression level. Invalid values are rejected with a localized diagnostic. The common ZIP creation path passes the configured level to 7-Zip (`-mx=<level>`) on Windows and `zip` (`-<level>`) elsewhere, covering every binary-cache provider that requests a ZIP archive. 7-Zip explicitly uses `-tzip` regardless of whether a level is configured. NuGet packaging is unaffected, and changing the setting does not change package ABIs or prevent restoration of existing archives. Tests cover defaults, every configured level, argument validation and precedence, and one cache-only restoration using `--only-binarycaching` with a different compression setting and an exact payload comparison. The test harness isolates the new environment variable. Reuses the existing `vcpkg-header-only` test port. The temporary `ci.ps1` output-capture workaround has been removed after merging upstream's fix from #2127; `ci.ps1` now matches upstream main. Documentation: MicrosoftDocs/vcpkg-docs#613 Fixes microsoft/vcpkg#53923 Validation after merging current upstream main: - macOS Debug build; all 534 unit tests passed (8,005 assertions). - Actual PowerShell execution of the binary-cache-compression and ci suites passed, using the repository prelude and a local runner with `/opt/vcpkg`. - PowerShell message-usage validation passed; regenerated message map matches. - `git diff --check` passed. - Prior macOS integration checks covered archive integrity, restored payloads, and eight invalid CLI/environment values. Windows and Linux execution for the latest revision is left to CI. --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Billy O'Neal (BillyONeal)
approved these changes
Oct 1, 2026
Billy O'Neal (BillyONeal)
left a comment
Collaborator
There was a problem hiding this comment.
Thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents
--binary-cache-compression-level=<0-9>andVCPKG_BINARY_CACHE_COMPRESSION_LEVELin the common command options and environment variable references, including precedence, defaults, validation, provider scope, and cache compatibility.Companion to microsoft/vcpkg-tool#2125 for microsoft/vcpkg#53923. Moved out of the tool repository following BillyONeal's review. This is a draft pending the implementation's acceptance.
Validation: relative links and section anchors checked; preserved each file's existing line endings; whitespace checked with
core.whitespace=cr-at-eolfor the existing CRLF file.