Commit 2299600
Run tests as their own Sandcastle jobs
Summary:
This may or may not be a good idea... please look at the `cinderx_ci-...` runs on this diff and see how you feel about this. With this diff I saw my sandcastle jobs as being throttled - I'm not sure if Sandcastle will adapt to the fact that these run quickly over time. The "Duration" for these on the diff page also seems to include queueing time, so you can see they actually run much faster.
This splits our test cases out to run one by one. Now if a test is failing we'll have just a single failure instead of having an entire opaque test run failing.
We can't read the list of tests at build time so we now have a cached list of known tests. There's a new test which tests that the tests are up to date, and if they're not `TestScripts/test_test_defs.sh` can be run and the resulting `/tmp/tests.txt` can be copied over `cinderx/tests.bzl`.
The test runners needed to be updated to have a new `--list` option to print out all of the tests they discovered. There also were some small updates so that the individual tests would successfully run and pass:
* We need to set sys.path on 3.10 in the worker like we do on 3.12+
* When running an individual module on 3.10 we need to fallback to `_runtest_inner2` so that it can run 'test_main` to setup the module. This also means we need to get rid of it's propensity to pre-pend `test.` if a test name doesn't start with that so that we can run `test_cinderx` tests.
* If no tests are run we report success (because our filters can now filter down to 0 tests).
Probably the most annoying thing about this is when we're onboarding a new version we don't get a nice concise list of test failures to update a failures script. I'm curious what people think about that... we could always have some easy-to-enable thing which runs all of the tests.
This also enables base revision retries now that they should be a little faster as they target individual tests.
Reviewed By: alexmalyshev
Differential Revision: D85780300
fbshipit-source-id: 94168f134ba98d62088eaa8c80f16f3f2cc7231a1 parent 895b7a9 commit 2299600
3 files changed
Lines changed: 155 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | | - | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
| |||
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
324 | 369 | | |
325 | 370 | | |
326 | 371 | | |
| |||
476 | 521 | | |
477 | 522 | | |
478 | 523 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | 524 | | |
492 | | - | |
| 525 | + | |
493 | 526 | | |
| 527 | + | |
494 | 528 | | |
495 | 529 | | |
496 | 530 | | |
| |||
519 | 553 | | |
520 | 554 | | |
521 | 555 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | 556 | | |
554 | 557 | | |
555 | 558 | | |
| |||
593 | 596 | | |
594 | 597 | | |
595 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
596 | 605 | | |
597 | 606 | | |
| 607 | + | |
598 | 608 | | |
599 | 609 | | |
600 | 610 | | |
| |||
687 | 697 | | |
688 | 698 | | |
689 | 699 | | |
| 700 | + | |
690 | 701 | | |
691 | 702 | | |
692 | 703 | | |
| |||
752 | 763 | | |
753 | 764 | | |
754 | 765 | | |
755 | | - | |
756 | 766 | | |
757 | 767 | | |
758 | 768 | | |
| |||
763 | 773 | | |
764 | 774 | | |
765 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
766 | 785 | | |
767 | 786 | | |
768 | 787 | | |
| |||
874 | 893 | | |
875 | 894 | | |
876 | 895 | | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
877 | 902 | | |
878 | 903 | | |
879 | 904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
332 | 366 | | |
333 | 367 | | |
334 | 368 | | |
| |||
375 | 409 | | |
376 | 410 | | |
377 | 411 | | |
378 | | - | |
| 412 | + | |
379 | 413 | | |
380 | 414 | | |
381 | 415 | | |
| |||
622 | 656 | | |
623 | 657 | | |
624 | 658 | | |
| 659 | + | |
| 660 | + | |
625 | 661 | | |
626 | 662 | | |
627 | 663 | | |
| |||
654 | 690 | | |
655 | 691 | | |
656 | 692 | | |
| 693 | + | |
657 | 694 | | |
658 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
659 | 699 | | |
660 | 700 | | |
661 | 701 | | |
| |||
666 | 706 | | |
667 | 707 | | |
668 | 708 | | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | 709 | | |
697 | 710 | | |
698 | 711 | | |
| |||
856 | 869 | | |
857 | 870 | | |
858 | 871 | | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
859 | 878 | | |
860 | 879 | | |
861 | 880 | | |
| |||
924 | 943 | | |
925 | 944 | | |
926 | 945 | | |
927 | | - | |
| 946 | + | |
928 | 947 | | |
929 | 948 | | |
930 | 949 | | |
| |||
987 | 1006 | | |
988 | 1007 | | |
989 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
990 | 1016 | | |
991 | 1017 | | |
992 | 1018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments