Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Dec 23, 2025

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.

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.
@bedevere-app bedevere-app bot added the tests Tests in the Lib/test dir label Dec 23, 2025
@pablogsal pablogsal enabled auto-merge (squash) December 23, 2025 10:50
@pablogsal pablogsal merged commit 28da1fb into python:main Dec 23, 2025
50 checks passed
@pablogsal pablogsal deleted the gh-142368 branch December 23, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant