Repository navigation
ci: run standalone test cells with PARALLELISM=2 and raise the step limit to 40 min - #683
Conversation
|
CI result for def0744 (run 38698813601). "Run tests" step durations, before (master fd7b23c, run 38695278689, serial) and after (this PR,
All four cells passed. The TLS v1.2 log has the same number of |
…imit The standalone "Run tests" cells run the whole RLTest suite serially. After the tests added on 2026-10-13/14 the three TLS cells take 1300-1500 s against a 25-minute (1500 s) step limit, so a slow runner cancels the job even when every test passed (PR #634, run 38692596851). Plaintext (~1270 s) and coverage (~1257 s) are close behind. Set PARALLELISM=2 on the four standalone cells, as the cluster cells already do; run_tests.sh passes it to RLTest --parallelism, which gives each worker its own redis env on a distinct port range. Raise the test-ubuntu and coverage step limits to 40 minutes for headroom. The coverage job stays serial. Fixes #679 Co-Authored-By: Claude Opus 5.5 <[email protected]>
test_v17_show_config_{disabled,enabled} and test_v18_mb_json_round_trip
ran a real 1 s benchmark against hard-coded port 6379. With PARALLELISM=2
that is the other RLTest worker's live Redis, so the stray SET/GET
traffic (about 20k commands) could break exact-count assertions in
whatever test that worker is running. Use _BASE_ACCEPT (port 1, bounded
reconnects) for them, and point _BASE at port 1 too, since its reject
vectors never connect. --show-config and --json-out-file are still
written when the connection fails.
Also make the ci.yml timeout comments describe the reason rather than
dated timings.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1d9a43a to
d033af2
Compare
The 49/99-shard and replica cells run TEST subsets, so "every cell runs the whole suite" was wrong. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🤖 Automated first-pass review — a human maintainer's review is still required before merge. Thanks for this. The workflow change itself looks fine to me: it uses the same Just a quick check. The description says "The second commit points them, and the file's reject-only base args, at a dead port" (the V17/V18 Nitpicking: the new comment above Once the missing test-port commit is back, I think this is good to go. |
|
Re the first-pass review: you saw a single commit because the branch was briefly at d033af2 after a bad force-push. That has been undone. The head is now a56b1a6, three commits on master 91eec24:
Checked locally: the file passes 19/19 and sends no traffic to a live Redis. Renaming |
Problem
The standalone "Run tests" cells in
ci.ymlrun the whole RLTest suite serially. After the tests added on 2026-10-13/14 the three TLS cells take 1300-1500 s, and the step limit is 25 minutes (1500 s). A slow runner then cancels the job even when every test passed. This happened to PR #634 in run 38692596851 ("OSS TCP TLS v1.2"). The plaintext cell and the coverage job are close to the limit too."Run tests" step durations on master fd7b23c (run 38695278689):
PARALLELISM=2)Root cause
tests/run_tests.shpasses--parallelismto RLTest only whenPARALLELISMis set. The cluster cells set it, but the four standalone cells do not, so they grow linearly with the suite. See #679 for the per-module breakdown.Fix
PARALLELISM: "2"on the four standalone cells: SE plaintext, SE TLS, TLS v1.2 and TLS v1.3. This is the same mechanism the cluster cells and the sanitizer cluster cells already use. RLTest gives each worker its own redis env on a separate port range. Fake peers and--prometheus-portbind ephemeral ports.test_statsd_disabled_by_defaultbinds UDP 8125 and skips cleanly if the port is taken. The one exception wastest_cli_validation_prometheus.py: its V17/V18--show-configtests ran a real 1 s benchmark against hard-coded port 6379, which under parallelism is the other worker's live Redis (about 20k stray SET/GET commands that could break exact-count assertions). The second commit points them, and the file's reject-only base args, at a dead port. The cluster cells were already exposed to this.timeout-minuteson thetest-ubuntu"Run tests" step and on the coverage "Run tests for coverage" step from 25 to 40, so there is headroom even without the speed-up. The "Run tests" limit is shared by every test-ubuntu cell, including the cluster cells (~1065-1120 s).This PR does not skip fake-peer-only modules such as
test_cluster_redirect_statsin the TLS cells, because there is no existing mechanism for that. It can be a follow-up if needed.Test evidence
This PR's own CI run is the test. The before and after durations of the affected cells are posted in a comment below.
Fixes #679
Affected versions
CI only (master); release binaries are not affected. The 25-minute limit came from 16df2db (#468, first tag 2.5.0), but it only became too tight on master after the tests added on 2026-10-13/14. Those tests are not in any release tag (2.5.2 = f3ff179). This is derived from the CI run history.
🤖 Generated with Claude Code
Note
Low Risk
CI workflow and test harness timing/port isolation only; no production binary or runtime behavior changes.
Overview
Addresses CI timeouts on the full RLTest standalone matrix by running the four single-endpoint cells with
PARALLELISM=2(same as cluster jobs) and raising the shared “Run tests” step limit from 25 to 40 minutes, with a note that coverage stays serial and only gets the longer timeout.test_cli_validation_prometheus.pyis adjusted for parallel runs: reject-only invocations use a dead port (1) instead of6379, and V17/V18--show-configcases use_BASE_ACCEPTso they do not hit another worker’s Redis during a short benchmark.Reviewed by Cursor Bugbot for commit a56b1a6. Bugbot is set up for automated code reviews on this repo. Configure here.