Skip to content

UCP/GTEST: Fix expected rkey config count in port speed change test - #12293

Merged
Alexey-Rivkin merged 1 commit into
openucx:masterfrom
Alexey-Rivkin:ci-test-bluefield-node
Nov 11, 2026
Merged

Alexey-Rivkin merged 1 commit into
openucx:masterfrom
Alexey-Rivkin:ci-test-bluefield-node

Conversation

@Alexey-Rivkin

@Alexey-Rivkin Alexey-Rivkin commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What?

Fix the expected rkey config counts in test_ucp_proto_mock_rcx_speed_change (rma_put, rma_get).

Why?

  • Each new EP config adds two rkey configs: one for RMA and one for the rendezvous remote protocols, created when the short thresholds are initialized from protocol selection (UCP/PROTO: Initialize short thresholds from protocol selection #11817). The test expects one, so it fails on every speed change.
  • The test is built only with IBV_EVENT_DEVICE_SPEED_CHANGE, so it fails only on hosts with a recent rdma-core. It showed up on a BlueField CI node with MLNX_OFED 26.07.

How?

  • Update the expected rkey config count after each speed change (3 -> 4, 4 -> 6) and the RMA rkey config index (3 -> 4).

Checked on that node, Tests and AddressSanitizer: https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=144330

@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

Comment thread buildlib/pr/main.yml Resolved
Comment thread buildlib/pr/main.yml Resolved
Comment thread buildlib/pr/main.yml Resolved
Comment thread buildlib/pr/main.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

buildlib/pr/main.yml

blocker: ~270 lines of the pipeline were deleted from the stages: block, removing codestyle, basic compile, static analysis, Coverity, the build matrix, wire-compat, EFA, namespace, jucx, go, static build, CUDA and all non-BlueField test/ASAN lanes. If merged, PRs get almost no CI coverage. This looks like a local debug run — can you mark it draft / use a private pipeline branch and keep only the intended change in the PR? If the goal is to debug swx-rain03-bf1, pls say so in the description.

Test expectations (Build/CI changes, REVIEW.md): there is no evidence in the diff of the intended CI behavior change; a green run here only proves that two stages ran, not that the pipeline is still correct.

@Alexey-Rivkin

Copy link
Copy Markdown
Contributor Author

blocker: ~270 lines of the pipeline were deleted from the stages: block [...] If the goal is to debug swx-rain03-bf1, pls say so in the description.

Intended. The PR is a draft and the description says it is test-only and not for merge: it runs just the BlueField jobs on the replaced BlueField of swx-rain03.

@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

Comment thread buildlib/pr/tests.yml Resolved
Comment thread test/gtest/ucp/test_ucp_proto_mock.cc Resolved
@svc-ucx

svc-ucx commented Nov 10, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX release DRP · commit 50a5bc77

Summary: Unable to fetch logs — cannot diagnose without them.
Root cause: Unknown — log access failed.
Implicated commit: unknown
File: unknown
Suggested fix: Provide a direct link to the failed build log in a follow-up comment.
Log fetch attempts:

  • fetch_azure_logs({'build_url': 'https://dev.azure.com/ucfconsort/0b36e3f0-8ab9-4a48-b68b-[REDACTED:Hex High Entropy String]/_build/results?buildId=144333'}) → [fetch_azure_logs ERROR: no failed job found in timeline for build 144333]
  • fetch_jenkins_stages({'job': 'UCX release DRP', 'build': 144333}) → [fetch_jenkins_stages ERROR] build URL names Jenkins controller 'https://dev.azure.com/ucfconsort/0b36e3f0-8ab9-4a48-b68b-[REDACTED:Hex High Entropy String]/_build/results?buildId=144333', but this deployment is configured for 'https://nbuprod.blsm.nvidia.com/nb
  • fetch_jenkins_logs({'job': 'UCX release DRP', 'build': 144333}) → [fetch_jenkins_logs ERROR] build URL names Jenkins controller 'https://dev.azure.com/ucfconsort/0b36e3f0-8ab9-4a48-b68b-[REDACTED:Hex High Entropy String]/_build/results?buildId=144333', but this deployment is configured for 'https://nbuprod.blsm.nvidia.com/nbu-
  • fetch_azure_logs({'build_url': 'https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=144333'}) → [fetch_azure_logs ERROR: no failed job found in timeline for build 144333]
  • fetch_test_server_logs({'node': 'bluefield-node', 'job': 'UCX release DRP'}) → [fetch_test_server_logs ERROR] bluefield-node/UCX release DRP: FileNotFoundError: [Errno 2] No such file or directory: '/home/ci/.ssh/id_rsa'
  • fetch_gha_logs({'run_id': 144333}) → [fetch_gha_logs ERROR] HTTP 404 for run 144333

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id 374c5fe8-ac74-40eb-bcb1-7878633a45ad in the triage console for the audit trail.

Each new EP configuration adds two rkey configurations: one for RMA and
one for the rendezvous remote protocols, created when the short
thresholds of the EP configuration are initialized from protocol
selection. The test expected one, so it fails on every speed change.
The test is built only with IBV_EVENT_DEVICE_SPEED_CHANGE support, so
the failure shows up only on hosts with a recent rdma-core.

Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
@Alexey-Rivkin Alexey-Rivkin changed the title AZP: Test the new BlueField node on swx-rain03 (do not merge) UCP/GTEST: Fix expected rkey config count in port speed change test Nov 10, 2026
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

@Alexey-Rivkin
Alexey-Rivkin marked this pull request as ready for review November 10, 2026 20:27
@Alexey-Rivkin
Alexey-Rivkin requested a review from a team as a code owner November 10, 2026 20:27
@svc-ucx

svc-ucx commented Nov 10, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR (AddressSanitizer roce on worker 2) · commit 6f2c2dd3

TL;DR: The ASan "roce on worker 2" gtest run finished with exactly one failure — dc_mlx5/uct_atomic_key_reg_rdma_mem_type.fadd64/0 — in the IB/mlx5 atomic-memory-key (indirect atomic key / atomic-MR offset) path for buffers registered with the RDMA memory type; PR #12293 only touches a UCP gtest expectation, so this is a master-side regression/flake from the recent atomic-key work (#12265 / #11903), not from the PR.

Full analysis

Summary: make test in the gtest stage exited with error 1 because 1 of 9011 tests failed: [ FAILED ] dc_mlx5/uct_atomic_key_reg_rdma_mem_type.fadd64/0, where GetParam() = dc_mlx5/mlx5_0:1 (log lines at 2026-11-10T22:53:34, followed by make: *** [Makefile:5014: test] Error 1).

Root cause: A real functional failure (not a timeout/hang — the run progressed continuously to the tear-down and the summary, with no gaps > a few seconds) in the UCT IB/mlx5 atomic memory-key path exercised by the new uct_atomic_key_* tests: a 64-bit fetch-and-add over dc_mlx5 against a buffer registered with the RDMA memory type. That path decides whether an indirect/strict-order atomic mkey exists and, if so, shifts the remote address by the atomic-MR offset (uct_ib_resolve_atomic_rkey() / uct_ib_md_atomic_offset()), and whether a strict-order companion key is created at all depends on the registered mem_type (uct_ib_md_is_strict_order_mr_required() returns false for UCS_MEMORY_TYPE_RDMA). This is exactly the code changed two days before this build by e4d1e597 ("UCT/IB/MLX5: Fix atomic MR offset without a flush memory key", #12265), which also added the companion uct_p2p_rma_test_atomic_key gtests, and touched again by 84fb2f0f (#11903, merged 18:28 the same day, ~4h before this 22:52 run), which changed RDMA-mem-type registration and test/gtest/uct/ib/test_ib_xfer.cc. The PR under test (#12293, "UCP/GTEST: Fix expected rkey config count in port speed change test") changes only a UCP gtest expectation and cannot affect a UCT dc_mlx5 atomic-key test, so the failure is not caused by this PR.
Caveat: the per-assertion output for the failed test is earlier in the console log than the retrievable tail (only the final summary is available), so the exact mismatch/status value could not be read.

Implicated commit: e4d1e597 (dmitrygx, "UCT/IB/MLX5: Fix atomic MR offset without a flush memory key", #12265), with 84fb2f0f (Yaser Afshar, #11903) as the most recent change in the same area; not commit 6f2c2dd3 (the PR under test).

File: src/uct/ib/base/ib_md.h:315-332 (uct_ib_resolve_atomic_rkey() / uct_ib_md_atomic_offset()), with the registration-side decision in src/uct/ib/mlx5/dv/ib_mlx5dv_md.c:997-1024 (uct_ib_mlx5_devx_mem_reg() strict-order/atomic rkey creation) and the new atomic-key tests in test/gtest/uct/ib/test_ib_xfer.cc:48-96

Suggested fix:

  1. Don't block PR UCP/GTEST: Fix expected rkey config count in port speed change test #12293 on this — re-run the job; the failure is unrelated to its UCP gtest change.
  2. Reproduce in isolation on the roce node: ./gtest --gtest_filter='dc_mlx5/uct_atomic_key_reg_rdma_mem_type.fadd64*' --gtest_repeat=50 and capture the full assertion text (the current CI log only keeps the summary — please attach/preserve the complete gtest log or a JUnit XML artifact so the mismatch is visible).
  3. Audit the RDMA-mem-type case of the atomic-key logic: when no strict-order/indirect atomic mkey is created for UCS_MEMORY_TYPE_RDMA registrations, uct_ib_resolve_atomic_rkey() must not add the atomic-MR offset, and conversely the packed atomic rkey and atomic_mr_id-derived offset must agree between sender and receiver when the flush mkey is absent (the condition fixed in UCT/IB/MLX5: Fix atomic MR offset without a flush memory key #12265). Add an explicit expectation for the RDMA mem_type in test_ib_md.cc's atomic-key checks.

Related: #12265 (atomic MR offset without a flush memory key), #11903 (DMA-BUF-exportable memory for RDMA), PR under test: #12293

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.

4 participants