| 1 |
From: Reinhard Tartler <[email protected]> |
| 2 |
Date: Wed, 30 Sep 2026 20:12:12 +0000 |
| 3 |
Subject: Skip TestRmdirAfterGoList_Direct in sbuild environments |
| 4 |
|
| 5 |
The test runs 'go list -json example.com/p' on a directory that is not |
| 6 |
part of any module, which only resolves outside of a build chroot with a |
| 7 |
writable GOPATH. In the sbuild chroot this fails with 'cannot find |
| 8 |
package example.com/p in any of: /usr/lib/go-1.27/src/example.com/p |
| 9 |
(from GOROOT)'. |
| 10 |
|
| 11 |
The _Runner variant of this test is already skipped upstream because it |
| 12 |
was found to be flaky (golang/go#73736), but the _Direct variant is not. |
| 13 |
The failure is an artefact of the build environment rather than a bug in |
| 14 |
the code under test, so it is not forwarded upstream. |
| 15 |
|
| 16 |
Forwarded: not-needed |
| 17 |
Last-Update: 2026-09-30 |
| 18 |
--- |
| 19 |
internal/xtools-internal/gocommand/invoke_test.go | 1 + |
| 20 |
1 file changed, 1 insertion(+) |
| 21 |
|
| 22 |
diff --git a/internal/xtools-internal/gocommand/invoke_test.go b/internal/xtools-internal/gocommand/invoke_test.go |
| 23 |
index 11200b9..2bab7c2 100644 |
| 24 |
--- a/internal/xtools-internal/gocommand/invoke_test.go |
| 25 |
+++ b/internal/xtools-internal/gocommand/invoke_test.go |
| 26 |
@@ -74,6 +74,7 @@ func TestRmdirAfterGoList_Runner(t *testing.T) { |
| 27 |
// child process has naturally finished. This is to confirm the |
| 28 |
// hypothesis at https://github.com/golang/go/issues/73736#issuecomment-2885407104. |
| 29 |
func TestRmdirAfterGoList_Direct(t *testing.T) { |
| 30 |
+ t.Skip("Debian: fails in sbuild because go list cannot find package example.com/p (no network, package not in GOROOT/GOPATH)") |
| 31 |
for _, delay := range []time.Duration{0, 30 * time.Second} { |
| 32 |
t.Run(delay.String(), func(t *testing.T) { |
| 33 |
testRmdirAfterGoList(t, func(ctx context.Context, dir string) { |