Repository navigation
test: measure a sibling minority against half the family and the largest cluster - #243
Merged
Merged
Conversation
…est cluster The #200 minority, fewer than a third of the family, never holds for a pair in the four- and five-member NodaTime families: a hash copied into InstantSet and LocalTimeSet passed the sweep. A member is now extra when fewer than half the family has it, and a body is a lone body when fewer siblings share it than the family's largest body cluster. 24 sub-family divergences surfaced (discrete vs continuous ranges, the TimeSpan-stepped ranges, the calendar-bearing NodaTime arities, the store truncation and normalization groups); each is waived with its reason. The new seed copies the hash into the two NodaTime sets and is caught; the old rule passed it. The #200 seed is still caught. Closes #236 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The minority sweep (#236) reports IsInfinity($T) on DateRange, DateTimeOffsetRange and DateTimeRange as 3 of 9 core ranges. Only the temporal ranges have extremes that stand for PostgreSQL ±infinity, so only they keep such a bound under Shift and Expand (#224). Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Closes #236
Problem
#200's minority (
count == 1 || count * 3 < n) never holds for a pair in the NodaTime families (5 value sets, 5 arities, 4 ranges). The pre-tag analysis copied #200's seeded hash intoInstantSetandLocalTimeSet, andCloneDivergenceTestspassed.Change
test/oracles/CloneSweep.cs:MinorityDivisor = 2), or in one sibling.test/oracles/clone-waivers.json: 24 sub-family divergences surfaced, each waived with its reason:IsDiscrete, the step functions andValues();TimeSpan-steppedShift/Expand/Spliton the timestamp ranges;InstantSet<T>/LocalTimeSet<T>From;IsovsExtendedIsoround-trip pattern;storeValueandnormalizeValuegroups.None of the existing waivers went stale.
docs/oracles.mdand theCloneDivergenceTestsremarks state the new measure and its remaining limit. A split that is two against two in a family of four still looks like no consensus.Tests
hash-by-reference-copied-into-two-nodatime-sets.patch: copiesGetHashCode() => _elements.GetHashCode()intoInstantSetandLocalTimeSet. It is caught asInstantSet + LocalTimeSet · GetHashCode() · lone body. With the oldCloneSweep.csand the same seed, nothing is reported.dotnet run tools/oracles.cs seeds hash-by-reference: both seeds (this one and Clone sweep goes quiet when two new siblings share a divergence #200'sInt32Set + Int64Set)CAUGHT.dotnet run tools/oracles.cs clones: 174 divergences, 174 waived, 0 stale. Conventions 395 passed.🤖 Generated with Claude Code