Commit 9faff18
committed
gh-142368: Fix transient error handling in inspection tests
Tests for external inspection were failing intermittently on ppc64le and
s390x platforms due to UnicodeDecodeError and RuntimeError when reading
from live processes. The _check_exception_status method had no exception
handling at all, and _get_frames_with_retry was missing UnicodeDecodeError
from its suppressed exceptions.
Added TRANSIENT_ERRORS tuple to consolidate the exceptions that can occur
when reading process memory, and RETRY_DELAY constant to unify sleep
intervals. Both affected methods now properly catch all transient errors
and retry, matching the pattern used elsewhere in the test file.1 parent 5b5ee3c commit 9faff18
1 file changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
1713 | 1717 | | |
1714 | 1718 | | |
1715 | 1719 | | |
1716 | | - | |
| 1720 | + | |
1717 | 1721 | | |
1718 | 1722 | | |
1719 | 1723 | | |
| |||
2505 | 2509 | | |
2506 | 2510 | | |
2507 | 2511 | | |
2508 | | - | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
2509 | 2517 | | |
2510 | 2518 | | |
2511 | 2519 | | |
| |||
2515 | 2523 | | |
2516 | 2524 | | |
2517 | 2525 | | |
2518 | | - | |
| 2526 | + | |
2519 | 2527 | | |
2520 | 2528 | | |
2521 | 2529 | | |
| |||
2648 | 2656 | | |
2649 | 2657 | | |
2650 | 2658 | | |
2651 | | - | |
| 2659 | + | |
2652 | 2660 | | |
2653 | 2661 | | |
2654 | 2662 | | |
2655 | 2663 | | |
2656 | 2664 | | |
2657 | 2665 | | |
2658 | | - | |
| 2666 | + | |
2659 | 2667 | | |
2660 | 2668 | | |
2661 | 2669 | | |
| |||
2674 | 2682 | | |
2675 | 2683 | | |
2676 | 2684 | | |
2677 | | - | |
| 2685 | + | |
2678 | 2686 | | |
2679 | 2687 | | |
2680 | 2688 | | |
| |||
0 commit comments