mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-15 13:56:34 +08:00
selection.py learns two things the CI needs to narrow test legs other than Linux x86_64, where the coverage map is recorded: - `platform-suites --repo DIR --rev REV...` lists the platform-specific runner suites: those whose defining test file holds a SKIP_PLATFORM( call or an #if/#ifdef on an OS or architecture macro (the two markers scripts/check-no-test-skips.sh names for a genuinely platform-specific test), and those tests/test_main.c registers under such a conditional. Every revision given is read and the results are united, so a change cannot declassify a suite by dropping its conditionals. Any git failure exits 1. - `filter --whole-suites FILE` writes the view for such a leg: every listed suite runs whole there, its per-test tokens collapsed to the suite; a listed suite the answer did not select is added and marked optional (a build that does not register it drops it with a notice, as a full run never runs it); the answer's own required suites stay required. An unusable list runs everything. Nothing consumes the new view yet. Contract cases in tests/test_test_impact_selection.sh. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>