Repository navigation
test: prune and speed up root tests m-z - #365
Merged
Merged
Conversation
…ntrol tests (root tests r)
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.
Purpose
Review every top-level test file
tests/test_[m-z]*.py(206 files) for necessity and cost, as part of the suite speed target in #356.xychart-beta title "tests/test_[m-z]*.py at -n 8 (same host, before/after)" x-axis ["wall s", "summed s / 10", "tests / 100"] bar [195, 122, 46.5] bar [46, 31, 36.8]tests/test_[m-z]*.py--durations=0)-n 8 --dist workstealdnstimeout flake)Line count moved little: most of the gain came from shared builds, synthetic populations and table-driven loops that keep every distinct case, not from wholesale deletion. The remaining tests are mainly release-gate, evidence and hash-binding negative controls.
Changes by reason
Fixed
test_moli_provider,test_native_cdp_port,test_native_route_contract,test_packaging_hygiene,test_native_runtime_configurationdnsfailure on main). Fake binaries are now per class/module, rewritten in place, and the moli class warms its binary insetUpClass.test_moli_provider::test_cancel_permission_error_preserves_timeout…test_moli_provider::test_timeout_stops_a_browser_child…sleep(2.1).test_run_benchmarkdelay=.5is replaced by a no-op sleep in tests (13 s → 1.8 s).Shrunk (same behaviour, cheaper input)
test_risk_control_dataset::test_every_contract_validates…(50 s)test_popular_sites_current::test_every_case…(30 s)test_public_tree_privacy(15–31 s)test_webmainbench_assembly(44 s),test_webmainbench_certification_commands(17 s),test_webmainbench_sample_case_correctiontest_wcxb_scoring,_latency_collection,_profile_admission,_report_languagestest_report_templates(36 s → 2 s),test_report_software_versions,test_resource_cohort_boundary,test_optional_reports,test_provider_evidence_boundary, saved-matrix evidence/compositiontest_report_browser_interactions(101 s → 20 s)test_scoring_regressionstests/benchmarks/webfetch/test_standalone_evaluation.py::test_declared_acceptance_scenarios(escaped-pipe field check:test_review_table_literal_serialization.py)Merged (table-driven, every case kept)
Moli debug-log parser (8 → 1), config validation (13 + class → 1), dynamic hints/completion; native-route release negative controls (22 → 1 with subtests); provider registry (44 → 1); package contents (39 → 17); moli version chart validation; failure-category and filter-default tests; record-io, report-language resolution (24 → 1), reference lifecycle track × kind (28 → 1); WCXB cohort defects, assembly, latency authority, metric value tables, owner-command help (54 → 1).
Deleted
test_runtime_entrypoints(9 pyproject/Makefile/ci.yml/.env.example greps), CSS/JS greps intest_webmainbench_reportandtest_report_presentation, title-label grep, catalog-examples AST scan.env)test_report_body_scope, 5 catalog-string tests intest_report_capabilities, translation-map sentences, 3 pinned historical release IDs intest_report_changes, saved-matrix English wording teststest_risk_control_datasettests of compiler/frozen-data shape,test_retrieval_hintsfrozen-dataset checktest_risk_control_report.py(reran the same 100-case build; assertions moved intotest_certified_report_preserves_certificate_bound_files, now also building English),test_timeout_is_failure, legacy completion-wait duplicates,refresh_restores_baseline_pages,test_historical_train_count_remains_1497, duplicate canonical-options test, private cache-structure tests intest_publication_privacytest_public_evidence_views::test_privacy_check_reuses_only_identical_bytesetc.portable_clifailure-sources.jsoncase (nothing reads the file)tests/conftest.py::validated_catalog,tests/helpers.py::shipped_suite_validations(no users after #361)Verification
uv run --frozen --all-extras python -m pytest tests/test_[m-z]*.py -q -n 8 --dist worksteal: 3,659 passed, 22 skipped;tests/test_moli_provider.py6/6 repeated runs green.tests/baselines, architecture tests,tests/benchmarks/webfetchand the non-scope files importing scope helpers: 11,369 passed.make lint-checkpasses.uv run --frozen lexbench-webfetch version: scoring_source_sha2560fe8931734e1ba7282e1e9c8303eea958d20fdcee83d84e87cdc7e08cd08169e(unchanged). No production code changed.Left for follow-up (not changed here)
webmainbench_assembly.py:106callsload_sourcewithoutexpected_count=profile["case_count"](certification passes it); tests patch it. Passing it would remove the monkeypatch.webmainbench_case_correction.apply(hard-codes 200); cachingnative_projection_source()(re-hashed >7,000 times per baseline run); skipping AST work for files without Han characters incheck_source_languages.test_scoring.py::ScoringTestsandtest_reference_quality.pytestlexbench_webfetchcode and arguably belong upstream; kept because upstream coverage is thin.test_release_metadata::test_installed_benchmarks_match_their_frozen_catalogs(~6 s) loads every websearch dataset; kept as the only check.Part of #356