From 490d28461a769c6134ff738d2e25709ca2329931 Mon Sep 17 00:00:00 2001 From: Mayur Das Date: Tue, 23 Jun 2026 10:10:18 +0530 Subject: [PATCH] test: de-parallelize TestRunQuiet so it stops GC'ing the shared image TestRunQuiet force-removes the shared CommonImage (== AlpineImage) in its setup and cleanup to exercise a fresh pull, but it ran in parallel. The containerd content store is global across namespaces, so that rmi GCs the Alpine layer blobs out from under concurrent tests mid-run, which then fail with "content digest not found" (observed in TestRunUmask). Mark TestRunQuiet NoParallel so it no longer races other tests using the shared image, instead of pulling the image in each consumer's setup. Signed-off-by: Mayur Das --- cmd/nerdctl/container/container_run_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/nerdctl/container/container_run_test.go b/cmd/nerdctl/container/container_run_test.go index 8ad9c6d8c21..b26db7dc2d0 100644 --- a/cmd/nerdctl/container/container_run_test.go +++ b/cmd/nerdctl/container/container_run_test.go @@ -798,6 +798,11 @@ func TestRunAttachFlag(t *testing.T) { func TestRunQuiet(t *testing.T) { testCase := nerdtest.Setup() + // This test removes the shared image to force a fresh pull, so it must not + // run alongside other tests that use it: the content store is global across + // namespaces, so the rmi would GC layers out from under a parallel run. + testCase.NoParallel = true + testCase.Setup = func(data test.Data, helpers test.Helpers) { helpers.Anyhow("rmi", "-f", testutil.CommonImage) }