Skip to content

AZP/RELEASE: Fix race condition that skips the release Build stages - v1.23.x - #12309

Merged
Alexey-Rivkin merged 1 commit into
openucx:v1.23.xfrom
Alexey-Rivkin:ci-vso-output-var-trace-v1.23.x
Nov 13, 2026
Merged

Alexey-Rivkin merged 1 commit into
openucx:v1.23.xfrom
Alexey-Rivkin:ci-vso-output-var-trace-v1.23.x

Conversation

@Alexey-Rivkin

Copy link
Copy Markdown
Contributor

What?

Backport of #12246 to v1.23.x: fix a race in check_release_build that randomly skips the release Build stages.

Why?

Tag builds use the branch's own az-helpers.sh, so the next tag on v1.23.x can come out with no assets, as v1.23.2 did: https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=142661.

How?

printf with the ##vso prefix split, so the set -x trace is not parsed by the agent. Same change as on master.

With set -x bash also prints the ##vso line to stderr. The agent parses
both copies, the stderr one ends with a quote, and when it wins the
Launch condition fails and the Build stages are skipped.

Split the ##vso prefix in a printf so the trace never contains "##vso[".
Backport of openucx#12246.

Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
@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 11, 2026 08:42
@svc-nvidia-pr-review

Copy link
Copy Markdown

azure-pipelines.yml has pr: [master, v*.*.x], so the Prepare/Check step does run for this PR. Worth confirming from that step's log that Launch is now set from the real line only (and that the Build stage condition evaluates as expected) — that is the only practical validation for this change, since the release/DRP pipelines only trigger on tags and scheduled runs.

Comment thread buildlib/az-helpers.sh Resolved
@Alexey-Rivkin

Copy link
Copy Markdown
Contributor Author

Worth confirming from that step's log that Launch is now set from the real line only (and that the Build stage condition evaluates as expected)

Confirmed in the release pipeline run for this PR: https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=144453. The trace line is + printf '##%s[task.setvariable variable=Launch;isOutput=true]%s\n' vso True, with no ##vso[ in it, and the GitHubDraft and "Build binary packages" stages started.

@svc-ucx

svc-ucx commented Nov 11, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR (Tests BlueField on worker 1) · commit 2bd03fbb

TL;DR: The only failing test in this BlueField run is rcx/test_ucp_proto_mock_rcx_speed_change.rma_get/0, which asserts exact global rkey/EP-config counts and hard-coded rkey config indices — an already-known test-expectation bug fixed upstream by PR #12293, which has not been backported to the v1.23.x branch this PR targets. Backport #12293 (or relax the count/index expectations) instead of touching the PR's CI-only changes.

Full analysis

Summary: gtest stage failed with make: *** [Makefile:4782: test] Error 1; 8734/8735 tests passed, one failure: [ FAILED ] rcx/test_ucp_proto_mock_rcx_speed_change.rma_get/0, where GetParam() = rc_x.

Root cause: test_ucp_proto_mock_rcx_speed_change::test_port_speed() hard-codes the absolute number of worker configs after each step (EXPECT_EQ(ucs_array_length(&worker->rkey_config), 1/2/3/4), EXPECT_EQ(worker->ep_config.length, 1/2/3)) and also compares the rkey config index returned by send_recv_rma() against literal values 1, 2, 3. These expectations are not robust: any extra rkey/EP config created by protocol selection on a given platform shifts every subsequent expectation. The GET variant is the one that diverges on BlueField (the PUT variant passed), consistent with the RMA-GET selection changes backported to this branch — notably 01be4718 "UCP/RMA: Make put/rndv and get/rndv a fallback of zcopy - v1.23.x (#12036)" and 332d30cd "UCP/RKEY: Keep configurations at stable addresses - v1.23.x (#12043)", both of which touch this test file and the rkey-config path. Upstream recognized exactly this and merged a fix titled "UCP/GTEST: Fix expected rkey config count in port speed change test" (#12293); the v1.23.x branch still carries the unfixed expectations. The PR under test (#12309, ci-vso-output-var-trace-v1.23.x) only changes CI output-variable tracing and cannot affect UCP protocol selection — this is a pre-existing branch failure, not a regression from the PR.

Note the same anti-pattern was already fixed once for a sibling test by commit 5bf8f93c "UCP/GTEST: Avoid fixed rkey config index in RMA mock test" (#11816), which this test did not adopt.

Implicated commit: Test expectation introduced/unmaintained in a4abe16c (Ilia Yastrebov, "UCP/GTEST: Unit tests for port_speed event-driven load balancer", #11109); behavior change that breaks the GET variant most likely 01be4718 (Guy Ealey Morag, "UCP/RMA: Make put/rndv and get/rndv a fallback of zcopy - v1.23.x", #12036), with 332d30cd (#12043) as a second candidate.

File: test/gtest/ucp/test_ucp_proto_mock.cc:3972-4054 (specifically the count assertions at lines 3977-3988, 4001-4009, 4019-4031 and the rma_get instantiation at 4047-4054)

Suggested fix: Backport PR #12293 ("UCP/GTEST: Fix expected rkey config count in port speed change test") to v1.23.x. If a local fix is needed sooner, make test_port_speed() relative instead of absolute: capture base_rkey = ucs_array_length(&worker->rkey_config) / base_ep = worker->ep_config.length at test start and assert deltas, and derive the expected rkey config index from the value returned by send_recv_rma() (as done in 5bf8f93c) rather than comparing against literals 1/2/3. The CI-only change in #12309 should not be blocked on this; re-run or waive the BlueField gtest job once the backport lands.

Related: #12293 (upstream fix, not on v1.23.x), #11816 (same fragility fixed in a sibling mock test), #11901 ("TEST/UCP: Make test_port_speed more robust", still open)

@Alexey-Rivkin
Alexey-Rivkin merged commit 6c33749 into openucx:v1.23.x Nov 13, 2026
192 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.

4 participants