Commit 2acf955
acc: Introduce phases; speed up "test-update" 2x. (#4795)
## Changes
- Introduce Phase field in test.toml that allows specifying order in
which tests are run. All tests in Phase=0 are run before tests in
Phase=1
- Introduce 'inherit' tag on acceptance tests config fields that
disables default inheritance of test configs. This is needed as Phase=1
is frequently applied on parent test.
- Simplify acceptance test runner. Previously if there was a single
entry for a given EnvMatrix, it would be omitted from the test name,
e.g. TestAccept/bla/DATABRICKS_BUNDLE_ENGINE=direct would become
TestAccept/bla if "direct" was the only option. Now we keep the full
name (helps to see what variant is being run).
## Why
We have tests that depend on output of other tests. Because of that
"make test-update" has to "go test -update" twice. This is no longer
needed, one update is enough.
## Tests
Manually, by removing all output for local tests and running full
update:
```
% git grep -l 'Local = true' '**/out.test.toml' | find_out_files.py | wc -l
2420
% git grep -l 'Local = true' '**/out.test.toml' | find_out_files.py | xargs rm
```
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent eb9b9a8 commit 2acf955
File tree
13 files changed
+172
-27
lines changed- acceptance
- bundle
- resources/permissions
- templates/default-python
- classic
- serverless-customcatalog
- user_agent
- internal
13 files changed
+172
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
296 | 307 | | |
297 | 308 | | |
298 | 309 | | |
299 | 310 | | |
300 | 311 | | |
301 | 312 | | |
302 | 313 | | |
303 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
304 | 324 | | |
305 | 325 | | |
306 | 326 | | |
| |||
313 | 333 | | |
314 | 334 | | |
315 | 335 | | |
| 336 | + | |
316 | 337 | | |
317 | 338 | | |
318 | 339 | | |
319 | 340 | | |
320 | 341 | | |
321 | 342 | | |
322 | | - | |
323 | 343 | | |
324 | 344 | | |
325 | 345 | | |
326 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
327 | 354 | | |
328 | 355 | | |
329 | 356 | | |
330 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
331 | 362 | | |
332 | 363 | | |
333 | 364 | | |
| |||
336 | 367 | | |
337 | 368 | | |
338 | 369 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
355 | 378 | | |
356 | 379 | | |
357 | 380 | | |
358 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
359 | 389 | | |
360 | 390 | | |
361 | 391 | | |
| |||
405 | 435 | | |
406 | 436 | | |
407 | 437 | | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
413 | 441 | | |
414 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
415 | 448 | | |
416 | 449 | | |
417 | 450 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments