Skip to content

vendor: update hcsshim to fix Windows sparse-file exports - #53745

Merged
thaJeztah merged 1 commit into
moby:masterfrom
rzlink:fix/windows-sparse-export-deps
Oct 19, 2026
Merged

thaJeztah merged 1 commit into
moby:masterfrom
rzlink:fix/windows-sparse-export-deps

Conversation

@rzlink

@rzlink rzlink commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Update hcsshim from v0.15.0-rc.4 to v0.15.0 to include the upstream fix for Windows layer exports containing NTFS sparse files. Moby already uses go-winio v0.6.4, which contains the complementary sparse-stream export fix.

The update also moves go-containerregistry from v0.21.7 to v0.22.0, as required by hcsshim v0.15.0.

Validation against this commit:

  • go mod verify: passed.
  • go test -mod=vendor ./daemon/graphdriver/windows: passed.
  • hack\make.ps1 -Daemon: passed.
  • Three uncached legacy-builder, Hyper-V-isolated sparse-file builds: passed.
  • Ordinary-file and empty-sparse controls: passed.
  • The exported sparse file retained its 1,048,576-byte logical size and contained only zero bytes.

The original installer-created zero-length file was not reproduced; its terminator scenario is covered by the upstream synthetic regression test.

Release notes (optional)

Fix Windows layer exports containing NTFS sparse files.

A picture of a cute animal (not mandatory but encouraged)

@rzlink
rzlink force-pushed the fix/windows-sparse-export-deps branch from 20ae1ad to ae16b36 Compare September 21, 2026 22:14
@rzlink

rzlink commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

@thaJeztah @vvoland, please take a look at the PR when you have a chance. Thanks!

Comment thread go.mod
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cilium/ebpf v0.17.3 // indirect
github.com/cilium/ebpf v0.22.0 // indirect

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could hcsshim start a v0.15 release branch (and start tagging non-rc's of v0.15.x?). It has dependabot enabled for al its dependencies, and this one will also force containerd 2.3 and 2.4 to update to latest versions of all dependencies.

(they may eventually be updated, but hcsshim should not drive up those dependencies unless strictly needed).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, this makes sense. We’re checking whether hcsshim can create a release/0.15 branch from v0.15.0-rc.4 and backport the two sparse-file fixes.

@jterry75, could you advise whether this should be another RC or a stable v0.15.x release?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Yes, there's at least 2 versions of containerd shipping with v0.15.0-rc.X, so I think a non-rc is appropriate.

Before that, we'd also have a new v0.7.0 of go-winio; I started to dust-off some PRs that ideally would be included (to remove some deprecated dependencies at least).

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.

This all makes sense to me. @thaJeztah - What PRs do you need in for go-winio? I'm back on the containers team lol, so I can help you with whatever you need.

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.

We can make a formal release for hcsshim and go-winio after we get what ya need in.

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.

I see your PRs. Working through them now

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.

@thaJeztah - Took a long time, appreciate your patience.

hcsshim v0.15.0 is now released and included
go-winio: v0.6.4

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.

I'll get the team to publish a regular release process moving forward on a regular cadence.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Saw the tag in my notifications 👍

@vvoland vvoland added this to the 29.9.0 milestone Sep 23, 2026
@vvoland vvoland modified the milestones: 29.9.0, 29.10.0 Oct 1, 2026
Signed-off-by: Dawei Wei <wei.dawei.cn@gmail.com>
@rzlink
rzlink force-pushed the fix/windows-sparse-export-deps branch from ae16b36 to c7397ad Compare October 19, 2026 17:59
@rzlink rzlink changed the title vendor: update go-winio and hcsshim to fix Windows sparse-file exports vendor: update hcsshim to fix Windows sparse-file exports Oct 19, 2026
@jterry75

Copy link
Copy Markdown
Contributor

LGTM (not a maintainer)

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM as well (was kicking CI 😂)

@thaJeztah
thaJeztah merged commit 2593112 into moby:master Oct 19, 2026
400 of 425 checks passed
@rzlink
rzlink deleted the fix/windows-sparse-export-deps branch October 23, 2026 23:02
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.

Windows layer export fails with unknown stream ID 9 for sparse DO*.tmp file on Windows 26H1

4 participants