Repository navigation
Conversation
Keep the deliberate trace function inside the existing CPU measurement context so collections of prior test heaps do not enter the ratio. Preserve every input and assertion. Signed-off-by: zlareb1 <[email protected]>
7 tasks done
Assemble the real app in an isolated interpreter with explicit route settings. Keep every existing route classification and tenancy assertion. Signed-off-by: zlareb1 <[email protected]>
7 tasks done
…-wide-integer-cost-gc
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.
Both changed files are byte-identical to
mainafter the cost check landed in #874 and the route census landed in #881. This PR is closed as incorporated. Its earlier failed checks remain failures; closure does not claim a merge of this head.Related: #881
Related: #874
Changelog category (leave one):
Why
The deep-key CPU ratio test deliberately installs a tracer to detect repeated prefix copying. Its timer also includes garbage collection of the process heap, whose contents depend on earlier tests. An observation run recorded a full collection inside a timed sample. That demonstrates measurement contamination; it does not establish the cause of the earlier failed ratio.
Scope and risk
Use the existing
untraced()context to collect before timing and pause GC, then install the required tracer inside it. The innerfinallyclears that tracer; the outer context restores the original tracer and GC state, including an already-disabled collector.The same inputs, three CPU samples, strict eightfold ratio and final path assertion remain. The deliberate tracer stays active during every timed call, preserving sensitivity to quadratic prefix copying. The production traversal and temporary parent entries are acyclic.
The related route-census repair also builds a fresh authenticated application in an isolated interpreter, with optional OAuth-connect routes disabled. Its original classifications and all four assertions remain unchanged. This removes the census's dependence on a cached app built under another configuration.
Compatibility, rollout and rollback
Tests
AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: An agent wrote the change; independent source diagnosis checked the measurement semantics. Fresh whole-diff review and final-head CI are required before merge.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist