From 48ee12be0c1d7c24d91ea808a65f3eb4ff5319e8 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Thu, 5 Feb 2026 11:35:45 -0500 Subject: [PATCH] ci(generate-capabilities): serialize writing and reading yaml (#4602) Otherwise sometimes the test that reads will run during the test that writes and fail because the yaml file is in a partially written state. Signed-off-by: Will Murphy --- Taskfile.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index cbce8378f..3e5bbe993 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -545,7 +545,8 @@ tasks: - "go generate ./internal/capabilities/..." - "gofmt -s -w ./internal/capabilities" # now that we have the latest capabilities, run completeness tests to ensure this is self-consistent - - "SYFT_ENABLE_COMPLETENESS_TESTS=true go test ./internal/capabilities/... -count=1" + # note: -p 1 forces sequential package execution to avoid race between generate (writes) and internal (reads) + - "SYFT_ENABLE_COMPLETENESS_TESTS=true go test -p 1 ./internal/capabilities/... -count=1" ## Build-related targets #################################