Repository navigation
Distribute serial coverage tests across eight file shards - #814
Merged
Merged
Conversation
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.
Problem
Coverage shard 2/4 timed out after 20 minutes while continuing to run tests in PR #807. The other three test steps finished in 335–656 seconds. Equal file counts have accumulated very unequal runtime. See #813 for job timestamps and attribution.
Root cause
Sorted filenames are assigned modulo the shard count. One four-way shard contains reconnect, retry, cluster redirects and simple-flow modules together. Adding another test file shifts subsequent assignments; the 20-minute capacity cannot reliably absorb the heavy grouping.
Fix
Use eight file shards, updating the matrix/check names, exact-once discovery check, selector count and required report list together. Keep the existing selector, serial tests and separate gcda files, 20-minute test limit, all-shards-success gate, full report merge and unit coverage once on shard 1. This adds four runner builds; no tests or coverage are removed.
Tests
Affected versions
CI only, unreleased master since
4bade818c3642e1771a34e2faddb3fcc9b96c956(#792). No release tag contains that commit. Production binaries are unchanged. Related #679/#683 address earlier standalone capacity and #643 addresses coverage tooling.Fixes #813
🤖 Generated with Claude Code
Note
Low Risk
CI-only workflow tuning; no application, test, or coverage logic changes beyond shard count.
Overview
CI coverage sharding is doubled from four to eight parallel jobs so serial RLTest file shards stay under the 20-minute timeout when modulo assignment piles slow modules into one shard.
Updates in
.github/workflows/ci.ymlinclude the matrix (shard: 1–8), job display name (/8),check_test_shards.pyandselect_test_shard.pyarguments, and the merge step’s required shard report list. Unit tests on shard 1, per-shard gcda capture, and full lcov merge behavior are unchanged—only runner parallelism increases.Reviewed by Cursor Bugbot for commit 884bf43. Bugbot is set up for automated code reviews on this repo. Configure here.