Merge remote-tracking branch 'origin/feature/orchestrator-unit-tests' into release/lts-2.0.0

# Conflicts:
#	.github/workflows/orchestrator-integrity.yml
#	dist/index.js.map
This commit is contained in:
frostebite
2026-03-05 21:06:03 +00:00
6 changed files with 589 additions and 3 deletions

View File

@@ -221,8 +221,26 @@ jobs:
fi
- run: yarn install --frozen-lockfile
- name: Create k3d cluster
# ==========================================
# 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
run: |
echo "Cleaning up disk space before K8s tests..."
rm -rf ./orchestrator-cache/* || true
sudo apt-get clean || true
docker system prune -f || true
df -h
- name: Create k3s cluster (k3d)
timeout-minutes: 5
run: |
LOCALSTACK_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' localstack-main 2>/dev/null || echo "")