From 43b7674697a20f1e111c6c3c14739d291bb50b18 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 13:41:45 +0000 Subject: [PATCH 1/4] build(makefile): add -parallel=8 and -timeout flags to test targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Align test-unit, test-all, and test-integration with the flags already used in test-ci. The changes are mechanical: * test-unit: add -parallel=8 -timeout=3m to match test-ci behaviour. Without -parallel=8 the Go test runner serialises sub-tests across packages, adding several seconds to every local developer run. Without -timeout=3m a stuck test hangs indefinitely. * test-all: same -parallel=8 -timeout=5m additions (longer timeout because it includes integration tests). * test-integration: add -timeout=5m so a hung integration test does not block CI forever. No logic changes; only flag additions to the go test invocations. 🤖 Generated by Repo Assist Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e257116dd..e09bd3cfc 100644 --- a/Makefile +++ b/Makefile @@ -40,13 +40,13 @@ lint: test-unit: @echo "Running unit tests..." @go mod tidy - @go test -v ./internal/... + @go test -v -parallel=8 -timeout=3m ./internal/... # Run all tests (unit + integration) — requires a built binary for integration tests test-all: build @echo "Running all tests..." @go mod tidy - @go test -v ./... + @go test -v -parallel=8 -timeout=5m ./... # Legacy target: run unit tests (for backward compatibility) test: test-unit @@ -69,7 +69,7 @@ test-integration: echo "Binary not found. Building..."; \ $(MAKE) build; \ fi - @go test -v ./test/integration/... + @go test -v -timeout=5m ./test/integration/... # Run unit tests with race detection (catches concurrent data races) # The MCP Gateway is a concurrent server; use this to validate thread safety. From b2e1914dd2568b2ee7b2eb524d7d349450f0b763 Mon Sep 17 00:00:00 2001 From: Landon Cox Date: Wed, 8 Jul 2026 06:54:51 -0700 Subject: [PATCH 2/4] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e09bd3cfc..54af72dab 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ lint: test-unit: @echo "Running unit tests..." @go mod tidy - @go test -v -parallel=8 -timeout=3m ./internal/... + @go test -v -p=8 -parallel=8 -timeout=3m ./internal/... # Run all tests (unit + integration) — requires a built binary for integration tests test-all: build From 52ba10d682c7d5ef38b038e44acad1f45297e3a0 Mon Sep 17 00:00:00 2001 From: Landon Cox Date: Wed, 8 Jul 2026 06:55:00 -0700 Subject: [PATCH 3/4] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 54af72dab..ea78bbff3 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ test-unit: test-all: build @echo "Running all tests..." @go mod tidy - @go test -v -parallel=8 -timeout=5m ./... + @go test -v -p=8 -parallel=8 -timeout=5m ./... # Legacy target: run unit tests (for backward compatibility) test: test-unit From d546d91170e061cd8cb66cdcb5e5c2ab63269451 Mon Sep 17 00:00:00 2001 From: Landon Cox Date: Wed, 8 Jul 2026 06:55:07 -0700 Subject: [PATCH 4/4] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ea78bbff3..8a15290f1 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ test-integration: echo "Binary not found. Building..."; \ $(MAKE) build; \ fi - @go test -v -timeout=5m ./test/integration/... + @go test -v -timeout 5m ./test/integration/... # Run unit tests with race detection (catches concurrent data races) # The MCP Gateway is a concurrent server; use this to validate thread safety.