-
Notifications
You must be signed in to change notification settings - Fork 1
test: gate memory-path benchmarks in baselines (parse + ZIP export) #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
93cb445
test: gate memory-path benchmarks in baselines (parse + ZIP export)
clean6378-max-it d4dee52
fix(ci): seed ubuntu baselines and fix ruff/mypy benchmark regressions
clean6378-max-it 717d1ea
fix(test): harden benchmark gate and tracemalloc fixtures (PR review)
clean6378-max-it 0f5e1ab
fix(ci): ruff format check_benchmark_regression.py
clean6378-max-it 2fb39bc
tests/benchmarks/conftest.py for i in range(count): write…
clean6378-max-it 1c66666
fix(test): align baseline refresh slack and export timestamp rollover
clean6378-max-it File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,3 +16,4 @@ coverage/ | |
| coverage.xml | ||
| benchmark-results.json | ||
| benchmarks/_raw.json | ||
| benchmarks/_ci/ | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,19 @@ | ||
| .PHONY: update-baselines check-benchmarks clean-benchmark-artifacts | ||
| .PHONY: seed-baselines-local update-baselines check-benchmarks clean-benchmark-artifacts | ||
|
|
||
| update-baselines: | ||
| pytest tests/benchmarks/ --benchmark-only --benchmark-json=benchmarks/_raw.json -o addopts= | ||
| python scripts/reduce_baselines.py benchmarks/_raw.json benchmarks/baselines.json | ||
| # WARNING: captures timings on THIS machine. Production baselines must match ubuntu-latest CI. | ||
| # Prefer downloading benchmark-results.json from a CI artifact, then: | ||
| # python scripts/reduce_baselines.py benchmark-results.json benchmarks/baselines.json --slack 1.5 | ||
| seed-baselines-local: | ||
| @echo "WARNING: seed-baselines-local uses this host's timings; CI gates on ubuntu-latest." >&2 | ||
| PYTHONPATH=. pytest tests/benchmarks/ --benchmark-only --benchmark-json=benchmarks/_raw.json -o addopts= | ||
| PYTHONPATH=. python scripts/reduce_baselines.py benchmarks/_raw.json benchmarks/baselines.json --slack 1.5 | ||
|
|
||
| # Deprecated alias — kept for muscle memory; see seed-baselines-local warning above. | ||
| update-baselines: seed-baselines-local | ||
|
|
||
| check-benchmarks: | ||
| pytest tests/benchmarks/ --benchmark-only --benchmark-json=benchmark-results.json -o addopts= | ||
| python scripts/check_benchmark_regression.py benchmark-results.json benchmarks/baselines.json | ||
| PYTHONPATH=. pytest tests/benchmarks/ --benchmark-only --benchmark-json=benchmark-results.json -o addopts= | ||
| PYTHONPATH=. python scripts/check_benchmark_regression.py benchmark-results.json benchmarks/baselines.json | ||
|
|
||
| clean-benchmark-artifacts: | ||
| rm -f benchmarks/_raw.json benchmark-results.json |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,24 @@ | ||
| { | ||
| "_note": "Gated means from ubuntu-latest CI benchmark-results.json (post-cache PR #90). Excluded from gate: test_parse_session_small, test_search_full_corpus (sub-ms CI noise). Refresh via make update-baselines on ubuntu.", | ||
| "updated": "2026-06-17T21:00:00Z", | ||
| "_note": "Gated means from ubuntu-latest CI benchmark-results.json (PR #97, run 28126772276). Excluded from gate (recorded for reference): test_parse_session_small, test_search_full_corpus (sub-ms CI noise). Memory benchmarks use extra_info.peak_bytes (bytes); latency uses stats.mean (seconds).", | ||
| "updated": "2026-06-24T20:15:37Z", | ||
| "machine": "Linux", | ||
| "groups": { | ||
| "parse": { | ||
| "test_parse_session_medium": 0.002956, | ||
| "test_parse_session_large": 0.029678 | ||
| "test_parse_session_small": 0.00010518068718225604, | ||
| "test_parse_session_medium": 0.002991333112179635, | ||
| "test_parse_session_large": 0.032311203818181436, | ||
| "test_parse_large_peak_memory": 2032028.0 | ||
| }, | ||
| "export": { | ||
| "test_bulk_export_session_count[sessions-10]": 0.004278, | ||
| "test_bulk_export_session_count[sessions-50]": 0.021144, | ||
| "test_bulk_export_session_count[sessions-100]": 0.042003 | ||
| "test_bulk_export_session_count[sessions-10]": 0.0042825538530803925, | ||
| "test_bulk_export_session_count[sessions-50]": 0.021406330209302382, | ||
| "test_bulk_export_session_count[sessions-100]": 0.04229194749999898, | ||
| "test_bulk_export_zip_peak_memory[sessions-10]": 350628.0, | ||
| "test_bulk_export_zip_peak_memory[sessions-50]": 506454.0, | ||
| "test_bulk_export_zip_peak_memory[sessions-100]": 694088.0 | ||
| }, | ||
| "search": {} | ||
| "search": { | ||
| "test_search_full_corpus": 0.0011120838654706596 | ||
| } | ||
|
wpak-ai marked this conversation as resolved.
|
||
| } | ||
| } | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.