-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (67 loc) · 2.33 KB
/
integration.yaml
File metadata and controls
72 lines (67 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
name: "Integration Tests"
on: # yamllint disable-line rule:truthy
push:
branches:
- "main"
pull_request:
branches:
- "*"
merge_group:
types:
- "checks_requested"
workflow_dispatch: # Allow manual triggering
env:
GO_VERSION: "~1.24.0"
jobs:
# Matrix job for individual integration tests
integration-tests:
name: "${{ matrix.test.name }}"
runs-on: "depot-ubuntu-24.04"
timeout-minutes: 30
strategy:
fail-fast: true # Cancel remaining tests if one fails
matrix:
test:
- name: "Cluster Creation"
command: "test:integrationRun"
pattern: "TestMultiNodeClusterCreation"
timeout: "15m"
- name: "Cluster Health"
command: "test:integrationRun"
pattern: "TestMultiNodeClusterHealth"
timeout: "20m"
- name: "Pool Functionality"
command: "test:integrationRun"
pattern: "TestMultiNodePoolFunctionality"
timeout: "25m"
- name: "Connection Balancing"
command: "test:integrationRun"
pattern: "TestMultiNodeConnectionBalancing"
timeout: "20m"
- name: "Error Handling"
command: "test:integrationRun"
pattern: "TestMultiNodeErrorHandling"
timeout: "15m"
steps:
- uses: "actions/checkout@v4"
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- name: "Run ${{ matrix.test.name }} Test"
run: |
echo "Running integration test: ${{ matrix.test.name }}"
echo "Command: go run mage.go ${{ matrix.test.command }} \"${{ matrix.test.pattern }}\""
timeout "${{ matrix.test.timeout }}" go run mage.go ${{ matrix.test.command }} "${{ matrix.test.pattern }}"
- name: "Collect container logs on failure"
if: "failure()"
run: |
echo "=== Docker System Info ==="
docker system df || true
echo "=== Running Containers ==="
docker ps -a || true
echo "=== Docker Networks ==="
docker network ls || true
echo "=== Recent Container Logs ==="
docker ps -a --format "table {{.Names}}\t{{.Status}}" | grep -E "(crdb|cockroach|testcontainers)" | head -5 || true
continue-on-error: true