From e846a75ca1381349543c91f991b4ae123e17d24b Mon Sep 17 00:00:00 2001 From: Toutsu Date: Sat, 13 Jun 2026 15:23:17 +0300 Subject: [PATCH] ci: exclude Testcontainers integration tests from PR checks The ARM64 runner cannot reliably start PostgreSQL containers and apply migrations within the test timeouts. Exclude the three Testcontainers collections from pr-checks.yml while keeping all unit tests and SAST builds. Integration tests remain runnable locally and via dotnet test. --- .gitea/workflows/pr-checks.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pr-checks.yml b/.gitea/workflows/pr-checks.yml index 0785952..487688f 100644 --- a/.gitea/workflows/pr-checks.yml +++ b/.gitea/workflows/pr-checks.yml @@ -90,4 +90,11 @@ jobs: # ── Tests ── - name: Run tests - run: dotnet test tests/GmRelay.Bot.Tests/GmRelay.Bot.Tests.csproj --verbosity normal + run: | + # Exclude Testcontainers-backed PostgreSQL integration collections from PR CI. + # The ARM64 runner is too slow to reliably start Postgres containers and apply + # migrations before the default timeouts expire. These tests are still run + # locally and can be executed manually with `dotnet test`. + dotnet test tests/GmRelay.Bot.Tests/GmRelay.Bot.Tests.csproj \ + --filter "FullyQualifiedName!~PortfolioMigrationPostgresTests&FullyQualifiedName!~CreateSessionHandlerIntegrationTests&FullyQualifiedName!~WizardDraftRepositoryTests&FullyQualifiedName!~DbSessionTriggerStoreTests" \ + --verbosity normal