Skip to content

ci: run standalone test cells with PARALLELISM=2 and raise the step limit to 40 min - #683

Merged
fcostaoliveira merged 3 commits into
masterfrom
fix/ci-tls-timeout-679
Oct 16, 2026
Merged

fcostaoliveira merged 3 commits into
masterfrom
fix/ci-tls-timeout-679

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The standalone "Run tests" cells in ci.yml run 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):

cell seconds
Single Endpoint: TCP TLS 1410
OSS TCP TLS v1.2 1480
OSS TCP TLS v1.3 1490
Single Endpoint: TCP Plaintext 1270
coverage-ubuntu 1257
OSS-CLUSTER API: TCP TLS (already PARALLELISM=2) 1120

Root cause

tests/run_tests.sh passes --parallelism to RLTest only when PARALLELISM is 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

  • Set 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-port bind ephemeral ports. test_statsd_disabled_by_default binds UDP 8125 and skips cleanly if the port is taken. The one exception was test_cli_validation_prometheus.py: its V17/V18 --show-config tests 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.
  • Raise timeout-minutes on the test-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).
  • The coverage job stays serial, so the coverage data is collected the same way as before.

This PR does not skip fake-peer-only modules such as test_cluster_redirect_stats in 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.py is adjusted for parallel runs: reject-only invocations use a dead port (1) instead of 6379, and V17/V18 --show-config cases use _BASE_ACCEPT so 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.

@fcostaoliveira

Copy link
Copy Markdown
Collaborator Author

CI result for def0744 (run 38698813601). "Run tests" step durations, before (master fd7b23c, run 38695278689, serial) and after (this PR, PARALLELISM=2):

cell before (s) after (s)
Single Endpoint: TCP Plaintext 1270 651
Single Endpoint: TCP TLS 1410 722
OSS TCP TLS v1.2 1480 770
OSS TCP TLS v1.3 1490 770

All four cells passed. The TLS v1.2 log has the same number of [PASS] lines as the serial master run (344 in both). The cells now use about 13 of their 40 minutes.

fcostaoliveira and others added 2 commits October 16, 2026 07:52
…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]>
@fcostaoliveira
fcostaoliveira force-pushed the fix/ci-tls-timeout-679 branch 2 times, most recently from 1d9a43a to d033af2 Compare October 16, 2026 06:57
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]>
@github-actions

Copy link
Copy Markdown

🤖 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 PARALLELISM mechanism the cluster cells already rely on, and keeping coverage serial makes sense.

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 --show-config tests in tests/test_cli_validation_prometheus.py). But this PR has only one commit, and the diff only touches .github/workflows/ci.yml. On master that file still has _BASE = ["-s", "127.0.0.1", "-p", "6379"], and test_v17_show_config_disabled, test_v17_show_config_enabled and test_v18_mb_json_round_trip still run a real --test-time=1 benchmark through _BASE. Was that commit lost in a rebase or force-push? If so, by your own analysis, turning on PARALLELISM=2 for the standalone cells without it would send stray traffic to the other worker's Redis and could make exact-count assertions flaky. I think that fix needs to land here, or before this PR.

Nitpicking: the new comment above timeout-minutes: 40 hard-codes "~1300-1500 s serially as of 2026-10". That will go stale. The #679 reference alone is probably enough.

Once the missing test-port commit is back, I think this is good to go.

@fcostaoliveira

Copy link
Copy Markdown
Collaborator Author

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:

  • d033af2: the CI change (PARALLELISM=2 on the standalone cells, step limits raised to 40 min).
  • 1d9a43a: tests/test_cli_validation_prometheus.py now uses port 1 for _BASE, and the V17/V18 --show-config tests use _BASE_ACCEPT, so they no longer send traffic to the other worker's Redis on 6379.
  • a56b1a6: the timeout comment now says which cells run the whole suite, without dated timings.

Checked locally: the file passes 19/19 and sends no traffic to a live Redis. Renaming prometheus-port in the show-config output or in the JSON key makes V17/V18 fail.

@fcostaoliveira
fcostaoliveira merged commit cf5753f into master Oct 16, 2026
147 of 148 checks passed
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: standalone TLS test jobs now take ~25 min and hit the 25-minute "Run tests" limit

1 participant