Repository navigation
ci: split coverage tests into four jobs and merge reports - #792
Merged
Merged
Conversation
This was referenced Oct 23, 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.
The serial coverage job runs 793 integration tests and reaches its 40-minute limit before coverage capture. Split that work into four independent jobs, with a 20-minute test limit per shard, then merge their reports under the existing
coverage-ubuntucheck.test*.pyfiles as RLTest and distribute sorted files across four shards. Keep files intact and tests serial within each runner, with isolated gcov data.Validation:
actionlint,git diff --check, and live RLTest collection passed (174 / 205 / 142 / 272 tests; 793 total, no omissions or duplicates). Exercised the workflow's merge command with four traces: hit counts sum correctly, line coverage is combined, and a missing trace fails. Invalid/empty shard selections fail. Historical run timings estimate roughly 9–11 minutes of tests per shard; fresh CI will measure actual durations.This CI repair is separate from the MANAGER.md change in #791.
Note
Low Risk
CI-only workflow and test-sharding utilities; no runtime or product code paths change.
Overview
Splits the monolithic coverage CI job into four parallel shards so integration tests stay under per-runner time limits, then merges LCOV and publishes once under the existing
coverage-ubuntucheck.The workflow adds a
coverage-shardsmatrix (shards 1–4): each runner builds with coverage, runs a disjoint subset oftest*.pyviautils/select_test_shard.py(20-minute timeout vs 40), captures coverage tocoverage-shard-N.info, and uploads artifacts. Shard 1 only runsmake check(C++ unit coverage once) andutils/check_test_shards.py 4to prove RLTest’s default suite is partitioned with no gaps or duplicates.coverage-ubuntudepends on all shards, fails if any shard failed, downloads artifacts, merges withlcov, and uploads to Codecov.New helpers:
select_test_shard.pyround-robin-sortstests/test*.pylike RLTest discovery;check_test_shards.pycross-checks shard file lists againstRLTest --collect-only.Reviewed by Cursor Bugbot for commit cb44d93. Bugbot is set up for automated code reviews on this repo. Configure here.