Commit 94c71c0755 for golang

commit 94c71c07559d36ba4c7a84e8eb4e13854685afa9
Author: Carlos Amedee <carlos@golang.org>
Date:   Wed Dec 2 19:35:05 2026 -0500

    cmd/go/internal/cache: skip TestCacheLogRotation on wasip1

    A bug in the Linux kernel of the builder container image breaks
    O_APPEND writes in newer versions of Wasmtime: they overwrite the
    start of the file. appendLogLocked opens cache.log with O_APPEND,
    so cache.log never reaches logRollSize and never rotates, and the
    test fails on gotip-wasip1-wasm_wasmtime-stackswitch, the only
    builder with a newer Wasmtime.

    Skip the test on wasip1, as CL 861774 did for the os tests, until
    the infrastructure is upgraded.

    For #82862

    Change-Id: Ic31722766ce98246815330851d6d0bc871479dd3
    Reviewed-on: https://go-review.googlesource.com/c/go/+/868747
    Auto-Submit: Carlos Amedee <carlos@golang.org>
    Reviewed-by: t hepudds <thepudds1460@gmail.com>
    Reviewed-by: PJ Malloy <pjmalloy@google.com>
    LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

diff --git a/src/cmd/go/internal/cache/cache_test.go b/src/cmd/go/internal/cache/cache_test.go
index 1af9069950..2a355e15e5 100644
--- a/src/cmd/go/internal/cache/cache_test.go
+++ b/src/cmd/go/internal/cache/cache_test.go
@@ -781,6 +781,12 @@ func TestCacheLog(t *testing.T) {
 }

 func TestCacheLogRotation(t *testing.T) {
+	if runtime.GOOS == "wasip1" {
+		// A bug in the Linux kernel of the builder container image breaks
+		// Wasmtime's O_APPEND writes, which appendLogLocked relies on.
+		// TODO(go.dev/issue/82862): remove when the infrastructure is upgraded.
+		t.Skip("skipping on wasip1; see go.dev/issue/82862")
+	}
 	t.Parallel()

 	const roll = 128 << 10