Repository navigation
The GraphQL parser scaling test measures parser work - #1743
Merged
Merged
Conversation
Use the thread CPU clock and pause tracing and collection while timing each parser input. Coverage and collection can distort the size ratio. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Related: #1706
Changelog category
Why
The GraphQL scaling test counts runner scheduling, coverage tracing, and garbage collection in its parser timings. The same scalar case exceeded the growth limit on the hosted job and on clean main with coverage enabled. Both failing samples show a full collection in the larger run. Failed unit job
Scope and risk
Time parsing and reference extraction with the current thread's CPU clock. Use the existing
untracedhelper to pause coverage tracing and automatic collection during the samples. The test checks all six inputs at 2,000 and 8,000 units against the same 8× growth limit.Compatibility, rollout and rollback
This test-only change rolls back by reverting the timing fixture. It requires no operator steps.
Tests
With the hosted seed and branch coverage, the scalar case failed on clean main before the edit. All 22 tests in the file pass after the edit under the same command.
Ran
make format,make lint, andmake typecheck. The formatter also finds the adoption page change tracked in #1706.AI assistance in the code
Checklist
Note
Low Risk
Test-only timing fixture change; no production code or runtime behavior affected.
Overview
The GraphQL linear-time scaling test now times only parser work instead of wall-clock noise that was failing CI under coverage.
costusestime.thread_time()instead ofperf_counter(), so samples reflect CPU time on the current thread.assert_linearruns insideuntraced(), which turns off coverage tracing and automatic GC for those measurements so tracer overhead and full collections do not dominate the ratio check.Reviewed by Cursor Bugbot for commit 156ab3b. Bugbot is set up for automated code reviews on this repo. Configure here.