From 7019a03ec47d3009238da3b8827d52848afd9694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Fri, 5 Jun 2026 15:46:49 +0700 Subject: [PATCH] chore(test): disable event_testing in backend/v3 (#12241) # Which Problems Are Solved `backed/v3` tests are flaky, but the code is not productive. Development is paused for the moment. Disabling flaky tests helps us to maintain the product easier. # How the Problems Are Solved - Removed 'events_testing' from the integration test command in both `CONTRIBUTING.md` and `apps/api/project.json` to streamline the testing process. - Adjusted the command to ensure it only includes relevant integration tests, improving clarity and focus for contributors. --- CONTRIBUTING.md | 2 +- apps/api/project.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6ae03ac32..014cff92b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -339,7 +339,7 @@ go test -count 1 -tags integration ./internal/api/grpc/management/integration_te To run all available integration tests: ```bash -go test -count 1 -tags integration -parallel 1 $(go list -tags integration ./... | grep -e \"integration_test\" -e \"events_testing\") +go test -count 1 -tags integration -parallel 1 $(go list -tags integration ./... | grep -e \"integration_test\") ``` It is also possible to run the API in a debugger and run the integrations tests against it. diff --git a/apps/api/project.json b/apps/api/project.json index 30a97a6f2..262699f2f 100644 --- a/apps/api/project.json +++ b/apps/api/project.json @@ -6,7 +6,6 @@ "sources": [ "{workspaceRoot}/cmd/**/*.go", "{workspaceRoot}/internal/**/*.go", - "{workspaceRoot}/backend/**/*.go", "{workspaceRoot}/proto/**/*.go", "{workspaceRoot}/pkg/**/*.go", "{workspaceRoot}/main.go", @@ -235,8 +234,8 @@ }, "commands": [ "wait-on --verbose --interval 2000 --simultaneous 1 --timeout 30m \"${ZITADEL_API_URL}/debug/ready\"", - "bash -c 'go test -race -count 1 -tags integration -timeout 60m -parallel 1 $(go list -tags integration ./... | grep -e \"integration_test\" -e \"events_testing\")'", - "go tool covdata textfmt -i=$GOCOVERDIR -pkg=github.com/zitadel/zitadel/internal/...,github.com/zitadel/zitadel/cmd/...,github.com/zitadel/zitadel/backend/... -o profile.api.test-integration.cov", + "bash -c 'go test -race -count 1 -tags integration -timeout 60m -parallel 1 $(go list -tags integration ./... | grep -e \"integration_test\")'", + "go tool covdata textfmt -i=$GOCOVERDIR -pkg=github.com/zitadel/zitadel/internal/...,github.com/zitadel/zitadel/cmd/... -o profile.api.test-integration.cov", "nx run @zitadel/api:test-integration-stop" ] },