Skip to content

The GraphQL parser scaling test measures parser work - #1743

Merged
zlareb1 merged 1 commit into
mainfrom
fix/ci-graphql-parser-timing
Nov 30, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
fix/ci-graphql-parser-timing

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Related: #1706

Changelog category

  • CI Fix or Improvement

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 untraced helper 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.

python -m pytest -q tests/unit/test_code_lang_graphql.py -n 4 -p randomly \
  --randomly-seed=461470893361 --cov=server --cov=sdk/python/loom --cov-branch --cov-report=

Ran make format, make lint, and make typecheck. The formatter also finds the adoption page change tracked in #1706.

AI assistance in the code

  • AI-generated. Codex compared the failing timing samples and ran the regression test before and after the change.

Checklist

  • Local format, lint, type checks and focused tests pass.
  • The description names the rollout and rollback.
  • Commits are signed off.

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.

cost uses time.thread_time() instead of perf_counter(), so samples reflect CPU time on the current thread. assert_linear runs inside untraced(), 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.

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>
@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Nov 29, 2026 6:43am UTC
loom-telemetry Ready Ready Preview Nov 29, 2026 6:43am UTC

Request Review

@zlareb1
zlareb1 merged commit 1177772 into main Nov 30, 2026
69 of 73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant