Commit b9b3c5a
committed
Bug 2050049 - Dump and report a profile when an xpcshell test is about to time out, r=ahal.
Arm the profiler's scheduled off-main-thread dump (scheduleDumpToFile) shortly
before the harness timeout fires, so a test wedged in a synchronous run -- where
the main-thread nsITimer in head.js could never fire -- still leaves a profile.
The harness picks the artifact path, giving a retried run a _retry suffix (and a
numeric counter on collision) so it doesn't overwrite an earlier run's profile,
and reports the written file via a structured test_status so it becomes a
FAIL-named TestStatus marker the dashboards read and is downgraded to expected
on a retried run.
Differential Revision: https://phabricator.services.mozilla.com/D3085211 parent 93441d7 commit b9b3c5a
2 files changed
Lines changed: 74 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
655 | 650 | | |
656 | 651 | | |
657 | 652 | | |
| |||
798 | 793 | | |
799 | 794 | | |
800 | 795 | | |
801 | | - | |
802 | | - | |
| 796 | + | |
| 797 | + | |
803 | 798 | | |
804 | 799 | | |
805 | 800 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
| |||
454 | 457 | | |
455 | 458 | | |
456 | 459 | | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
457 | 483 | | |
458 | 484 | | |
459 | 485 | | |
| |||
990 | 1016 | | |
991 | 1017 | | |
992 | 1018 | | |
| 1019 | + | |
993 | 1020 | | |
994 | 1021 | | |
995 | 1022 | | |
996 | 1023 | | |
997 | 1024 | | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
998 | 1054 | | |
999 | 1055 | | |
1000 | 1056 | | |
| |||
2568 | 2624 | | |
2569 | 2625 | | |
2570 | 2626 | | |
| 2627 | + | |
2571 | 2628 | | |
2572 | 2629 | | |
2573 | 2630 | | |
| |||
0 commit comments