Repository navigation
CI: per-test coverage map and the Smoke plan branch that selects engine modules by it (Part of #6278, item 5) - #6998
Conversation
…ne modules by it (Part of #6278, item 5) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6998 @ c3c095b: 3 failed check(s) == equivalence-e2e (failure) -- infra == full-suite part 1/2 (failure) -- real == shard 3/3 (failure) -- infra |
…x when the name is absent (14 s -> 0.4 s; the time ratchet failed on CI) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (6c81317) is not the one a maintainer labelled |
|
No description provided. |
|
PR #6998 @ 6c81317: 15 failed check(s) == Pre-gate (Vault Sentinel, X-Ray, Supply Chain) (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == durations key (cancelled) -- infra == evidence report level deltas (advisory) (cancelled) -- infra == full-suite (failure) -- real == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (failure) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == plan (cancelled) -- infra == plan the suite parts (cancelled) -- infra == publish-history (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
No description provided. |
|
No description provided. |
|
No description provided. |
Part of #6278 (item 5, the engine side: a per-test coverage map and the planner branch that reads it)
Checklist: partial [c:cc68bcd4] -- the nightly collection step, the map artifact and its freshness check are not wired, so no PR selects by the map yet
Checklist: partial [c:9e7776d2] -- the replays that need an engine selection (none measured here); the README / register / test_zos_probes replays were met by earlier slices
What
tests/tools/coverage_map.py(new, stdlib only):buildreads coverage.py's SQLite data from a full instrumented run (pytest tests/ --cov=gitgalaxy --cov-context=test) into{gitgalaxy module: [test files that executed it]}plusalways(the test files that glob the engine tree).selectreturns the covering tests, or None (run the full suite) for a missing map, a module the map lacks, a module only import-time lines cover, or one more than 40% of the known test files cover (thecore/standardsspine).suite_select_plan.py: a changedgitgalaxy/**.pyisselectwhen the map (--coverage-map, default.engine_test_map.json) proves it, addingalwaysand TREE_GUARDS; otherwisefull, as before. With no map file every engine PR isfull, so this PR changes no PR's reach today.Evidence
tests/core_engine/test_prism.pyrun with--cov=gitgalaxy --cov-context=test(private--targetinstall of coverage and pytest-cov), thencoverage_map.py build: 85 modules, 1 test file, 49 engine-tree readers;select gitgalaxy/core/prism.pycorrectly answers full (1 of 1 test files covers it). Tests: 8 new intest_coverage_map.py(bothline_bitsandarctables, import-time-only, spine, unmapped, foreign layout), 6 new intest_suite_select_plan.pypinning select and every full case.pr_gates --fastand the tree-wide guards are green (see the checks).Class / Sibling gaps
Class: changed files the Smoke plan cannot map to tests and so runs in full. Members: engine
gitgalaxy/**.py(handled here, given a map; no map is committed or collected yet); engine data files (*.jsonbrains, config: full, no trace of a data read maps it to a module); new engine modules (full until the next nightly map);tests/conftest.py, fixtures and data undertests/(full, unchanged from #6981); tests/tools helpers, test modules, docs and agent config (handled in #6981, #6857, #6642).Sibling gaps: the nightly collection (a slower instrumented full run, about 1.3-2x the suite, and where its artifact lives) is a different mechanism: workflow plus cache; engine data-file selection by reader (different mechanism).
Remaining slices
full-suite-durations-style job step: run with--cov-context=test,coverage_map.py build, save the map as anactions/cacheentry (workflow file, ci-workflows rule 5 cost note: the extra nightly runner-minutes).suite-planjob restores the newest map and passes--coverage-map; a freshness check (map built from a commit within N days, else full) and a replay of the last ~50 merged PRs for the share that would select (--replaymust be taught to take the map).Cost note (ci-workflows rule 5)
No workflow change, no new job or step: nothing runs differently today. Slice 1 adds nightly runner-minutes; it will carry its own measurement.
🤖 Generated with Claude Code