Skip to content

WCOW: test fails with file used by another process #5807

@tonistiigi

Description

@tonistiigi

https://github.com/moby/buildkit/actions/runs/13639852250/job/38127254409?pr=5806#step:8:47

    dockerfile_test.go:1508: 
        	Error Trace:	D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_test.go:1508
        	            				D:/a/buildkit/buildkit/util/testutil/integration/run.go:103
        	            				D:/a/buildkit/buildkit/util/testutil/integration/run.go:240
        	Error:      	Received unexpected error:
        	            	failed to compute cache key: failed to calculate checksum of ref swoah7anzxal82qqgw104woil::90nr5607yu8c0st4nmx1p5na9: failed to mount {windows-layer C:\Users\RUNNER~1\AppData\Local\Temp\bktest_containerd2597383045\root\io.containerd.snapshotter.v1.windows\snapshots\4  [parentLayerPaths=["C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\bktest_containerd2597383045\\root\\io.containerd.snapshotter.v1.windows\\snapshots\\3"] ro]}: failed to activate layer C:\Users\RUNNER~1\AppData\Local\Temp\bktest_containerd2597383045\root\io.containerd.snapshotter.v1.windows\snapshots\4: hcsshim::ActivateLayer failed in Win32: The process cannot access the file because it is being used by another process. (0x20): failed to activate layer C:\Users\RUNNER~1\AppData\Local\Temp\bktest_containerd2597383045\root\io.containerd.snapshotter.v1.windows\snapshots\4: hcsshim::ActivateLayer failed in Win32: The process cannot access the file because it is being used by another process. (0x20)
        	            	github.com/moby/buildkit/util/stack.Enable
        	            		D:/a/buildkit/buildkit/util/stack/stack.go:82
        	            	github.com/moby/buildkit/util/grpcerrors.FromGRPC
        	            		D:/a/buildkit/buildkit/util/grpcerrors/grpcerrors.go:204
        	            	github.com/moby/buildkit/util/grpcerrors.UnaryClientInterceptor
        	            		D:/a/buildkit/buildkit/util/grpcerrors/intercept.go:41
        	            	google.golang.org/grpc.(*ClientConn).Invoke

@profnandaa

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions