Repository navigation
AZP/TESTS: Limit RNR retries in the no-SRQ gtest task - #12324
GuangguanWang wants to merge 1 commit into
Conversation
|
🤖 Starting review — findings will be posted here when done. |
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
why do we need to bound RNR retries here? with the default RC_RNR_TIMEOUT=1ms this gives only ~6ms before IBV_WC_RNR_RETRY_EXC_ERR, and the no-SRQ path can still hit RNR on a fresh QP's first burst (see the fc_max_wnd_size comment in uct_rc_verbs_iface_t init), so a slow receiver on a loaded CI machine would fail the job. if the goal is to turn RNR hangs into explicit errors, can we raise UCX_RC_VERBS_RNR_TIMEOUT as well and add a one-line comment why?
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ | ||
| UCX_RC_VERBS_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
minor: RETRY_COUNT default is already 7, which is the maximum (UCT_RC_QP_MAX_RETRY_COUNT), so 6 just drops one retry at the default 1s timeout - what does it buy? maybe remove it, or lower UCX_RC_VERBS_TIMEOUT instead if the intent is faster error detection.
tvegas1
left a comment
There was a problem hiding this comment.
Can you please provide the list of tests failing? Any local repro?
The list of failing tests is included in the PR description. I haven't been able to reproduce these failures locally. I'm considering adding |
c07e483 to
3b6c2d6
Compare
|
🤖 Starting review — findings will be posted here when done. |
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
why is a finite RNR retry count needed here? the default 7 means infinite RNR retries, so with 6 a QP fails with RNR_RETRY_EXC after ~6 x 655ms, and for tests without an error handler uct_base_iface_failure_log_level() returns FATAL, which aborts the whole gtest run instead of failing one test. Tests in the filter that don't install an error handler (e.g. rc_verbs/uct_p2p_am_test*, rc_verbs/test_uct_pending*, rc_verbs/uct_flush_test*) would abort the whole gtest process.
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ | ||
| UCX_RC_VERBS_RNR_TIMEOUT=1s \ |
There was a problem hiding this comment.
minor: 1s is above the maximal RNR NAK timer (uct_ib_qp_rnr_time_ms tops at 491.52ms), so uct_ib_to_rnr_fabric_time() silently clamps it to the 655.36ms encoding; pls use a value within the range so the script matches what the QP gets.
|
The diff carries no rationale and no evidence (CI run, log excerpt) that the job behaves as intended with these two variables; per REVIEW.md, CI changes should show the stated behavior change. If the goal was to avoid RNR retry storms in the no-SRQ job, a note in the commit message or a short comment above the |
|
🤖 CI Triage Agent — TL;DR: The Full analysisSummary: Root cause: Timeline shows a 31-second silence (10:34:45 → 10:35:16) between the test start and the first error — a hang, not slowness. It is exactly the 30 s UMR poll timeout:
Implicated commit: unknown — the UMR QP/mkey code is not in the recent history of this file; the latest touches are File: Suggested fix:
Related: none found (searched for "UMR CQ timed out", "rcache destroying inuse region", "test_ucp_atomic64.post" — no matching issue). Possibly interacting: #11958 |
The failure in 144988 is caused by |
3b6c2d6 to
6bed203
Compare
|
🤖 Starting review — findings will be posted here when done. |
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
why 6? RNR_TIMEOUT stays at its 1ms default here, so a QP now goes to error after ~6ms of RNR, while the no-SRQ path can legitimately RNR until the receiver reposts (see the fc_max_wnd_size comment in uct_rc_verbs_iface_t init). The UCT tests in this filter install no error handler, so an RNR-retry-exceeded completion is fatal — maybe raise UCX_RC_VERBS_RNR_TIMEOUT as well, so a loaded/ASAN run does not flake?
|
Residual coverage gap worth noting: the job env only affects |
|
🤖 CI Triage Agent — TL;DR: The Full analysisSummary: Root cause: The only failure in the whole run is the IB memory-domain allocation test on device Important caveats from the evidence: the PR is #12324 "AZP/TESTS: Limit RNR retries in the no-SRQ gtest task [test only, do not merge]", which only changes the no-SRQ gtest task config and cannot affect Implicated commit: unknown — not attributable to File: test/gtest/uct/test_md.cc:467–549 (failure point is the loop at 504–549; thresholds at 529/541/547) Suggested fix: Re-trigger the Related: PR under test: #12324 (test-only, "do not merge"). No existing issue found for
|
|
🤖 Starting review — findings will be posted here when done. |
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
why 6? rnr_retry=7 is "retry forever", so this turns RNR into a hard QP failure after ~6 × RNR_TIMEOUT (6ms with the UCT default of 1ms). The tests in this filter which disable FC (test_uct_pending/test_uct_peer_failure call reduce_tl_send_queues() → RC_FC_ENABLE?=n) can leave the receiver without posted WRs longer than that on a loaded CI host, and the resulting send completion error is fatal for tests with no error handler — is the fail-fast intentional, and if so can we pair it with a larger UCX_RC_VERBS_RNR_TIMEOUT?
|
🤖 Starting review — findings will be posted here when done. |
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
With the default 1ms RNR timer, lowering RNR_RETRY_COUNT from the default 7 (infinite retry) to 6 leaves the receiver only ~6ms (6 × ~0.96ms) to repost before the QP fails with RNR_RETRY_EXC_ERR → uct_rc_verbs_handle_failure(), which is error/fatal for tests without an error handler. Several tests in this job's filter run with flow control disabled (test_uct_pending / test_uct_peer_failure via uct_test::reduce_tl_send_queues() → RC_FC_ENABLE?=n), and in the no-SRQ path RNR is an expected/recoverable condition per rc_verbs_iface.c and test_rc_no_srq.rnr_fc_disabled. On a loaded CI host (shuffled gtest, ASan) this can turn a transient RNR into a hard failure. Can we keep the default 7 (infinite retry), or raise UCX_RC_VERBS_RNR_TIMEOUT together with the lower retry count?
2ea440c to
a39359b
Compare
|
🤖 CI Triage Agent — TL;DR: The Full analysisSummary: Root cause: From the log, the run was healthy and not hung — the whole suite completed in 3150569 ms with sub-second gaps between consecutive timestamps right up to the tear-down, and the only failure is a single IB MD allocation test. PR #12324 ("AZP/TESTS: Limit RNR retries in the no-SRQ gtest task [test only, do not merge]") touches only the Azure pipeline definition, not The reason the log tail carries no diagnostic for it is a defect in the test itself: in Implicated commit: unknown — no source commit implicated; PR #12324 (branch File: test/gtest/uct/test_md.cc:519-532 (test body Suggested fix:
Related: #12324 (the PR under test, CI-only change) |
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ | |
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ | |
| UCX_RC_VERBS_RNR_TIMEOUT=500ms \ |
with the default 1ms RNR timer 6 retries fail the QP after ~6ms, and this job runs pending/flush/peer failure tests with FC disabled and RX_MAX_WR=64, where RNR is expected; with 500ms a QP fails only after ~3s of RNR (6 is the max finite count, 655ms the max timer). pls also compare the duration of this job before/after, since every RNR now waits ~0.5s.
There was a problem hiding this comment.
Thanks for the suggestion. Among the tests in this job, rc_verbs/test_uct_pending.pending_fairness is the one most affected by RNR_TIMEOUT, so I measured it on my own setup (rc_verbs on mlx5_bond_0), one run per value:
UCX_RC_VERBS_SRQ_ENABLE=n UCX_RC_VERBS_RX_CQ_LEN=262144 \
UCX_RC_VERBS_RX_MAX_WR=64 UCX_RC_VERBS_RNR_RETRY_COUNT=6 \
UCX_RC_VERBS_RNR_TIMEOUT=<value> \
./test/gtest/gtest --gtest_filter='rc_verbs/test_uct_pending.pending_fairness/*'
RNR_TIMEOUT |
Effective RNR timer | Time to QP failure (6 retries) | Test duration |
|---|---|---|---|
| 1ms (default) | 0.96ms | ~6ms | 0.28s |
| 100ms | 81.92ms | ~0.5s | 3.5s |
| 200ms | 163.84ms | ~1s | 8.6s |
| 300ms | 327.68ms | ~2s | 185.5s |
| 500ms | 491.52ms | ~2.9s | 240.4s |
Above 200ms the duration of this test jumps from ~9s to 3-4 minutes.
I'd prefer 200ms: it still tolerates ~1s of continuous RNR (vs ~6ms with the default), while keeping this test under 10s. 100ms (~0.5s tolerance) would also be fine if we want to minimize the job time. WDYT?
There was a problem hiding this comment.
thanks for measuring. on CI 200ms costs much more than locally, so let's drop RNR_TIMEOUT and keep only RNR_RETRY_COUNT=6, as in d4fa84b:
- every RNR now waits ~164ms (200ms is rounded down to the IBTA value), and
test_uct_pendinghits RNR by design here (FC disabled, 64 receive WRs per QP): in builds 146023 and 146933pending_fairnesstakes 625-662s per variant vs ~3s with the default timer, ~70% of the 900s gtest watchdog - the whole no-SRQ task goes from 6-15 min to 16-40 min
- the ~6ms budget of the default timer is small on paper, but it held in practice: the earlier builds of this PR ran the task ~40 times with only
RNR_RETRY_COUNT=6, without RNR errors or slowdown, even thoughpending_fairnesshits RNR throughout - so far it's the longer timers that caused trouble: 1s failed 144988 per your comment, and 200ms brings
pending_fairnessclose to the watchdog - the goal is still met: a receiver that never reposts fails within a few ms with an explicit RNR retry-exceeded error instead of a watchdog hang
pls also update the comment above the env block and the PR description accordingly.
There was a problem hiding this comment.
Thanks for the suggestion. RNR_TIMEOUT is dropped and only RNR_RETRY_COUNT=6 is kept. The comment above the env block and the PR description are updated accordingly. The PR is ready for review.
|
🤖 Starting review — findings will be posted here when done. |
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
why 6 instead of the default 7? 7 means infinite RNR retry, so with 6 a receiver that has no posted receive WRs for ~6 x RNR_TIMEOUT (6ms for the UCT tests here, 60ms for the rc/test_ucp_* ones) fails the QP with RNR retry exceeded, and tests without an error handler abort the whole shard from uct_rc_verbs_handle_failure() at fatal level. Given that the no-SRQ receive path intentionally allows RNR on a fresh QP's first burst, this looks like a CI flakiness risk. If the intent is to catch RNR storms in this job, can we also raise UCX_RC_VERBS_RNR_TIMEOUT so a transient backlog does not become a CI crash?
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
Residual coverage gap: the only test that depends on RNR retries (test_rc_no_srq.rnr_fc_disabled) is excluded by this job's filter (-*test_rc_no_srq*), so no test in the job actually validates the new finite-retry setting; the behavior change is only observable through a full CI run of this shard.
d4fa84b to
35f5d7a
Compare
|
🤖 Starting review — findings will be posted here when done. |
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
These tests run with FC disabled (uct_test::reduce_tl_send_queues() sets RC_FC_ENABLE?=n for test_uct_pending/test_uct_peer_failure), and without an SRQ delivery then relies on RNR retries (cf. test_rc_no_srq.rnr_fc_disabled). A finite count caps recovery at ~1s, which may be too short on a loaded or ASAN host — did this job stay clean under run_asan_check?
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ | ||
| UCX_RC_VERBS_RNR_TIMEOUT=200ms \ |
There was a problem hiding this comment.
Minor: 200ms is not in the IBTA RNR NAK timer table, so uct_ib_to_rnr_fabric_time() rounds it down to 163.84ms. Please use a representable value or state the effective one, so the comment above matches the timeout actually programmed on the QP.
|
Residual coverage gap: no evidence in the diff that the job was run under the ASAN variant, where the ~1s RNR budget is most likely to be exceeded. |
|
🤖 CI Triage Agent — TL;DR: The gtest task failed on a single test — Full analysisSummary: Root cause: From the log, the only failing assertion is in the Implicated commit: unknown — not attributable to File: test/gtest/ucp/test_ucp_memheap.cc:115 (validation failure raised for Suggested fix:
Related: PR #12324 (the PR under test, CI-config only) — #12324; possibly relevant flush-correctness work: #12266 "UCP/FLUSH: Flush the other lanes after the pending lane" — #12266
|
|
🤖 Starting review — findings will be posted here when done. |
|
minor: the RNR timeout is quantized by |
|
🤖 CI Triage Agent — TL;DR: The gtest stage failed because exactly one of 9198 tests failed — Full analysisSummary: Root cause: The failing case is the Implicated commit: unknown (not a regression from [REDACTED:Hex High Entropy String] — that branch's change is CI-config-only for the no-SRQ task) File: test/gtest/ucp/test_ucp_memheap.cc:110 (data validation) with src/ucp/rma/flush.c:160-197 (multi-lane flush/pending-lane handling) Suggested fix: Re-run this job to confirm the failure is intermittent; do not change CI time limits (no hang/timeout signature). To get a usable signature next time, make the gtest step archive the gtest output so the Related: #12266 (UCP/FLUSH: Flush the other lanes after the pending lane), #12324 (the PR under test, CI-only), #12066 (no-SRQ support, context for #12324)
|
23494d3 to
04a2dd2
Compare
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 Review complete — no issues found. |
04a2dd2 to
aadd3d2
Compare
|
🤖 Starting review — findings will be posted here when done. |
| UCX_RC_VERBS_SRQ_ENABLE=n \ | ||
| UCX_RC_VERBS_RX_CQ_LEN=262144 \ | ||
| UCX_RC_VERBS_RX_MAX_WR=64 \ | ||
| UCX_RC_VERBS_RNR_RETRY_COUNT=6 \ |
There was a problem hiding this comment.
UCX_RC_VERBS_RNR_TIMEOUT stays at the 1ms default (0.96ms after the IBTA quantization in uct_ib_to_rnr_fabric_time()), so the whole RNR budget here is only ~6ms. A receiver that needs longer to repost its 64 RX WRs (ASAN job, loaded host) will hit RNR-retry-exceeded, and since the uct tests in this filter create entities without an err_handler, uct_rc_verbs_handle_failure() logs at FATAL and aborts the whole gtest binary. Can we pair this with a larger UCX_RC_VERBS_RNR_TIMEOUT (e.g. 20ms → ~120ms total) so only a truly stuck receiver hits the limit?
|
Residual coverage gap: there is still no CI evidence in the PR that this job (in particular the ASAN variant, where the ~6 ms RNR budget is most likely to be exceeded) was run with the new variable. |
|
🤖 CI Triage Agent — TL;DR: The Full analysisSummary: Root cause: The test starts
Why the filter can't match on this RoCE row: the values are derived from the executor index — This is a test/infrastructure issue, not a regression from the PR: the branch head Implicated commit: [REDACTED:Hex High Entropy String] — "CI/FT: Adds fault tolerance CI test (#11570)", william-gallagher-nv (test designed for IB SL semantics); PR head commit aadd3d2 (Guangguan Wang) is unrelated. File: contrib/test_jenkins.sh:514-515 (sl/tc derivation) and contrib/test_jenkins.sh:566-581 (drop + verify loop); RoCE DSCP mapping at src/uct/ib/base/ib_iface.h:804-808 Suggested fix:
Related: #11570 (added this FT test), #12388 (
|
CLA check passedAll commits are covered by a signed CLA. |
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 Review complete — no issues found. |
|
🤖 CI Triage Agent — TL;DR: This isn't a CI/infrastructure bug — the Full analysisSummary: GitHub Actions job Root cause: Notably the report lists only the signature problem — no Implicated commit: File: Suggested fix: Contributor action, not a CI change. On the PR branch, configure signing and re-sign the unsigned commit, then force-push:
Verify with Related: PR #12324 (the PR under check); workflow
|
81d56a0 to
aadd3d2
Compare
|
🤖 CI Triage Agent — TL;DR: The Full analysisSummary: GitHub Actions job Root cause: The CLA gate validates that every new commit in the PR carries a GitHub-verified signature and that the signing/author identity is on the CLA list. The log shows the check scanned the single new commit and reported:
This is a legitimate policy failure, not CI infrastructure breakage. The whole job ran in ~4 seconds (02:00:32 → 02:00:36) with no gaps — no timeout, no hang, no flakiness. Checkout, sparse-checkout of the script, and script execution all succeeded; only the signature validation rejected the commit. Note the commit is on branch Implicated commit: File: Suggested fix: Contributor-side action, no repo change needed:
If this run was an intentional Related:
|
aadd3d2 to
eb19870
Compare
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 Review complete — no issues found. |
|
🤖 CI Triage Agent — TL;DR: The Full analysisSummary: GitHub Actions job Root cause: Implicated commit: File: Suggested fix: No CI change is needed — fix the commit. Per item 2 of Also confirm the committer email is verified on that GitHub account, otherwise the signature will still report as unverified. Re-running the check without rewriting the commit will not help, since the signature is a property of the commit object. If PR #12324 is only a throwaract CI experiment on branch Related:
|
Set RNR_RETRY_COUNT to 6 in run_rc_verbs_nosrq_gtest and keep the default RNR timeout. Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com>
eb19870 to
4c2a7e5
Compare
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 Review complete — no issues found. |
What?
Set
UCX_RC_VERBS_RNR_RETRY_COUNT=6inrun_rc_verbs_nosrq_gtestand keep the default RNR timeout.Why?
Finite RNR retries make persistent RNR report an explicit retry-exceeded error instead of hanging until the watchdog aborts. This helps diagnose CI failures and avoids repeatedly attributing unexplained timeouts to RNR.
The default RNR timeout (1ms, ~6ms in total for 6 retries) is kept:
RNR_RETRY_COUNT=6, without RNR errors or slowdown.test_uct_pending.pending_fairnesshits RNR throughout. WithRNR_TIMEOUT=200ms, it took 625-662s per variant on CI (builds 146023 and 146933), vs ~3s with the default timer, i.e. ~70% of the 900s gtest watchdog. The whole no-SRQ task grew from 6-15 min to 16-40 min.CI failures under investigation
The first three failures occurred in
run_rc_verbs_nosrq_gtestwithUCX_RC_VERBS_SRQ_ENABLE=n. The last one occurred in the regular AddressSanitizer gtest shards.rc/test_ucp_tag_match_rndv.length0/6<rc_v/rndv_put_flush,proto_v1>rc_verbs/uct_p2p_am_test.am_sync/2<rc_verbs/mlx5_1:1>m_am_count=0, then cleanup flush hungrc_verbs/test_rc.stress_iface_ops/1<rc_verbs/mlx5_1:1>uct_test::flush(), watchdog abort after 15 minrc_verbs/uct_p2p_am_alignment.align_short/1<rc_verbs/mlx5_0:1/loopback>alignment: 1, offset: none, then watchdog abort after about 18 min 20 s