Repository navigation
test(perf): tiered scale fixtures and pytest markers (#1183) - #1207
Conversation
Introduces explicit small/medium/large scale tiers so performance and regression tests run in the right verification gate (issue #1183). - tests/infra/scale_fixtures.py adds session-scoped tier_small_db (~100 convs / ~1k msgs), tier_medium_db (~1k / ~10k), and tier_large_db (~10k / ~100k) backed by the realistic-distribution seeder already used by tests/benchmarks/conftest.py - pyproject.toml + tests/conftest.py register matching scale_small, scale_medium, scale_large markers - devtools/verify.py defaults to "-m not scale_medium and not scale_large"; --lab drops the medium exclusion; nightly CI workflow .github/workflows/nightly-scale.yml owns scale_large - tests/benchmarks/test_scale_tiers.py demonstrates the contract with FTS5 search and list_conversations exercises at each tier - tests/unit/devtools/test_verify.py covers the new pytest marker composition (and updates skip-slow expectations) - docs/test-quality-workflows.md gains a Scale Tier Model section via devtools/render_quality_reference.py Ref #1183 Co-Authored-By: Claude <[email protected]>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (9)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c7025ef1fa
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Backlog batch filed (2026-05-17)Net-new issues opened in a planning pass, grouped by tier for visibility. Tier A — observed-but-unfiled tech debt
Tier B — substrate work in docs but not tracked
Tier C — operational / observability
Tier E — privacy/security hardening
Tier F — release/distribution
|
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Introduce explicit small / medium / large scale tiers so performance and
regression tests run in the correct verification gate. Closes #1183.
Problem
tests/benchmarks/mixes fixture sizes (1k → 50k message DBs) without adocumented contract for which tier belongs in which gate. The default
devtools verifybaseline either runs every benchmark or none of them;operators have no way to express "quick perf sanity vs lab perf evidence
vs nightly perf gate" without reading source. Issue #1183 (under the
#997 closure thread) tracks this gap.
Solution
tests/infra/scale_fixtures.pyexposes session-scoped tier factoriestier_small_db(~100 convs / ~1k msgs),tier_medium_db(~1k / ~10k),and
tier_large_db(~10k / ~100k). They reuse the realistic-distributionseeder in
tests/benchmarks/conftest.pyso the new fixtures inherit thearchive shape the existing benchmarks already trust.
pyproject.tomlandtests/conftest.pyregister matching pytestmarkers
scale_small,scale_medium,scale_large.devtools/verify.pydefaults the pytest step to-m "not scale_medium and not scale_large";--labdrops the mediumexclusion; the new
.github/workflows/nightly-scale.ymlownsscale_largeand is the only scheduled gate that exercises it.tests/benchmarks/test_scale_tiers.pydemonstrates the contract withFTS5 search and
list_conversationsexercises at each tier.tests/unit/devtools/test_verify.pyadds explicit coverage for thedefault / lab / skip-slow marker composition (and is updated for the
pre-existing
verify-closure-matrixstep that the old fixture listmissed).
docs/test-quality-workflows.mdgains a generated "Scale Tier Model"section documenting the tier table and how to add a new scale
benchmark; ratio-based assertions (large/medium, medium/small) are
recommended over absolute milliseconds to keep tests host-portable.
Verification
nix develop -c devtools verify --quick→ exit 0 (20.9s).nix develop -c pytest -q -n 0 -p no:randomly tests/unit/devtools/test_verify.py→ 30 passed.
nix develop -c pytest -q -n 0 -p no:randomly tests/benchmarks/test_scale_tiers.py -m scale_small→ 2 passed, 4 deselected.
nix develop -c mypy tests/infra/scale_fixtures.py tests/benchmarks/test_scale_tiers.py devtools/verify.py→ Success.
nix develop -c devtools render-all --check→ exit 0 (run viadevtools verify --quick).The default-baseline pytest step from
devtools verify --seed-testmoninherits 11 pre-existing master failures (topology / artifact-graph /
storage_records harness drift) that are unrelated to this PR; confirmed
reproducible on
origin/masterbefore staging any changes here.Closes #1183