Skip to content

ci: run the OSS-CLUSTER full-suite cells as two shards each - #899

Merged
fcostaoliveira merged 1 commit into
masterfrom
claude/ci-shard-cluster-898
Oct 26, 2026
Merged

fcostaoliveira merged 1 commit into
masterfrom
claude/ci-shard-cluster-898

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The two ci.yml cells that run the whole suite against an OSS cluster now use almost all of the 40-minute "Run tests" limit. On master 33ff193, the TLS cell's step took 2393 s, 7 s short of the limit, and on #885 (da5debe) it took 2412 s and timed out while tests were still passing. Every other ci.yml test cell takes at most 27 minutes. Details are in #898.

Change

  • OSS-CLUSTER API: TCP Plaintext and OSS-CLUSTER API: TCP TLS each run as two cells, (shard 1/2) and (shard 2/2).
  • Each cell takes its files from utils/select_test_shard.py <n> 2, the helper the ASAN, TSAN and UBSan full-suite cells already use. Shard 1 also runs utils/check_test_shards.py 2, which fails the job if any test is missing from both shards or present in both.
  • The limit stays at 40 minutes. The step comment is updated.

No required status checks reference the old cell names (branch protection lists none).

Tests

  • utils/check_test_shards.py 2 passes locally: shard 1 has 48 of 95 files (354 tests) and shard 2 has 47 (568 tests), with all 922 tests assigned exactly once.
  • The workflow file parses as YAML.
  • This PR's own CI runs the four new cells.

Fixes #898.

🤖 Generated with Claude Code


Note

Low Risk
CI workflow matrix and test selection only; reuses existing shard helpers with no product or runtime behavior changes.

Overview
Addresses OSS-CLUSTER full-suite CI timeouts (#898) by splitting the two matrix jobs that ran the entire test suite into four jobs—each original cell (TCP Plaintext and TCP TLS) now runs as shard 1/2 and shard 2/2.

Each sharded job sets TEST via utils/select_test_shard.py (same approach as ASAN/TSAN/UBSan). Shard 1 additionally runs utils/check_test_shards.py 2 so every test file is assigned to exactly one shard. The 40-minute step timeout and PARALLELISM=2 are unchanged; comments document that cluster cells now run half the suite each.

Reviewed by Cursor Bugbot for commit 599a506. Bugbot is set up for automated code reviews on this repo. Configure here.

The OSS-CLUSTER TLS cell's Run tests step took 2393 s on master 33ff193,
7 s under its 40-minute limit, and timed out on #885. Split both full-suite
cluster cells into two file shards with utils/select_test_shard.py, and
validate the split with utils/check_test_shards.py, as the sanitizer
workflows already do.

Fixes #898

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fcostaoliveira

Copy link
Copy Markdown
Collaborator Author

Owner review summary for 599a506: ready to merge.

  • Review: 7 lenses (SEM, OUT, TEST, BUILD, LIFE, INTER, MAINT) all APPROVE. I wrote this change, so every lens was an independent reviewer.

  • CI: 84 passed, 1 skipped (publish-to-yum, release-only). The sanitizer workflows are path-filtered off for a ci.yml-only change, as expected.

  • Shards:

    Cell Tests (shard 1 + 2) Run tests step (shard 1 / shard 2)
    Plaintext 354 + 568 = 922 1010 s / 1273 s
    TLS 354 + 568 = 922 1051 s / 1325 s

    Each cell runs the same 922 tests as master's full cell, and shard 1 confirms that every test is assigned exactly once. The slowest cell drops from 2467 s to 1379 s, with the limit still at 40 minutes. The other cells are unchanged, with the same test counts as master.

  • Conflicts: none with the other open PRs that touch ci.yml (Add libevent build helper and compatibility CI for 2.1.12, 2.1.13 and 2.2.2-alpha #545, Handle libevent 2.1.8's error callback from a failing connect; test on Rocky Linux 8 #855).

  • Follow-up (not blocking): shards are split by file name, so shard 2 carries 57% of the time. A time-based split would balance them better if the suite keeps growing.

Fixes #898.

🤖 Generated with Claude Code

@fcostaoliveira
fcostaoliveira merged commit 943bcbd into master Oct 26, 2026
85 checks passed
fcostaoliveira added a commit that referenced this pull request Oct 26, 2026
Picks up the two-shard split of the OSS-CLUSTER full-suite CI cells; only
.github/workflows/ci.yml changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

CI: the OSS-CLUSTER full-suite cells reach the 40-minute Run tests limit

1 participant