Commit 96db80f
authored
perf: Parallelize multi-tenant integration tests (#433)
* perf: Parallelize multi-tenancy integration tests
- Split workflow into setup + parallel test jobs using matrix strategy
- Run 4 test combinations (tokenFlow x tenant) in parallel instead of sequentially
- Reduces execution time from ~2 hours to ~30 minutes
- Added test artifact uploads for each matrix job
- Added test-summary job to aggregate results
- Updated deprecated ::set-output syntax to GITHUB_OUTPUT
* fix: Move CF login and credential fetch into each parallel job
GitHub Actions blocks passing secrets via job outputs for security.
Each parallel job now does its own CF login and fetches credentials
within the same job using step outputs instead of job outputs.
* perf: Further optimize with test class parallelization and caching
- Add testClass dimension to matrix (3 classes Γ 2 tokenFlows Γ 2 tenants = 12 parallel jobs)
- Each job runs only one test class instead of all 3
- Add Maven dependency caching via setup-java
- Add CF CLI caching
- Expected time: ~15-20 mins (down from ~50 mins)
* perf: Parallelize integration tests in deploy workflows
* updated workflow file to test the senario
* updated the workflow file
* perf: Parallelize single-tenant integration tests
* perf: Parallelize single-tenant deploy integration tests1 parent 1cf22d0 commit 96db80f
6 files changed
Lines changed: 292 additions & 83 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
20 | 30 | | |
21 | 31 | | |
22 | 32 | | |
| |||
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
32 | 50 | | |
33 | 51 | | |
| 52 | + | |
34 | 53 | | |
35 | | - | |
| 54 | + | |
36 | 55 | | |
37 | 56 | | |
38 | 57 | | |
39 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
40 | 65 | | |
41 | 66 | | |
42 | 67 | | |
| |||
47 | 72 | | |
48 | 73 | | |
49 | 74 | | |
50 | | - | |
| 75 | + | |
51 | 76 | | |
52 | 77 | | |
53 | 78 | | |
| |||
88 | 113 | | |
89 | 114 | | |
90 | 115 | | |
91 | | - | |
92 | | - | |
| 116 | + | |
| 117 | + | |
93 | 118 | | |
94 | 119 | | |
95 | 120 | | |
| |||
122 | 147 | | |
123 | 148 | | |
124 | 149 | | |
125 | | - | |
126 | | - | |
| 150 | + | |
| 151 | + | |
127 | 152 | | |
128 | 153 | | |
129 | | - | |
| 154 | + | |
130 | 155 | | |
131 | 156 | | |
132 | 157 | | |
133 | 158 | | |
134 | 159 | | |
135 | 160 | | |
136 | | - | |
| 161 | + | |
137 | 162 | | |
138 | 163 | | |
139 | 164 | | |
| |||
188 | 213 | | |
189 | 214 | | |
190 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
191 | 223 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
Lines changed: 65 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| |||
111 | 121 | | |
112 | 122 | | |
113 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
114 | 132 | | |
115 | 133 | | |
| 134 | + | |
116 | 135 | | |
117 | | - | |
| 136 | + | |
118 | 137 | | |
119 | 138 | | |
120 | 139 | | |
121 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
122 | 147 | | |
123 | 148 | | |
124 | 149 | | |
| |||
129 | 154 | | |
130 | 155 | | |
131 | 156 | | |
132 | | - | |
| 157 | + | |
133 | 158 | | |
134 | 159 | | |
135 | 160 | | |
| |||
170 | 195 | | |
171 | 196 | | |
172 | 197 | | |
173 | | - | |
174 | | - | |
| 198 | + | |
| 199 | + | |
175 | 200 | | |
176 | 201 | | |
177 | 202 | | |
| |||
204 | 229 | | |
205 | 230 | | |
206 | 231 | | |
207 | | - | |
208 | | - | |
| 232 | + | |
| 233 | + | |
209 | 234 | | |
210 | 235 | | |
211 | | - | |
| 236 | + | |
212 | 237 | | |
213 | 238 | | |
214 | 239 | | |
215 | 240 | | |
216 | 241 | | |
217 | 242 | | |
218 | | - | |
| 243 | + | |
219 | 244 | | |
220 | 245 | | |
221 | 246 | | |
| |||
270 | 295 | | |
271 | 296 | | |
272 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
273 | 305 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
0 commit comments