Repository navigation
Conversation
|
🤖 CI Triage Agent — TL;DR: The "Check build condition" step of the Full analysisSummary: Azure build 147032 ( Root cause: Infrastructure/script bug, unrelated to the PR's UCT/MLX5 code. The log shows the checkout of Because the step runs Implicated commit: The failing code path lives in File: Suggested fix: Make the PullRequest branch resilient to a single-parent source version, e.g.: elif [ "${build_reason}" == "PullRequest" ]
then
if head_revision=$(git rev-parse -q --verify "${build_sourceversion}^2"); then
base_revision=$(git rev-parse "${build_sourceversion}^1")
else
# Not a merge commit (ADO gave us the PR head): diff against the target branch
head_revision=$(git rev-parse "${build_sourceversion}")
base_revision=$(git merge-base "origin/${SYSTEM_PULLREQUEST_TARGETBRANCH#refs/heads/}" \
"${head_revision}" 2>/dev/null || git rev-parse "${head_revision}^1")
fi
for sha1 in $(git log --first-parent --no-merges \
"${base_revision}..${head_revision}" --format="%h"); do
...
done
fiAlso consider defensively emitting Related: #10020 (AZP/RELEASE: Scheduled DRP testing — added the DRP trigger paths in this function); PR under test: #12423
|
|
🤖 CI Triage Agent — TL;DR: The snapshot pipeline's "Check build condition" step died with exit 128 because Full analysisSummary: Job "UCX snapshot" failed in the Prepare/Check stage — Root cause: The log shows the step executing:
Implicated commit: File: Suggested fix: Handle both merge-commit and head-commit forms of elif [ "${build_reason}" == "PullRequest" ]
then
# Build.SourceVersion may be the PR merge commit or the PR head commit
if head_revision=$(git rev-parse -q --verify "${build_sourceversion}^2"); then
base_revision=$(git rev-parse "${build_sourceversion}^1")
else
head_revision=$(git rev-parse "${build_sourceversion}")
target="${SYSTEM_PULLREQUEST_TARGETBRANCH#refs/heads/}"
base_revision=$(git merge-base "origin/${target:-master}" "${head_revision}") || \
base_revision="${head_revision}~1"
fi
for sha1 in $(git log --first-parent --no-merges \
"${base_revision}..${head_revision}" --format="%h"); do
...Alternatively, since the workspace already has the merge commit checked out, pass Related: #11527 (introduced the
|
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 CI Triage Agent — TL;DR: The "Check build condition" step of the UCX release pipeline died with exit 128 because Full analysisSummary: Stage Root cause: This is a pipeline-infrastructure bug, not a product/test failure. Secondary latent bug in the same function: the loop body Implicated commit: File: Suggested fix: Make the PR branch of elif [ "${build_reason}" == "PullRequest" ]
then
base_revision=$(git rev-parse "${build_sourceversion}^1")
# Poll-triggered / non-merge-ref builds check out the PR head itself,
# which has no second parent.
head_revision=$(git rev-parse --verify -q "${build_sourceversion}^2") || \
head_revision=$(git rev-parse "${build_sourceversion}")
for sha1 in $(git log --first-parent --no-merges \
"${base_revision}..${head_revision}" --format="%h")
do
title=$(git log -1 --format="%s" "$sha1")
if [[ "$title" == "${title_mask}"* ]]; then launch=True; fi
done
fiNote that when Related: PR #11527 (introduced the
|
|
🤖 CI Triage Agent — TL;DR: The "AUTHORS file update check" step died with Full analysisSummary: Codestyle → Root cause: Evidence from the Azure log:
So the failure is purely a CI-script assumption (" Implicated commit: File: Suggested fix:
set -eEx
src=$(Build.SourceVersion)
if head_revision=$(git rev-parse -q --verify "${src}^2"); then
base_revision=$(git rev-parse "${src}^1")
else
# Not a PR merge commit (Azure checked out the PR head directly)
head_revision=$(git rev-parse "${src}")
git fetch --no-tags --depth=100 origin "$(System.PullRequest.TargetBranch)"
base_revision=$(git merge-base FETCH_HEAD "${head_revision}")
fi
./contrib/authors_update.sh "${base_revision}..${head_revision}"
git diff --exit-code
Related: PR #12423 (this build); commit cfd9cd1 / PR #11527 which added the
|
| if (sgl_op == NULL) { | ||
| op = uct_rc_mlx5_ep_outstanding_peek_send_op(ep, pi); | ||
| if ((op != NULL) && | ||
| ((op->handler == uct_rc_ep_put_sgl_zcopy_completion_handler) || |
There was a problem hiding this comment.
pls add a uct_rc_mlx5_send_op_is_sgl_zcopy() predicate next to the other uct_rc_mlx5_send_op_is_*() helpers and use it here, so all handler comparisons stay in one place.
| if ((op != NULL) && | ||
| ((op->handler == uct_rc_ep_put_sgl_zcopy_completion_handler) || | ||
| (op->handler == uct_rc_ep_get_sgl_zcopy_completion_handler))) { | ||
| sgl_op = ucs_queue_pull_elem_non_empty( |
There was a problem hiding this comment.
| sgl_op = ucs_queue_pull_elem_non_empty( | |
| sgl_op = op; | |
| ucs_queue_pull_non_empty(&ep->super.txqp.outstanding); |
uct_rc_mlx5_ep_outstanding_peek_send_op() already returned the queue head, no need to look it up again.
|
|
||
| memset(info, 0, sizeof(*info)); | ||
| if (sgl_op != NULL) { | ||
| uct_rc_mlx5_wqe_rma_segs(txwq, ctrl, wqe_size, &raddr, &inl, |
There was a problem hiding this comment.
minor: the SGL path drops inl/inline_length, so if a batch WQE ever carries an inline segment dptr is NULL and the element is reported with an empty iov. pls add ucs_assertv_always(inline_length == 0, ...) like uct_rc_mlx5_op_info_fill_get() does.
|
|
||
| /* Original completion. */ | ||
| /** | ||
| * Original completion, when @ref UCT_EP_OP_INFO_FIELD_COMP is set. For an |
There was a problem hiding this comment.
the callback also owns the reported completion for non-SGL operations (the transport only completes flush/ep_check ops itself), so can we document the rule for every reported operation instead of only for an SGL batch? as written it reads like single-WQE ops behave differently.
| /* rc_mlx5 RX tokens contain the next expected 24-bit packet sequence number. */ | ||
| class test_uct_purge_sgl : public test_uct_purge_outstanding { | ||
| public: | ||
| void init() override { |
There was a problem hiding this comment.
minor: pls put the opening brace on the next line, like the other init() overrides in this file.
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 CI Triage Agent — TL;DR: The Blossom-CI security-scan step failed because the external BlackDuck/Pulse service returned HTTP 503 ("upstream connect error … Connection refused") on all 3 retry attempts — an infrastructure outage, not a code defect in PR #12423. Fix is to simply re-run the job ( Full analysisSummary: Root cause: The
The 503s originate from the BlackDuck service's upstream (connection refused behind the Cloudflare edge), i.e. the scanning backend was down. The action's own retry wrapper ("Transient BlackDuck failure detected (attempt N/3)") exhausted its 3 attempts within ~90 s of backoff and then surfaced No UCX source was compiled or tested in this run — the repo was only checked out (merge commit Implicated commit: none — not a code regression (PR head File: Suggested fix:
Related: none (searched the repo; only an unrelated match on PR #503)
|
| &iface->super, ep, pi, delivered ? UCS_OK : UCS_ERR_CANCELED); | ||
|
|
||
| /* Only the final WQE of an SGL batch requests a CQ update. */ | ||
| if ((sgl_op != NULL) && (ctrl->fm_ce_se & MLX5_WQE_CTRL_CQ_UPDATE)) { |
There was a problem hiding this comment.
can we move this block above uct_rc_mlx5_ep_outstanding_complete_send_ops()? a flush posted right after the SGL gets sn == sig_pi == this WQE's pi, so its completion is currently invoked before the SGL completion, inverting the posting order.
|
|
||
| if (sgl_op == NULL) { | ||
| op = uct_rc_mlx5_ep_outstanding_peek_send_op(ep, pi); | ||
| if ((op != NULL) && |
There was a problem hiding this comment.
| if ((op != NULL) && | |
| if ((op != NULL) && uct_rc_mlx5_send_op_is_sgl_zcopy(op)) { |
pls add uct_rc_mlx5_send_op_is_sgl_zcopy() next to the other send_op_is_* helpers; after this PR is_put_zcopy()/is_get_zcopy() no longer tell SGL ops apart, so an explicit predicate is clearer.
| uct_ep_op_info_t *info) | ||
| { | ||
| memset(info, 0, sizeof(*info)); | ||
| if (op == NULL) { |
There was a problem hiding this comment.
uct_rc_mlx5_op_info_fill() has a single caller which already peeked the op one line earlier, so this peeks twice. can we pass (sgl_op != NULL) ? sgl_op : op from the caller and drop ep/pi and this peek?
|
|
||
| /* Original completion. */ | ||
| /** | ||
| * Original completion, when @ref UCT_EP_OP_INFO_FIELD_COMP is set. For an |
There was a problem hiding this comment.
pls also update the uct_ep_outstanding_purge doc — it still says the callback is invoked "once for each undelivered outstanding operation", but an SGL operation is now reported once per element. also "SGL batch"/"fragment" here vs "element" in the SGL API docs.
| class test_uct_purge_sgl : public test_uct_purge_outstanding { | ||
| public: | ||
| void init() override { | ||
| modify_config("IB_INDIRECT_ATOMIC", "n", SETENV_IF_NOT_EXIST); |
There was a problem hiding this comment.
why are these needed? the other purge tests run with the defaults, and RC_FENCE is overridden unconditionally while IB_INDIRECT_ATOMIC uses SETENV_IF_NOT_EXIST.
| /* rc_mlx5 RX tokens contain the next expected 24-bit packet sequence number. */ | ||
| class test_uct_purge_sgl : public test_uct_purge_outstanding { | ||
| public: | ||
| void init() override { |
There was a problem hiding this comment.
minor: function body brace goes on a new line (docs/CodeStyle.md), same for the new UCS_TEST_P bodies below.
|
Residual coverage gap worth noting: the new tests are |
|
🤖 Starting review — findings will be posted here when done. |
| if (status == UCS_OK) { | ||
| /* The original reference keeps the SGL alive even when a | ||
| * replay callback completes an element synchronously. */ | ||
| if ((sgl_op != NULL) && (sgl_op->user_comp != NULL)) { |
There was a problem hiding this comment.
can we take the extra reference from the reported descriptor instead?
| if ((sgl_op != NULL) && (sgl_op->user_comp != NULL)) { | |
| /* The original reference keeps the SGL alive even when a | |
| * replay callback completes an element synchronously. */ | |
| if (info.field_mask & UCT_EP_OP_INFO_FIELD_COMP) { | |
| ++info.comp->count; | |
| } |
this way the added reference always matches what the callback was told, instead of relying on every fill path setting UCT_EP_OP_INFO_FIELD_COMP for SGL elements.
(minor) The extra reference is derived from sgl_op->user_comp instead of from what the callback was actually told (info). Today they always agree, but it couples the reference transfer to an invariant in the fill helpers rather than to the reported descriptor.
| wqe_first_psn = (wqe_first_psn + num_packets) & UCT_IB_MLX5_PSN_MASK; | ||
| } | ||
|
|
||
| ucs_assert(sgl_op == NULL); |
There was a problem hiding this comment.
minor: pls use ucs_assert_always here; sgl_op is already off the outstanding queue, so if a chain ever ends without CQ_UPDATE the op leaks and its completion never fires in release builds. Other WQE-parsing invariants in this file use ucs_assertv_always.
| uct_rc_mlx5_op_callback_data_t *callback_data, | ||
| uct_ep_op_info_t *info) | ||
| { | ||
| memset(info, 0, sizeof(*info)); |
There was a problem hiding this comment.
minor: unrelated whitespace change, pls restore the blank line.
| /* The original reference keeps the SGL alive even when a | ||
| * replay callback completes a fragment synchronously. */ | ||
| if ((sgl_op != NULL) && (sgl_op->user_comp != NULL)) { | ||
| ++sgl_op->user_comp->count; | ||
| } |
There was a problem hiding this comment.
IMO something wrong here and in UCP POC too, purge callback should provide an origin undelivered operation with the same parameters, we cannot control user's completion since user (UCP) can build a logic on its value.
UCT should invoke uct completion only once when whole requested operation is completed (successfully or not)
| } ctx = {{this, operation, {completion_cb, 1, UCS_OK}}, with_comp, | ||
| completion_mode == INLINE, | ||
| count - ((is_put && with_rx_token) ? delivered_prefix : 0), {}}; | ||
| unsigned first = count - ctx.count; | ||
| ctx.expected.iov = iov + first; | ||
| ctx.expected.remote_addr = remote.addr() + first * stride; | ||
| ctx.expected.rkey = remote.rkey(); |
There was a problem hiding this comment.
minor: to improve human readability better to fill everything after definition, near ctx.expected ... = ...
| params.cb = [](const uct_ep_op_info_t *info, void *arg) { | ||
| auto &ctx = *static_cast<sgl_purge_ctx*>(arg); |
There was a problem hiding this comment.
monor: I would define a static callback instead of lambda to keep this function shorter
|
🤖 CI Triage Agent — TL;DR: The build never ran any code — both matrix pods (x86_64/ubuntu2004-mofed5.0 and x86_64/centos7-ib) were rejected by Kubernetes because the Full analysisSummary: Root cause: Kubernetes namespace resource-quota exhaustion. At 13:53:11 both parallel branches failed Implicated commit: none in the PR — infrastructure. Closest related config change: File: Suggested fix: Re-run build #143; the failure is transient. To reduce recurrence: (1) lower Related: #12418 (CI: performance-optimized durability for Jenkins leaf jobs), #12168 (CI: Match Azure build matrix in the Jenkins static build job), #11494 (CI: reduce CPU requests in all CI pipelines)
|
|
🤖 CI Triage Agent — TL;DR: The build failed as pure CI infrastructure flake: all four Full analysisSummary: Root cause: At 13:53:37 the Kubernetes plugin got HTTP 403 for every pod create: Implicated commit: unknown — not a source regression. The resource sizing comes from File: .ci/pipeline/test_matrix.yaml:13-14 (pod Suggested fix: Short term: simply re-trigger build #181 — it will pass once the namespace frees up. Medium term, to stop quota exhaustion from burning a 90-minute slot and reporting as a red PR:
Related: #12418 ("CI: Use the performance-optimized durability for the Jenkins leaf jobs"), #12094 ("CI: Jenkins integration testing") — both touch the same Jenkins leaf-job/pod configuration; #11494 last adjusted these CPU requests.
|
|
🤖 CI Triage Agent — TL;DR: The build didn't fail on code — the Kubernetes agent pod could never be created because the Full analysisSummary: Root cause: Pure CI infrastructure/capacity failure, not a code regression. From the build log at 13:53:14Z: Timestamp analysis confirms a hang-while-waiting, not slow work: the last meaningful log line is at Note the request/quota mismatch: the job declares Implicated commit: unknown — no code commit is implicated. The commit under test (134b919 / merge dbb9be6) is innocent. The closest related config change is File: Suggested fix:
Related: #12418 "CI: Use the performance-optimized durability for the Jenkins leaf jobs" and #12168 "CI: Match Azure build matrix in the Jenkins static build job" touch the same Jenkins leaf-job configuration;
|
|
🤖 CI Triage Agent — TL;DR: The build never ran any Coverity work — both matrix branches sat in "Still waiting to schedule task / All nodes of label … are offline" for the full 90 minutes until the pipeline-level Full analysisSummary: Root cause: Infrastructure, not the commit. The console log shows the outer There is no Supporting evidence that the PR is innocent: the log's own Implicated commit: unknown — not a source regression. (For context, the resource requests were last touched by [REDACTED:Hex High Entropy String], NirWolfer, "CI: reduce CPU requests in all CI pipelines (#11494)"; a346463, Alexey Rivkin, added the file. Neither is the trigger here.) File: Suggested fix:
Related: none — searches for this signature returned only unrelated CI PRs (#12168, #12094).
|
|
🤖 CI Triage Agent — TL;DR: One of the 36 parallel Full analysisSummary: Jenkins build #134 failed in stage ID Root cause: The only log line for the failing branch is: Implicated commit: none — not a source regression. Commit under test is [REDACTED:Hex High Entropy String] (PR #12423, branch File: Jenkins pipeline definition for Suggested fix:
Related: #12166 ("Jenkins CI: Gate Jenkins jobs on a basic compile"), #12094 ("CI: Jenkins integration testing") — both touch this Jenkins pipeline's node/checkout structure.
|
|
🤖 Starting review — findings will be posted here when done. |
| uct_rc_mlx5_op_callback_data_t *callback_data, uct_ep_op_info_t *info) | ||
| { | ||
| uct_iov_t *iov = buffer; | ||
| uct_ib_mem_t *memh = (void*)(iov + max_count); |
There was a problem hiding this comment.
Place the 64-bit arrays before the memory-handle array:
uint64_t addrs = (void)(iov + max_count);
uct_rkey_t rkeys = (void)(addrs + max_count);
uct_ib_mem_t memh = (void)(rkeys + max_count);
uct_ib_mem_t is 12 bytes, so the current layout misaligns both arrays whenever max_count is odd, causing undefined 64-bit accesses and alignment-sanitizer failures during purge.
|
🤖 CI Triage Agent — TL;DR: The Coverity ( Full analysisSummary: Root cause: In the new SGL purge helper Implicated commit: File: Suggested fix: Make the guard test the pointer that is dereferenced, which both silences the checker and is the stronger invariant: memset(&iov[i], 0, sizeof(iov[i]));
iov[i].count = 1;
if (element.rma.payload.zcopy.iov != NULL) {
ucs_assert_always(element.rma.payload.zcopy.iovcnt == 1);
iov[i] = element.rma.payload.zcopy.iov[0];
memh[i] = *(uct_ib_mem_t*)iov[i].memh;
iov[i].memh = &memh[i];
}(equivalently Related: none found (no matching issues/PRs in this repo); prior related work:
|
|
🤖 CI Triage Agent — TL;DR: The Coverity analysis stage failed because Full analysisSummary: Stage "Coverity" failed: build and 758-TU Root cause: Coverity's reported path (from the stage log):
So this is a Coverity-visible gap in the new SGL purge-parser reuse code: control flow for the NOP / Implicated commit: File: Suggested fix: Replace the assert-only guards in status = uct_rc_mlx5_op_info_fill(iface, txwq, op, ctrl, *wqe_size,
callback_data, &element);
if (ucs_unlikely(status != UCS_OK)) {
ucs_fatal("rc mlx5: unexpected sgl wqe opcode 0x%x status %s",
uct_ib_mlx5_wqe_opcode(ctrl), ucs_status_string(status));
}
...
if ((element.rma.payload.zcopy.iovcnt != 0) &&
(element.rma.payload.zcopy.iov != NULL)) {
iov[i] = element.rma.payload.zcopy.iov[0];
...
}
Related: PR #12423 (branch
|
|
🤖 CI Triage Agent — TL;DR: The build never ran any tests — all four parallel branches failed because the Kubernetes namespace Full analysisSummary: Root cause: The Jenkins Kubernetes plugin repeatedly tried to create the four Implicated commit: none — infrastructure failure, unrelated to File: n/a (Jenkins Suggested fix: Simply re-run build #208 once the cluster drains — nothing in the PR needs changing. For durability: (1) check for leaked/stuck agent pods in namespace Related: PR #12423 (the PR under test, not the cause); #12418 "CI: Use the performance-optimized durability for the Jenkins leaf jobs" touches the same Jenkins leaf-job infrastructure.
|
|
🤖 Starting review — findings will be posted here when done. |
| uct_rc_mlx5_op_callback_data_t *callback_data, uct_ep_op_info_t *info) | ||
| { | ||
| uct_iov_t *iov = buffer; | ||
| uct_ib_mem_t *memh = (void*)(iov + max_count); |
There was a problem hiding this comment.
For odd max_count values (e.g. RC_TX_QUEUE_LEN=14), placing the 12-byte uct_ib_mem_t array before addrs misaligns both 64-bit arrays, so purge can fault on strict-alignment targets. Place the 64-bit arrays first:
| uct_ib_mem_t *memh = (void*)(iov + max_count); | |
| uint64_t *addrs = (void*)(iov + max_count); | |
| uct_rkey_t *rkeys = (void*)(addrs + max_count); | |
| uct_ib_mem_t *memh = (void*)(rkeys + max_count); |
|
🤖 Starting review — findings will be posted here when done. |
| ctrl, wqe_size); | ||
|
|
||
| if ((rx_token != NULL) && (num_packets != 0)) { | ||
| op = uct_rc_mlx5_ep_outstanding_peek_send_op(ep, pi); |
There was a problem hiding this comment.
Skip cancel-on-purge bursts before calling uct_rc_mlx5_ep_outstanding_peek_send_op(). Their descriptor stays queued until wqe_end_pi, so the second WQE has op->sn < pi and this new unconditional lookup triggers the helper’s assertion in debug builds instead of canceling the burst.
| { | ||
| uct_iov_t *iov = buffer; | ||
| uct_ib_mem_t *memh = (void*)(iov + max_count); | ||
| uint64_t *addrs = (void*)(memh + max_count); |
There was a problem hiding this comment.
Align the address/key arrays and account for padding in scratch_size. uct_ib_mem_t is 12 bytes, so an odd max_count—for example, 3 with RC_TX_QUEUE_LEN=6—leaves both arrays only four-byte aligned, making their uint64_t accesses undefined and potentially faulting on alignment-sensitive platforms.
|
🤖 CI Triage Agent — TL;DR: The Coverity (release) gate failed with one new FORWARD_NULL defect: Full analysisSummary: Root cause: In the new SGL purge helper Implicated commit: File: Suggested fix: Make the guard pointer-based and handle the error status as control flow rather than an assertion, e.g.: const uct_iov_t *src_iov;
...
status = uct_rc_mlx5_op_info_fill(iface, txwq, op, ctrl, *wqe_size,
callback_data, &element);
ucs_assert_always(status == UCS_OK);
ucs_assert_always(element.rma.payload.zcopy.iovcnt <= 1);
src_iov = element.rma.payload.zcopy.iov;
if ((status == UCS_OK) && (element.rma.payload.zcopy.iovcnt != 0) &&
(src_iov != NULL)) {
iov[i] = src_iov[0];
memh[i] = *(uct_ib_mem_t*)iov[i].memh;
iov[i].memh = &memh[i];
} else {
memset(&iov[i], 0, sizeof(iov[i]));
iov[i].count = 1;
}This removes the FORWARD_NULL path and also makes the NOP/ Related: none found (no matching issue/PR in this repo); PR #12423 is the change under test.
|
|
🤖 CI Triage Agent — TL;DR: The Coverity gate failed on a single new FORWARD_NULL defect at Full analysisSummary: Root cause: Coverity's Implicated commit: 9e08ff7 — "UCT/MLX5: Preserve original SGL operations during purge", Leonid Genkin (2026-11-23T20:06Z, branch File: src/uct/ib/mlx5/rc/rc_mlx5_ep.c:1921 (defect site); source of the NULL: src/uct/ib/mlx5/rc/rc_mlx5_ep.c:1648-1652 Suggested fix: Give the failure path an explicitly non-returning exit so Coverity prunes the NOP branch, instead of relying on an assert: status = uct_rc_mlx5_op_info_fill(iface, txwq, op, ctrl, *wqe_size,
callback_data, &element);
if (status != UCS_OK) {
ucs_fatal("rc mlx5: unexpected wqe opcode 0x%x in SGL purge: %s",
uct_ib_mlx5_wqe_opcode(ctrl), ucs_status_string(status));
}
ucs_assert_always(element.rma.payload.zcopy.iovcnt <= 1);
if (element.rma.payload.zcopy.iov != NULL) { /* instead of iovcnt != 0 */
iov[i] = element.rma.payload.zcopy.iov[0];
...
Related: PR #12423 (branch |
What?
Handle native SGL PUT/GET batches in mlx5 outstanding purge.
Why?
Recovery must identify undelivered elements without completing or
releasing their shared batch prematurely. This provides the UCT
prerequisite for UCP SGL PUT recovery in a follow-up PR.
How?
Report outstanding elements through the existing purge callback,
transfer a completion reference per reported element, and retain
the original batch reference until the final WQE is processed.
Reuse the existing peer-failure fixture and descriptor validators.
Cover partial delivery, zero-length PUT entries, missing RX tokens,
and deferred, inline, canceled and absent completions.
Validation: standalone CUDA-enabled build; 123 tests passed with
zero skips. The regression fails with the master purge implementation
and passes with this fix.