Repository navigation
Cover a base URL with a path, a redirecting server, and exponent-form values - #24
Merged
Merged
Conversation
… values Three wire-format edges no test drove: a base URL under a sub-path keeps the path in front of /api/metrics; a 301 is not followed (the body is streamed, so HttpURLConnection throws HttpRetryException) and the report is dropped with a FINE "could not deliver" line; and json() writes values as Double.toString does, exponent form included, which is still valid JSON. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Self-review rubric (anchored on CI run 39580534220 and the diff):
Judgment calls flagged for the maintainer:
Summary: three characterization tests on wire-format edges. CI is green across the matrix, and no production change was made. This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
1 of 2 tasks
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 covering wire-format edges that no existing test drove. Only
TraceClientTest.javais changed; production code is untouched.report_keepsAPathInTheBaseUrlInFrontOfApiMetrics: a base URL under a sub-path (.../trace/) is posted to/trace/api/metrics. Only the trailing slashes are dropped.report_aRedirectIsNotFollowedAndIsLoggedFine(characterization): a server answering301is not followed.send()streams the body with a fixed length, soHttpURLConnectionthrowsjava.net.HttpRetryException: cannot retry due to redirection, in streaming mode. The report is dropped, and a FINE[trace] could not deliver ...line is logged. The redirect target is never requested.json_writesValuesAsDoubleToStringDoesWhichIsStillValidJson:valueis written asDouble.toStringwrites it (1.0,1.0E7,1.0E20,1.0E-5,-0.0,Double.MAX_VALUE). These are all valid JSON numbers, but the trace server has to accept the upper-case exponent form.No tracking issue: these gaps were found during triage by comparing
send()/json()with the test file.Skipped this cycle: #13 and #15 both change what is sent on the wire or how the opt-out reads, and each asks for a maintainer decision. They are left open for that decision.
Test plan
mvn -B verifylocally (Java 21):Tests run: 81, Failures: 0, Errors: 0, Skipped: 0, including the three new testsbuild (8),build (17),build (21)green. The Java 8 leg confirms theHttpRetryExceptionbehaviour on the floor JDK.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