Skip to content

perf(tests): split long-tail suites, reuse image probe, and stub self-image hashes - #3219

Open
GDemay wants to merge 1 commit into
DeusData:mainfrom
GDemay:perf/test-suite-splits-and-stubs
Open

GDemay wants to merge 1 commit into
DeusData:mainfrom
GDemay:perf/test-suite-splits-and-stubs

Conversation

@GDemay

@GDemay GDemay commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

PR authored with AI assistance on behalf of @GDemay; the commit carries Guillaume's DCO sign-off.

What does this PR do?

Split out from #3210 per maintainer review (Piece 4: suite splits and hash stubs). Standalone on main, with zero workflow changes and zero test coverage removed:

  1. Split 10 long-tail test suites into 14 additional suites (complexity_b, test_impact_git_b/c, mcp_supervisor, pipeline_c/d, pipeline_semantic_manifest_repro_b, c_lsp_b, java_type_scope_b, doc_mentions_b/d/e, cli_b, grammar_probe_f_b) so heavy suites run concurrently across parallel workers and shards.
    • Separated the 22 fork/worker/deadline tests in SUITE(mcp) into SUITE(mcp_supervisor) so the 420+ pure in-process MCP tests run in the parallel wave while supervisor tests stay in the serial tail.
    • Updated TEST_TSAN_SUITES (Makefile.cbm), MSAN_EXCLUDE (scripts/msan.sh), and SERIAL_SUITES / heavy shard list (scripts/run-tests-parallel.sh) so every lane retains identical coverage.
  2. Reuse test-runner-image-probe (~2 MB) instead of copying/hashing the 500–800 MB sanitized test-runner in macOS cli update tests, daemon_runtime blocking-git probe, and test_impact_git diff-driver probes (tests/image_probe_main.c, tests/image_probe_roles.c, tests/test_image_probe.h).
  3. Arm the existing runtime fingerprint hash stub for same-binary lifecycle tests in daemon_bootstrap, daemon_frontend, cli_scope, and daemon_runtime Phase 1 — avoiding repeated multi-hundred-MB SHA-256 reads of the sanitized runner binary while keeping all kernel PID/path/cohort checks live and keeping real SHA-256 hashing in the dedicated fingerprint/cache-reset tests at the end of daemon_runtime.
  4. Template-cache immutable base SHA-1/SHA-256 repos in test_impact_git and add a 10 s TSParseOptions.progress_callback cap on Windows so_parse_crashes matching POSIX alarm(10).

Verification (Apple M3, darwin/arm64, ASan+UBSan, CC=cc CXX=c++)

  • Zero-loss RUN_TEST proof: verified exact multiset equality of all 3,001 RUN_TEST(...) entries across all 13 modified test files (upstream/main vs 58d367c2).
  • Full execution of all 30 modified/split suites via scripts/run-tests-parallel.sh build/p4/test-runner 8:
    • 2,896 passed, 0 failed, 5 skipped (existing SKIP_PLATFORM Linux/Windows guards) across all 217 registered suites with union-guard verification.
    • Highlights: daemon_runtime 20 s, daemon_bootstrap 0 s, cli 20 s, mcp_supervisor 7 s.
  • Contracts: passed scripts/check-no-test-skips.sh, tests/test_parallel_harness_contract.sh, scripts/check-dco.sh.

Checklist

  • Every commit is signed off (git commit -s)
  • Tests pass locally (all 30 modified/split suites under ASan+UBSan, 0 failures)
  • Contracts pass locally (check-no-test-skips.sh, test_parallel_harness_contract.sh)

…-image hashes

Split out from DeusData#3210 per maintainer review (Piece 4: suite splits and hash stubs).

- Split 10 long-tail test suites into 14 additional suites (complexity_b, test_impact_git_b/c, mcp_supervisor, pipeline_c/d, pipeline_semantic_manifest_repro_b, c_lsp_b, java_type_scope_b, doc_mentions_b/d/e, cli_b, grammar_probe_f_b) so heavy tests run concurrently across parallel workers and shards. Exact RUN_TEST multiset match verified across all 3,001 entries in 13 files.
- Separate the 22 fork/worker/deadline tests of SUITE(mcp) into SUITE(mcp_supervisor) so the 420+ in-process MCP tests run in the parallel wave while supervisor tests stay in the serial tail.
- Reuse the ~2 MB test-runner-image-probe binary instead of copying/hashing the 500-800 MB sanitized test-runner in macOS cli update tests, daemon_runtime blocking-git probe, and test_impact_git diff-driver probes.
- Arm the existing runtime fingerprint hash stub for same-binary lifecycle tests in daemon_bootstrap, daemon_frontend, cli_scope, and daemon_runtime Phase 1 while keeping full real SHA-256 verification in the dedicated cache-reset tests at the end of daemon_runtime.
- Cache immutable SHA-1/SHA-256 template repos in test_impact_git and add a 10 s TSParseOptions progress_callback cap on Windows so_parse_crashes matching POSIX alarm(10).
- Update TEST_TSAN_SUITES (pipeline_d, mcp_supervisor), scripts/msan.sh (MSAN_EXCLUDE cli cli_b), and scripts/run-tests-parallel.sh (SERIAL_SUITES and heavy shard list) for full parity.

Signed-off-by: Guillaume Demay <guillaumedemay@hotmail.fr>

This branch has not been deployed

No deployments
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