Repository navigation
Test opt-out precedence, a blank base URL and whitespace trimming - #11
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Self-review rubric (anchored on CI run 39242533100 and local
Judgment note: Summary: 4 characterization tests are added for opt-out precedence, a blank base URL and whitespace trimming. CI is green. No findings block 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: four characterization tests are added to
test/test_trace_client.cppfor README "Turning it off" promises that had no assertion. No production code is changed.doNotTrackOptsOutWhateverTraceUsageReportingSays—TRACE_USAGE_REPORTING=ondoes not cancelDO_NOT_TRACK=1, andTRACE_USAGE_REPORTING=offopts out even whenDO_NOT_TRACK=0("Any one of these yields a client that does nothing").disabledReasonIsTheFirstOptOutThatApplies— when several conditions hold,disabledReason()is the first in the documented order:"config"over"no key"and over"unavailable","no key"over"unavailable"("the first that applies is the reason").aBlankBaseUrlIsUnavailable— an empty or all-whitespace base URL gives reason"unavailable", andreport/closeon it are harmless (the README lists "a blank base URL" but only the blank application name was tested).surroundingWhitespaceIsNotSent— whitespace around the base URL, application and key is not sent in the path,Authorization,User-Agentor JSON body (current behaviour ofTraceClient::start).All four are registered in
main()'stests[]table.Test plan
make test(g++, C++11,-Wall -Wextra -pedantic -Werror):50 tests, 0 failed checks(46 before + 4 new)make test STD=c++20:50 tests, 0 failed checksBuildmatrix (linux, linux-libcurl, linux-sanitizers, macos, windows) green on the PR headSkipped issues
TRACE_CLIENT_CURLoverride ignored on Windows) was not taken: the issue explicitly asks the owner to choose between honouring the override and documenting the current behaviour, and that decision has not been recorded.No tracking issue — gap found during triage.
This 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