Repository navigation
Stabilize two flaky tests: a JIT-safe allocation measurement, and a leak check that waits for the whole release - #128
Merged
Conversation
…eak check that waits for the whole release Allocation_Channel measured the four token variants one after another; the JIT recompiles hot channel code mid-run (about 370 to 345 bytes a call), so a variant measured before the recompile could exceed the slack. The variants now take turns call by call and the result is the median of seven rounds, as in the heap-growth test. CreatedTarget_NobodyEverReads_TheReaderIsStillReleased checked the command and the connection the moment the reader was disposed; the producer releases them a moment later on its own thread. It now waits for the whole released state, and the polling conditions no longer index a list the producer is appending to. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
electricessence
added a commit
that referenced
this pull request
Nov 12, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
electricessence
added a commit
that referenced
this pull request
Nov 12, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
electricessence
added a commit
that referenced
this pull request
Nov 12, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
electricessence
added a commit
that referenced
this pull request
Nov 12, 2026
Conflicts: the SingleResult wording in mapping.md and the MappedQuery remarks keep master's text with this branch's First and Single additions; whats-new keeps both sets of bullets. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Stabilize two flaky tests:
TokenTerminalTests.Allocation_ChannelandLeakPipelineTests.CreatedTarget_NobodyEverReads_TheReaderIsStillReleased.Both have been failing gate runs without any code change behind them (the allocation test about one run in three, the leak test now and then). Neither needed a change to the library: the fixes are in the tests.
Allocation_Channel: a measurement artifactCreatedTarget_NobodyEverReads...: a race in the test, not in the libraryEventuallyHolds) and still fails with the last failure.tally.Readers[0]) while the producer appends to it, andList<T>.Addstores the new size before the item, so a poll can see a null item. The polling conditions (and the same pattern inWaitUntilBlocked) now useis { Disposes: 1 }/is { Reads: >= 2 }.Not changed
BytesPerCallhelper (AllocationQuickWinTests,DerivedNameCostTests) have not flaked and are untouched, though they are measured the same way.Checks
🤖 Generated with Claude Code