#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestMemoryLimitNoGCPercent
    gc_test.go:789: /Users/swarming/.swarming/w/ir/x/t/go-build568260939/testprog.exe GCMemoryLimitNoGCPercent: exit status 2
    gc_test.go:792: expected "OK\n", but got "retained=285218120 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x465\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x1a\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x133\n"
--- FAIL: TestMemoryLimitNoGCPercent (3.55s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test == "TestMemoryLimitNoGCPercent"
2025-04-01 22:09 gotip-darwin-amd64-longtest go@dceb77a3 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:789: /Users/swarming/.swarming/w/ir/x/t/go-build568260939/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:792: expected "OK\n", but got "retained=285218120 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x465\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x1a\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x133\n" --- FAIL: TestMemoryLimitNoGCPercent (3.55s)

watchflakes

Comment From: randall77

This is just over the limit allowed. Maybe we need to loosen the condition a bit?

Comment From: mknyszek

The condition is already somewhat loose (a couple percent IIRC). This is in theory always possible since the limit is soft, and the test is really allocating quite quickly. Maybe we retry? IIRC this has happened before, and off the top of my head maybe about once per year. @dmitshur notes that https://github.com/golang/go/issues/66893 is the only other instance.

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test == "TestMemoryLimitNoGCPercent"
2025-06-03 20:34 gotip-darwin-arm64-longtest go@cfb4e9bc runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build480341071/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=291354952 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (0.70s)
2025-06-04 14:40 gotip-darwin-arm64-longtest go@1f2a4d19 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build3566702961/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=285219144 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (1.52s)
2025-06-04 14:43 gotip-darwin-arm64-longtest go@d4bf7167 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build545195086/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=285219144 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (0.67s)

watchflakes

Comment From: mknyszek

This seems to be a more regular problem on the new arm64 longtest builder for Darwin.

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-06-03 14:30 gotip-darwin-arm64-longtest go@792548a4 runtime.TestMemoryLimit (log) === RUN TestMemoryLimit gc_test.go:780: /Users/swarming/.swarming/w/ir/x/t/go-build3658996033/testprog.exe GCMemoryLimit: exit status 2 gc_test.go:783: expected "OK\n", but got "retained=285219144 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0x64)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimit()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:313 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimit (1.82s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-06-18 18:34 gotip-darwin-arm64-longtest go@4c756729 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build3169354366/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=285227336 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (1.66s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-06-23 15:16 gotip-darwin-arm64-longtest go@1cf6386b runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build3180632307/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=286538056 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (1.47s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-06-26 17:24 gotip-darwin-arm64-longtest go@988a20c8 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build3701624424/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=292944200 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (1.43s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-06-27 17:13 go1.24-darwin-arm64-longtest release-branch.go1.24@6b51660c runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:789: /Users/swarming/.swarming/w/ir/x/t/go-build3586796101/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:792: expected "OK\n", but got "retained=285214024 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x400\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x11c\n" --- FAIL: TestMemoryLimitNoGCPercent (1.45s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-06-27 17:59 gotip-darwin-arm64-longtest go@742fda95 runtime.TestMemoryLimit (log) === RUN TestMemoryLimit gc_test.go:780: /Users/swarming/.swarming/w/ir/x/t/go-build1502147164/testprog.exe GCMemoryLimit: exit status 2 gc_test.go:783: expected "OK\n", but got "retained=287480136 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0x64)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimit()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:313 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimit (1.54s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-07-01 15:29 gotip-darwin-arm64-longtest go@27ad1f50 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build2743077174/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=285219144 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (1.51s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-07-01 15:34 go1.25-darwin-arm64-longtest release-branch.go1.25@d168ad18 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build470125837/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=286923080 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (0.25s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-06-30 20:32 go1.25-darwin-arm64-longtest release-branch.go1.25@8002d283 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build2390758497/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=288307528 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (1.56s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-07-08 15:04 gotip-darwin-arm64-longtest go@bb917bb0 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build4227021752/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=291895624 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (1.25s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-07-21 17:01 gotip-darwin-arm64-longtest go@5dac4236 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build3047021225/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=289438024 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (0.30s)

watchflakes

Comment From: gopherbot

Change https://go.dev/cl/689315 mentions this issue: runtime: relax TestMemoryLimitNoGCPercent a bit

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-07-24 17:49 gotip-darwin-arm64-longtest go@f7432e02 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build1933726734/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=302889288 limit=268435456 bound=301989888\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:407 +0x3e8\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x108\n" --- FAIL: TestMemoryLimitNoGCPercent (0.27s)

watchflakes

Comment From: randall77

This is still going over occasionally.

retained=306911560
limit=268435456
bound=301989888
retained=302889288
limit=268435456
bound=301989888

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-07-24 20:49 gotip-darwin-arm64-longtest go@f32cf8e4 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build2077348775/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=306911560 limit=268435456 bound=301989888\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:407 +0x3ec\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x104\n" --- FAIL: TestMemoryLimitNoGCPercent (1.60s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-07-30 18:54 go1.24-darwin-arm64-longtest release-branch.go1.24@6e1c4529 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:789: /Users/swarming/.swarming/w/ir/x/t/go-build70275780/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:792: expected "OK\n", but got "retained=289006920 limit=268435456 bound=285212672\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:404 +0x400\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x11c\n" --- FAIL: TestMemoryLimitNoGCPercent (0.61s)

watchflakes

Comment From: mknyszek

FWIW, I did a deep-dive into a related issue: https://github.com/golang/go/issues/74052#issuecomment-2998368762

It would be good to confirm it's the same kind of problem (I wouldn't be surprised), but if it is, I don't have any easy answers.

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-07-30 14:31 gotip-darwin-arm64-longtest go@8cd85e60 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build3408410288/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=303405384 limit=268435456 bound=301989888\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:407 +0x3ec\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x104\n" --- FAIL: TestMemoryLimitNoGCPercent (1.22s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime" && test ~ `TestMemoryLimit`
2025-08-01 18:56 gotip-darwin-arm64-longtest go@4ab1aec0 runtime.TestMemoryLimitNoGCPercent (log) === RUN TestMemoryLimitNoGCPercent gc_test.go:794: /Users/swarming/.swarming/w/ir/x/t/go-build3092307271/testprog.exe GCMemoryLimitNoGCPercent: exit status 2 gc_test.go:797: expected "OK\n", but got "retained=303593800 limit=268435456 bound=301989888\npanic: exceeded memory limit by more than bound allows\n\ngoroutine 1 [running]:\nmain.gcMemoryLimit(0xffffffffffffffff)\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:407 +0x3ec\nmain.GCMemoryLimitNoGCPercent()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/gc.go:317 +0x20\nmain.main()\n\t/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprog/main.go:34 +0x104\n" --- FAIL: TestMemoryLimitNoGCPercent (1.20s)

watchflakes