Skip to content

test(gitwin): end-to-end EnsurePinned download/verify/extract (H-42/COV-5) - #61

Merged
dyammarcano merged 1 commit into
mainfrom
test/gitwin-ensure
Jul 11, 2026
Merged

test(gitwin): end-to-end EnsurePinned download/verify/extract (H-42/COV-5)#61
dyammarcano merged 1 commit into
mainfrom
test/gitwin-ensure

Conversation

@dyammarcano

Copy link
Copy Markdown
Collaborator

Drives Manifest.EnsurePinned against an httptest server through download->verify->unzip->locate->prune; asserts extraction, pruning, keep, short-circuit, and sha-mismatch refusal. gitwin 52.2% -> 58.6%. Test-only. lint green.

…OV-5)

Serve a MinGit-shaped zip from an httptest server and drive Manifest.EnsurePinned
through the full path: download -> sha256 verify -> unzip -> locate cmd/git.exe ->
pruneRedundant. Asserts the binary is extracted, top-level bin/ is pruned,
usr/bin/sh.exe is kept, a second call short-circuits on the present git.exe, and
a sha256 mismatch refuses to install. gitwin 52.2% -> 58.6%.
@dyammarcano
dyammarcano merged commit 9a7f0f8 into main Jul 11, 2026
6 checks passed
@dyammarcano
dyammarcano deleted the test/gitwin-ensure branch July 11, 2026 02:39
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.

1 participant