Repository navigation
Cover coalescing with infinite values, null tags and server-wide tags - #33
Merged
Merged
Conversation
The coalescing tests drove only finite or NaN values and plain tags. These pin three more paths through report(): an infinite value is the same event as no value; a tag with a null key or value is dropped before the TreeMap key is built, so it neither throws nor makes a different event; and a count carries the install and server-wide tags ahead of its coalesced tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Self-review rubric (scored against the diff and CI run 40833499389):
Observations:
Summary: the PR adds tests only, CI is green on all three JDKs, and no blocking findings remain. This review 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: three characterization tests for paths through the 0.7.0 coalescing code in
report()that no existing test drove. No production code is changed.coalesce_infiniteValuesAreTheSameEventAsNoValue:+Infinity,-Infinityand no value are counted as one event. The existingcoalesce_keysOnNameValueAndTagsButNotTagOrderonly coversNaN.coalesce_aTagWithANullKeyOrValueIsLeftOutOfTheEventAndNeverThrows: a tag map with a null key and a null value goes through the coalescing key (new TreeMap<>(merged), which throws on a null key) without throwing, and is the same event as the map without them. The test acts as a regression guard for the never-throws promise ifwithVersion()ever stops dropping null tags.coalesce_aCountCarriesTheInstallAndServerWideTagsBeforeItsOwn: a count event keeps theinstalland server-widetags:entries, withcoalescedadded last.All three tests assert current behaviour, and no bug was found.
Triage notes (skipped issues)
All four open issues (#13, #15, #27, #31) ask for a maintainer decision on the wire format or the server-wide opt-out contract. Each one lists options, so none was picked up for autonomous implementation this cycle.
Test plan
mvn -B verifyrun locally on Java 21:Tests run: 97, Failures: 0, Errors: 0, Skipped: 0(94 before this change)No tracking issue: this gap was 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