Commit 2b08a74
ci(test): parallelize acceptance tests using dynamic matrix (#692)
## Summary
Parallelize Sysdig acceptance tests by running each test file in its own
GitHub Actions job using dynamic matrix strategy. **IBM tests remain
sequential due to API rate limiting issues.**
## Changes
| Suite | Before | After |
|-------|--------|-------|
| Sysdig Secure | 1 sequential job | Dynamic matrix (max 20 concurrent),
fail-fast |
| Sysdig Monitor | 1 sequential job | Dynamic matrix (max 20
concurrent), fail-fast |
| IBM Monitor | 1 sequential job | No change (sequential) |
| IBM Secure | 1 sequential job | No change (sequential) |
## How it works
1. `list-*-tests` jobs discover test files by searching for build tags
(`tf_acc_sysdig_secure`, `tf_acc_sysdig_monitor`)
2. Each file's tests run in parallel using `-run` flag to filter by test
name
3. `fail-fast: true` stops the matrix early if any test fails
4. Aggregator jobs (`sysdig-secure-result`, `sysdig-monitor-result`)
collect results for required status checks
5. IBM tests remain sequential to avoid API rate limiting (500/504
errors with parallelization)
## Additional changes
- Add `merge_group` trigger to `ci.yml` for merge queue support
- Handle empty grep results gracefully in list jobs
- Fix `data_source_sysdig_user_test` to use random email suffix (avoid
collisions in parallel runs)
- Fix `data_source_sysdig_secure_rule_stateful_count_test` to check
`rule_count >= 2` instead of exact match (avoid flaky failures)1 parent 066a36b commit 2b08a74
4 files changed
Lines changed: 146 additions & 39 deletions
File tree
- .github/workflows
- sysdig
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
32 | | - | |
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
36 | | - | |
37 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
38 | 36 | | |
39 | 37 | | |
40 | | - | |
| 38 | + | |
| 39 | + | |
41 | 40 | | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | | - | |
46 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
47 | 64 | | |
48 | 65 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
52 | 75 | | |
53 | | - | |
54 | 76 | | |
55 | 77 | | |
56 | 78 | | |
57 | | - | |
58 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
59 | 100 | | |
60 | 101 | | |
61 | | - | |
| 102 | + | |
| 103 | + | |
62 | 104 | | |
63 | | - | |
64 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
65 | 115 | | |
66 | | - | |
67 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
68 | 128 | | |
69 | 129 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
73 | 139 | | |
74 | | - | |
75 | 140 | | |
76 | 141 | | |
77 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
78 | 162 | | |
79 | 163 | | |
80 | 164 | | |
81 | 165 | | |
82 | | - | |
83 | 166 | | |
84 | 167 | | |
85 | 168 | | |
86 | | - | |
87 | 169 | | |
88 | 170 | | |
89 | 171 | | |
90 | 172 | | |
91 | | - | |
92 | 173 | | |
93 | 174 | | |
94 | 175 | | |
| |||
99 | 180 | | |
100 | 181 | | |
101 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
102 | 186 | | |
103 | 187 | | |
104 | 188 | | |
105 | 189 | | |
106 | | - | |
107 | 190 | | |
108 | 191 | | |
109 | 192 | | |
110 | | - | |
111 | 193 | | |
112 | 194 | | |
113 | 195 | | |
114 | 196 | | |
115 | | - | |
116 | 197 | | |
117 | 198 | | |
118 | 199 | | |
| |||
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
45 | 65 | | |
46 | 66 | | |
47 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
31 | | - | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | | - | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
| 43 | + | |
41 | 44 | | |
0 commit comments