Skip to content

Conversation

@AkihiroSuda
Copy link
Member

No description provided.

@crazy-max
Copy link
Member

This error looks legit https://github.com/moby/buildkit/actions/runs/20323763207/job/58393222309?pr=6426#step:8:3724

Reset branch 'master'
Switched to a new branch 'feature'
	github.com/moby/buildkit/util/winlayers		coverage: 0.0% of statements
	github.com/moby/buildkit/worker		coverage: 0.0% of statements
Cloning into '/tmp/TestFetchMutatedBranchSHA2562750947169/001/main/sub'...
warning: unable to rmdir 'sub': Directory not empty
Switched to branch 'master'
    source_test.go:1289: 
        	Error Trace:	/src/source/git/source_test.go:1289
        	            				/src/source/git/source_test.go:1219
        	Error:      	Received unexpected error:
        	            	exit status 1
        	            	git stderr:
        	            	From http://127.0.0.1:35521/main
        	            	 * [new branch]      feature/new -> feature/new
        	            	 * [new branch]      feature/new -> origin/feature/new
        	            	error: some local refs could not be updated; try running
        	            	 'git remote prune origin' to remove any old, conflicting branches
        	            	error: fetching ref refs/remotes/origin/feature/new failed: refname conflict
        	            	
        	            	github.com/moby/buildkit/util/gitutil.(*GitCLI).Run
        	            		/src/util/gitutil/git_cli.go:240
        	            	github.com/moby/buildkit/source/git.(*gitSourceHandler).tryRemoteFetch
        	            		/src/source/git/source.go:900
        	            	github.com/moby/buildkit/source/git.(*gitSourceHandler).remoteFetch
        	            		/src/source/git/source.go:719
        	            	github.com/moby/buildkit/source/git.(*gitSourceHandler).Snapshot
        	            		/src/source/git/source.go:796
        	            	github.com/moby/buildkit/source/git.testFetchMutatedBranch
        	            		/src/source/git/source_test.go:1288
        	            	github.com/moby/buildkit/source/git.TestFetchMutatedBranchSHA256
        	            		/src/source/git/source_test.go:1219
        	            	testing.tRunner
        	            		/usr/local/go/src/testing/testing.go:1934
        	            	runtime.goexit
        	            		/usr/local/go/src/runtime/asm_amd64.s:1693
        	            	failed to fetch remote http://127.0.0.1:35521/main
        	            	github.com/moby/buildkit/source/git.(*gitSourceHandler).tryRemoteFetch
        	            		/src/source/git/source.go:901
        	            	github.com/moby/buildkit/source/git.(*gitSourceHandler).remoteFetch
        	            		/src/source/git/source.go:719
        	            	github.com/moby/buildkit/source/git.(*gitSourceHandler).Snapshot
        	            		/src/source/git/source.go:796
        	            	github.com/moby/buildkit/source/git.testFetchMutatedBranch
        	            		/src/source/git/source_test.go:1288
        	            	github.com/moby/buildkit/source/git.TestFetchMutatedBranchSHA256
        	            		/src/source/git/source_test.go:1219
        	            	testing.tRunner
        	            		/usr/local/go/src/testing/testing.go:1934
        	            	runtime.goexit
        	            		/usr/local/go/src/runtime/asm_amd64.s:1693
        	Test:       	TestFetchMutatedBranchSHA256
--- FAIL: TestFetchMutatedBranchSHA256 (0.81s)

Might be related to Git 2.59 in Alpine 3.23 (currently 2.49 on 3.22)

@AkihiroSuda
Copy link
Member Author

Excluded the commit to bump up Alpine

@crazy-max
Copy link
Member

GitHub is flaky today https://github.com/moby/buildkit/actions/runs/20331811078/job/58408685958?pr=6426#step:5:779

#22 [dnsname 2/3] ADD --keep-git-dir=true https://github.com/containers/dnsname.git#v1.3.1 .
#22 134.8 fatal: unable to access 'https://github.com/containers/dnsname.git/': Failed to connect to github.com port 443 after 134829 ms: Could not connect to server
#22 ERROR: failed to fetch remote https://github.com/containers/dnsname.git: git stderr:
fatal: unable to access 'https://github.com/containers/dnsname.git/': Failed to connect to github.com port 443 after 134829 ms: Could not connect to server
: exit status 128

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

we could have a draft PR to verify runc 1.4; we have one in moby (where we also waited for containerd to update); moby/moby#50960

@AkihiroSuda AkihiroSuda merged commit 73d52dd into moby:master Dec 19, 2025
167 of 170 checks passed
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.

4 participants