-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-129248: Filter out the iOS log prefix from testbed runner output. #129252
Conversation
!buildbot iOS |
🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit e6c7195 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
Misc/NEWS.d/next/Tools-Demos/2025-01-24-14-49-40.gh-issue-129248.JAapG2.rst
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @freakboy3742 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…tput. (pythonGH-129252) Filter out the iOS log prefix from testbed runner output. (cherry picked from commit a58083811a51764c47fbb7cbd67e87e1124d53e8) Co-authored-by: Russell Keith-Magee <[email protected]>
GH-129283 is a backport of this pull request to the 3.13 branch. |
…utput. (GH-129252) (#129283) Filter out the iOS log prefix from testbed runner output. (cherry picked from commit a580838) Co-authored-by: Russell Keith-Magee <[email protected]>
Modifies the iOS test runner to strip out the log prefix inserted by the Apple system log.
iOS test logs are gathered by streaming the Apple System log looking for log items from the test process. These log prefixes look like:
The existence of these prefixes was preventing the buildbots from parsing log output to discover test failures. Since the prefix doesn't actually help diagnose issues with the Python test suite, this PR strips out the prefix. This matches what the Android test runner does with ADB log prefixes. It doesn't strip the prefix from the iOS setup/teardown code (the ObjC code that instantiates the XUnit test case, which might be helpful in a diagnostic context, but won't interfere with the Python operation
The acid test for this fix is a test failing and being correctly parsed by the buildbot; that's a little difficult to manufacture, though. For review purposes, you can inspect the test log for the buildbot to see that it matches the test output from other platforms; at which point the buildbot log parser should work as it does on any other platform.
Fixes #129248.