Repository navigation
test: prune and speed up tests/benchmarks - #361
Merged
Merged
Conversation
…synthetic catalog for rejection controls
…ant matrices, run CLIs in process
There was a problem hiding this comment.
ℹ️ Review skipped · 3201843
No reviewable content was selected for this run.
This was referenced Nov 24, 2026
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.
Speeds up the
tests/benchmarks/scope: it now runs in a little over half the wall time and about a third less summed test time. No scoring rule, release gate or hash-binding check loses coverage.Before / after (
tests/benchmarks,-n 8 --dist worksteal, same host load)Changes by reason
test_release_versions: 4 xdist workers each validated the full shipped catalog (11–16 s setup each). It is now validated once in one test, markedslow. Rejection controls (omitted suite, count, reference, scorer, tag, extra suite, corrupt annotation cohort) run against a synthetic registry with stubbedvalidate.test_catalog_validation_reusecovers real file-hash rejection on a synthetic catalogtest_current_scoring_controls::test_current_corrections_run...(re-ran all 4,227 controls)test_standalone_evaluation::test_declared_acceptance_scenarios(every active control);check_scoring_regressionsbehaviour is covered intest_catalog_validation_reuseandtests/test_scoring_regressions.pytest_content_scopes::test_scope_component_controls...(re-ran 10 registry IDs)test_checkout_entrypoint_precedence::test_complete_cli_help...(4 s subprocess)test_entrypoint_prioritizes_checkout_over_noneditable_wheelprobes every script bootstraptest_publication: one module-scoped Web Search checkout and release instead of one git repo per test; the version-label and viewer-filter matrices loop in one testtest_publication_blob_integrity: one module git checkout; 15 defect×boundary combinations cut to 7 (every defect throughbuild, andchangedthroughdatasets/records; all three boundaries sharedatasets())test_article_literal_boundaries: cases 38/39/40/41/101 cut to 38 (x.com) and 101 (xueqiu), the two post-host families; the article fixture caches the shippedtasks.jsoninstead of re-reading it per testtest_article_post_coverage_integrationstill runs all five casesmain()in process; one module-scopedcatalog_release(); the reference-correction test is merged into the installed-catalog testHeavy shipped-data validations (outside this scope)
fairness,risk-control,popular-sites,ground-truthandscoring-regressionslive undertests/root, which another lane owns. Note thattests/test_scoring_regressions.py::test_every_registered_false_verdict_control...re-scores every active control in one serial test (~7 s). That is the same worktest_declared_acceptance_scenariosalready does in parallel, so it could keep only the root-cause pairing check over the registry.tests/conftest.py::validated_catalogandtests/helpers.py::shipped_suite_validationsno longer have any users.Verification
pytest tests/benchmarks -n 8: 11,875 passedtests/baselinesplus both architecture tests: 35 passed, unchangedmake lint-check: passedlexbench-webfetch version: scoring_source_sha2560fe89317…169e, unchangedPart of #356