Repository navigation
Make the observability test suite portable (macOS, Python 3.13+) - #1002
Merged
chrisgleissner merged 3 commits intoOct 16, 2026
Merged
Conversation
…on version The canonicalizer matched only a literal /tmp/e2e-observability-fixture- path, so macOS (/var/folders/.../T/) kept the temp dir in the document. And Python 3.11+ print a ~~~^^^ marker line under a traceback frame while 3.13 prints every line of a multi-line statement, so the report differed from the checked-in one. Match the fixture directory wherever tempfile put it, and run the scripted suites with PYTHONNODEBUGRANGES=1 so tracebacks read as they do on 3.10. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The failure detail was the first six lines of the diff, which are the header and context, so a log never said what changed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Linux answers for all of 127/8; macOS has only 127.0.0.1 on lo0 unless an alias was added, and the case errored with Errno 49 instead. Any other OSError still fails the case. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Collaborator
|
Thanks a lot @JC-000 for helping to improve our test infrastructure - much appreciated! |
Collaborator
|
Checked on Linux, Python 3.12.3. The change is limited to tests/lib/observability, so no device E2E suite is affected.
Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1001. A targeted fix for the observability failures discussed on #996. All changes are under
tests/lib/observability, and the expected document is unchanged.tempfileputs it (/var/folders/.../T/on macOS, any TMPDIR without whitespace), not only under/tmp/.PYTHONNODEBUGRANGES=1. Python 3.11+ then print one source line per frame and no~^marker lines, as 3.10 does, so the existing caret rule stays as it is.127.0.0.2cannot be bound (EADDRNOTAVAIL, macOS without a loopback alias). Any otherOSErrorstill fails. On Linux this case behaves as before.Tested with
python -I tests/lib/observability_test.py:python:3.13container (Linux)python:3.14container (Linux)python:3.10containerubuntu:24.04container, Python 3.12.3 (Kubuntu 24.04 userland)ubuntu:24.04container, withtests/requirements.txtinstalled in a venv, all 17 device-free suites give the same results on master (7d96844) and on this branch.web-theme/web-index(no browser in the container), andregistry(see below).Not in this PR: on current master,
registry_testfails becausetests/e2e/io/iec/directory_rename_test.py(#1000) is not registered inrun-testsSUITES.Written with Claude Opus 5.5 in Claude Code and reviewed by a second Opus session.
🤖 Generated with Claude Code