Repository navigation
Run authenticated Unix-socket reconnect tests in CI - #809
Conversation
|
🤖 Automated first-pass review — a human maintainer's review is still required before merge. Thanks for this. It only touches tests and CI (
Nitpicking: in The |
|
The final head24b8d93 now completes the full reconnect module locally in203 seconds:27 PASS,5 intended transport/cluster skips,0 FAIL. The26 Unix JSON reports use socket paths no longer than69 bytes. This runs through the committed runner with a password-protected Redis and no auth adapter. The admin-pool reconnect regression also passes and fails against the previous cleanup helper. The local SIGKILL is not yet attributed: it occurs during Python stdlib import even for --collect-only with the whole-file .py spelling, while the equivalent module spelling collects and runs all32 functions. The cgroup OOM counter did not change during a repeat. The PR body now states this limitation accurately. The new GitHub Unix cell remains a mandatory exact-head gate; it will not be waived on the strength of the local run. Keeping the printed temporary directory after success is deliberate so local users can inspect successful reconnect traces and JSON reports as well as failed ones. The help explicitly documents retention; CI runners are ephemeral and only failure artifacts are uploaded. The dedicated port is an explicit, configurable test base so the CI recipe can also be used on developer machines without relying on the default Redis port; it is not a special GitHub networking requirement. |
|
The first new Unix CI run completed discovery and all32 tests, then exposed two issues now fixed in c4e5943. The accept-then-close test sometimes dropped an idle workload: it exited normally at its deadline without entering the asserted replay path. It now freezes replies before closing, retains its existing deadline/log assertions, and also checks abandoned replay work plus JSON count, connection errors and duration. It passes3/3 authenticated Unix repeats; with the cleanup regression, TCP and TLS each pass2/2. The failure-log upload rejected colons in RLTest result paths. The job now packages the logs as tar.gz before upload; a round-trip archive check preserves those paths. These are real fixes, not waived failures. The updated head still needs the entire CI gate, including the new Unix cell. |
Problem
The RLTest runner never selects Unix sockets, leaving reconnect timers and proxy tests on TCP in CI. Deep checkout or temporary paths can also exceed the Unix socket path limit.
Root cause
The wrapper has no Unix mode and no corresponding matrix cell. Existing reconnect helpers omit the runner password on some benchmark invocations and clear it after password-change tests, preventing an authenticated cell from exercising the full suite.
Fix
Add UNIX=1 for standalone, non-TLS tests. RLTest logs and temporary proxy sockets use a short, printed /tmp directory retained for failure artifacts. Reject incompatible TLS, cluster, replica or disabled-standalone combinations. Add a Unix reconnect CI cell using a dedicated port and dummy password, and upload its failure logs as a tar.gz so RLTest directory colons are retained.
Expose quoted REDIS_PORT and REDIS_PASSWORD runner arguments. Reconnect helpers propagate the runner password without overriding explicit AUTH scenarios, then restore the original password after password-change tests. Cleanup reconnects through an explicit ConnectionPool if the admin connection was lost; a permanent regression covers that case. Existing no-password restoration remains empty. Freeze proxy replies before the accept-then-close test drops connections, so the retry case always has held workload; retain its deadline/log assertions and require abandoned-replay and JSON evidence. No benchmark production code changes.
Tests
Affected versions
The missing RLTest Unix CI coverage dates to c9278c0 (#114), first released in 1.3.0. The wrapper began at 84c837c, first in 1.4.0. The gap persists through 2.5.2 and master; this is source/tag attribution, not a claim every release has a Unix product defect. Current baseline is6818fe3. The separate test_unix_socket.py smoke does not run these RLTest reconnect branches.
Fixes #726.
🤖 Generated with Claude Code