Repository navigation
Add tests for where the trace installation ID comes from - #170
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Self-review rubric (one intrinsic pass; anchored on
Findings:
Verdict: ready to merge — test-only, anchor green locally and in CI, no do-not-auto-merge path touched. This 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
TraceInstallIdTest(15 tests) characterizesTraceInstallId, which had no direct test: theTRACE_INSTALL_IDvariable is trimmed, and is dropped when unset, blank, or longer than 255 characters; the user data directory is%APPDATA%(falling back toAppData/Roamingunder home) on Windows,Library/Application Supporton macOS/Darwin, and an absoluteXDG_DATA_HOMEor~/.local/shareelsewhere (a relativeXDG_DATA_HOMEand a missing OS name fall through to~/.local/share); and the ID file sits under the trimmed, lower-cased program name.LocalUsageReportingServiceTest, so the vendored file stays as published. The real environment is never read and nothing touches the disk.tests/while Per-file copyright headers cite Apache License 2.0 while LICENSE is Stephenson-NC #104 awaits a decision.Deferred issues
Test plan
mvn -B clean test: 265 tests run, 0 failures, 0 errors (15 of them inTraceInstallIdTest)No tracking issue — gap found during triage.
This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
drafted by Claude on behalf of Daniel Stephenson
🤖 Generated with Claude Code