From f4451060a79fd7d5326e3c77e7d5d52d433452fa Mon Sep 17 00:00:00 2001 From: frostebite Date: Thu, 5 Mar 2026 08:13:49 +0000 Subject: [PATCH] ci(orchestrator): add fast unit test gate to integrity workflow Adds a fast-fail unit test step at the top of orchestrator-integrity, right after yarn install and before any infrastructure setup (k3d, LocalStack). Runs 113 mock-based orchestrator tests in ~5 seconds. If serialization, path computation, log parsing, or provider loading is broken, the workflow fails immediately instead of spending 30+ minutes setting up LocalStack and k3d clusters. Tests included: orchestrator-guid, orchestrator-folders, task-parameter-serializer, follow-log-stream-service, runner-availability-service, provider-url-parser, provider-loader, provider-git-manager, orchestrator-image, orchestrator-hooks, orchestrator-github-checks. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/orchestrator-integrity.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/orchestrator-integrity.yml b/.github/workflows/orchestrator-integrity.yml index c06b1a2f..c84c2fa4 100644 --- a/.github/workflows/orchestrator-integrity.yml +++ b/.github/workflows/orchestrator-integrity.yml @@ -196,6 +196,15 @@ jobs: fi - run: yarn install --frozen-lockfile # ========================================== + # FAST UNIT TESTS (no infra required, fast-fail gate) + # ========================================== + - name: Run orchestrator unit tests (fast, no infra) + timeout-minutes: 2 + run: >- + yarn run test + --testPathPattern="orchestrator-guid|orchestrator-folders|task-parameter-serializer|follow-log-stream-service|runner-availability-service|provider-url-parser|provider-loader|provider-git-manager|orchestrator-image|orchestrator-hooks|orchestrator-github-checks" + --verbose --detectOpenHandles --forceExit --runInBand + # ========================================== # K8S TESTS SECTION # ========================================== - name: Clean up disk space before K8s tests