Repository navigation
Test install_id_file with a Path object and an existing empty file - #19
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Self-review rubric (PR #19):
Judgment note: tests/test_trace_client.py — Summary: tests-only PR, anchor green, no do-not-auto-merge path touched — ready to merge. This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
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.
Summary
Stage B (unit-test expansion) cycle, scoped to the installation-ID file path. Characterization tests only; no production code changed.
test_install_id_file_accepts_a_path_object—install_id_file=andTraceClient.install_id_from_fileare both annotatedUnion[str, os.PathLike[str]], but every existing test passed astr. The new test passes apathlib.Path(with a parent directory that does not exist yet) and checks that the ID is written, read back, used by the constructor, and sent as theinstalltag.test_install_id_from_file_writes_an_id_into_an_existing_empty_file— the branch where the file exists but holds no lines had no test. The test checks that a fresh UUID is written into it.No tracking issue — gap found during triage.
Skipped issues
MAX_TAGS) was deferred: the issue says the fix is Java-visible and has to be decided together with trace-client-java, so it can't be changed from the Python side alone.Java parity
No Java-visible behavior changed (tests only).
Test plan
python3 -m unittest -vlocally on Python 3.8.10:Ran 56 tests,OKtest (3.8),test (3.10),test (3.12)greenThis PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson