Skip to content

CI: Add UCF CLA check for pull requests - #12120

Merged
Alexey-Rivkin merged 44 commits into
openucx:masterfrom
Alexey-Rivkin:ci-cla-check
Nov 23, 2026
Merged

Alexey-Rivkin merged 44 commits into
openucx:masterfrom
Alexey-Rivkin:ci-cla-check

Conversation

@Alexey-Rivkin

@Alexey-Rivkin Alexey-Rivkin commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What?

Add a CLA check that fails a PR whose new commits are unsigned or come from an email with no signed UCF CLA.

Why?

UCX contributions require a countersigned UCF CLA, but no CI check enforces it.

How?

  • cla.yml runs on pull_request_target for master and v*.*.x; it sparse-checks out buildlib/tools/cla_check.sh from the base branch, PR code is never checked out.
  • The script takes --repo/--pr/--head-sha, lists and token from env, and --dry-run for local runs.
  • Signer emails and entity domains come from the CLA_INDIVIDUALS and CLA_ENTITIES repo secrets, published from the internal signer record.
  • Each new commit needs a verified signature and a covered author and committer email; commits already on master or a release branch are skipped; bots get no exemption, any fork can mint a signed bot-authored commit.
  • On failure, one PR comment (updated on every run) and the job summary list the uncovered emails and link the CLA forms.
  • Not required yet; an owner marks CLA required after a trial period.

Tested

Same workflow on the fork (guard pointed at Alexey-Rivkin/ucx, test lists in its secrets), PRs against a v9.99.x branch:

HPCINFRA-4976 (Internal link)

@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Residual coverage gap: per the REVIEW.md build/CI rule, this workflow cannot be validated until it runs on a real PR, and the failure paths (bot author, unlinked commit email, non-signer, wrong team slug, missing app secret) are not exercised by anything in-tree. Worth confirming the author has seen both a passing and a failing run — ideally including the unlinked-email path — before this becomes a required check.

@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Residual coverage gap: beyond the previously noted inability to exercise failure paths in-tree, the unlinked branch (L77, L105-107) and the PR_COMMITS > 250 guard (L70-73) are the two paths least likely to be hit by an initial smoke test, and both are hard-fail. Worth confirming at least the unlinked-email path was observed on a real run before this becomes a required check.

@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

.github/workflows/cla.yml

Residual coverage gap: consistent with the prior reviews on earlier head SHAs, and still unaddressed: per the REVIEW.md build/CI rule, nothing in-tree exercises this workflow. The unlinked branch (L79, L107-109) and the PR_COMMITS > 250 guard (L72-75) remain the two hard-fail paths least likely to be hit by a smoke test. The two new findings above compound this — neither the fork-without-secrets path nor co-author handling is observable until the workflow runs for real. Worth confirming a passing and a failing run, ideally including the unlinked-email path, before this becomes a required check.

@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/CONTRIBUTING.md Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Residual coverage gap (already raised on earlier head SHAs): the committer/author bypass is not observable in-tree — nothing exercises the author≠committer corporate path, and it fails open, so a smoke test showing a green check cannot distinguish correct coverage from this bypass. A targeted manual run with a commit whose author and committer differ would be the cheapest validation before this becomes a required check.

@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Residual gap: nothing in-tree exercises this workflow, so all branches depend on observed real runs.

@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
@Alexey-Rivkin Alexey-Rivkin added the WIP-DNM Work in progress / Do not review label Oct 20, 2026
@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

vars.CLA_TEAM/vars.CLA_DOMAINS/vars.CLA_APP_CLIENT_ID and the app private key are repository-level configuration not visible from the checkout. If any of those is unset, the app-token step or the L71 preflight fails red rather than warning — worth confirming they are configured before merge. (No secret values appear in the diff; only references to secrets.CLA_APP_PRIVATE_KEY, which is the correct way to consume it.)

@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/tools/cla_check.sh Resolved
Comment thread .github/CONTRIBUTING.md Resolved
Comment thread .github/CONTRIBUTING.md Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Not posted as new comments (already-open threads, warrant a +1 rather than new comments since unchanged in substance): users.noreply.github.com author emails; exact domain match excluding subdomains; Co-authored-by trailers; the zero-new-commit pass at L75-76 (still reachable for an openucx/ucx head branch named like v*.*.x, since L73-74 excludes those refs); verification.verified binding the committer but not the author; the web-flow committer exemption failing open (L89); --filter=tree:0 against an anonymous URL rather than a configured remote (L68); per-commit gh api volume and no retry at L85 (a transient failure aborts red with no PR comment, and repos/{repo}/commits/{sha} also returns file patches where pulls/{pr}/commits would be one request per 100); the check_list hard exit at L44-56 going red with no PR comment; on: omitting edited so a base-branch change leaves a stale required check; needing both cla.yml and cla_check.sh on every v*.*.x base branch for pull_request_target to fire there; the unsigned hard fail hitting already-open PRs on day one; and buildlib/azure-pipelines-pr.yml excluding neither .github/ nor buildlib/tools/cla_check.sh — re-confirmed still absent from the exclude list at lines 12-34, while .ci is excluded.

Residual coverage gap: per the REVIEW.md build/CI rule, nothing in-tree exercises this script, and there is still no shellcheck/actionlint/yamllint step anywhere; buildlib/tools/static_checks.sh is C/C++-only and this remains the repository's first gh-based script, so there is no local pattern to lean on. Because pull_request_target loads both the workflow and the script from the base branch, this PR cannot run its own check — validation rests on --dry-run output plus observed runs after merge. Paths least likely to be covered by a smoke run: the empty/malformed-secret hard exit, a release-branch PR, and any commit with a web-flow committer or an author-vs-committer split.

GitHub verifies an SSH signature only when the key is registered as a
signing key, the most common cause of an unverified commit. The file
already allows two other force-pushes, so the re-sign is not the only
exception.

Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
The marker is invisible and only pairs the bot comment with its later
updates, so it follows the check and repository names. Changing it
after the first production comment would orphan that comment.

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.

Comment thread .github/CONTRIBUTING.md Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Residual coverage gap: nothing in-tree exercises this script, and there is still no shellcheck/actionlint/yamllint step anywhere (.ci/, buildlib/, .github/workflows/; buildlib/tools/static_checks.sh is C/C++-only). Because pull_request_target loads the workflow and the script from the base branch, this PR cannot run its own check, so validation rests on --dry-run output plus observed runs after merge. Paths least likely to be covered by a smoke run: the empty/malformed-secret hard exit, a release-branch PR, and any commit with a web-flow committer or an author≠committer split.

Rebasing onto the merge base alone replays everything after it,
including base-branch commits that a conflict-resolving merge brought
in, which would be rewritten under the contributor's signature. With
--onto the range starts at the base branch tip and the merges keep
their base-side parents.

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.

Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/workflows/cla.yml Resolved
Comment thread .github/CONTRIBUTING.md Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Author emails of the form users.noreply.github.com are not handled (existing open thread).

Exact domain match excludes subdomains (existing open thread).

Co-authored-by trailers are not considered (existing open thread).

verification.verified binds the committer but not the author (existing open thread).

The unsigned hard fail will hit already-open PRs on day one.

The Azure PR pipeline exclude list (existing open thread) — neither .github/ nor buildlib/tools/cla_check.sh is excluded.

Residual coverage gap: nothing in-tree exercises this script and there is still no shellcheck/actionlint/yamllint step anywhere (buildlib/tools/static_checks.sh is C/C++-only). Because pull_request_target loads both the workflow and the script from the base branch, this PR cannot run its own check, so validation rests on --dry-run output plus observed runs after merge. Paths least likely to be covered by a smoke run: the empty/malformed-secret hard exit, a release-branch PR, and any commit with a web-flow committer or an author!=committer split.

With set -u a missing value died with an unbound variable error.

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.

Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread buildlib/tools/cla_check.sh Resolved
Comment thread .github/workflows/cla.yml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Already raised (+1 on existing thread): both cla.yml and cla_check.sh must be backported to every v*.*.x branch for pull_request_target to fire there.

Already raised (+1 on existing thread): the unsigned hard fail will hit already-open PRs on day one.

Already raised (+1 on existing thread): buildlib/azure-pipelines-pr.yml excludes neither .github/ nor buildlib/tools/cla_check.sh — re-confirmed absent from the exclude list, while .ci is excluded.

Residual coverage gap (per REVIEW.md build/CI rule): nothing in-tree exercises this script, and there is no shellcheck/actionlint/yamllint step anywhere (.ci/, buildlib/, .github/workflows/ — zero hits repo-wide); buildlib/tools/static_checks.sh is C/C++-only and this is the repository's first gh-based script. Because pull_request_target loads both the workflow and the script from the base branch, this PR cannot run its own check, so validation rests on --dry-run output plus observed runs after merge. Paths least likely to be covered by a smoke run: the empty/malformed-secret hard exit, a release-branch PR, and any commit with a web-flow committer or an author≠committer split.

The dry run claimed it would post a comment even when a real run would
post nothing. It now performs the read-only lookup and says whether it
would update, create or skip the comment.

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.

@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Review complete — no issues found.

@svc-ucx

svc-ucx commented Nov 8, 2026

Copy link
Copy Markdown

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

TL;DR: The ASAN "roce on worker 2" job failed on a single gtest, ib/test_md.alloc/1 (device mlx5_1), while all other 8958 tests passed; this test exercises IB on-chip device-memory (MEMIC/DM) allocation — a tiny, host-wide shared resource — and is unrelated to PR #12120, which only adds a CI CLA workflow. Re-run the job, and harden test_md.alloc so DM exhaustion doesn't fail the suite.

Full analysis

Summary: make test in build-test/test/gtest exited with error 1 because exactly one test failed: [ FAILED ] ib/test_md.alloc/1, where GetParam() = mlx5_1 (make: *** [Makefile:4992: test] Error 1, ##[error]Bash exited with code '2').

Root cause: test_md.alloc is only instantiated for the ib component when UCT_MD_FLAG_ALLOC is set, and for IB that flag is set exclusively by uct_ib_mlx5dv_check_dm_ksm_reg() (src/uct/ib/mlx5/dv/ib_mlx5dv_md.c:2311) — i.e. the test allocates on-chip device memory (MEMIC) via ibv_alloc_dm(). That memory is a few hundred KB per HCA and is shared by every process on the machine, and this ASAN run is one of several parallel gtest workers ("worker 2") on the same host. The test does 300 allocations of up to ~63 KB each and asserts EXPECT_LT(num_alloc_failures/iterations, 0.5) << "Too many OUT_OF_RESOURCE failures" (test/gtest/uct/test_md.cc:493). All DM-exhaustion paths return UCS_ERR_NO_MEMORY (lines 2167/2177/2184/2194), while the post-allocation steps (uct_ib_reg_mr, uct_ib_mlx5_devx_reg_ksm_data_addr) return other statuses that hit the hard ASSERT_UCS_OK(status) at test_md.cc:475. Either way the trigger is device-memory/KSM resource exhaustion on mlx5_1, not a code defect in the PR. Two aggravating test bugs: num_alloc_failures is declared outside the ucs_for_each_bit(mem_type, ...) loop and never reset (lines 418, 493), and the sizes used are derived from max_alloc/8 capped at the odd constant 63356 (line 447) rather than from the currently available DM. Note the PR under test (#12120, branch ci-cla-check) only adds a GitHub CLA-check workflow and touches no C/C++ source, so it cannot have caused this.

Implicated commit: unknown — not caused by [REDACTED:Hex High Entropy String] (PR #12120 is CI-only). The relevant test/feature code is older: [REDACTED:Hex High Entropy String] (Roie Danino, "UCT/IB: Added support for device memory allocation (memic/rdma)") and [REDACTED:Hex High Entropy String] (Evgeny Leksikov, "GTEST: improve testing of UCT_MD_FLAGs").

File: test/gtest/uct/test_md.cc:493 (failure-ratio assertion) and test/gtest/uct/test_md.cc:475 (hard ASSERT_UCS_OK); allocation path src/uct/ib/mlx5/dv/ib_mlx5dv_md.c:2133-2232

Suggested fix:

  1. Re-run the job — this is an environment/resource flake, not a regression from PR CI: Add UCF CLA check for pull requests #12120; do not block the PR on it.
  2. Harden the test in test/gtest/uct/test_md.cc:
    • Move num_alloc_failures = 0 inside the ucs_for_each_bit(mem_type, ...) loop so the ratio is per memory type.
    • For UCS_MEMORY_TYPE_RDMA (device memory), convert the "too many failures" condition from a failure into UCS_TEST_SKIP_R("device memory exhausted"), since on-chip memory is shared host-wide and other concurrent gtest workers legitimately consume it.
    • Size the allocations from the device's actual max_dm_size (and use a much smaller cap for UCS_MEMORY_TYPE_RDMA) instead of the hard-coded 63356.
  3. If reproducible rather than flaky, capture the full gtest output for the test (the per-assertion text scrolled out of the retrievable ~500-line Azure log tail) to distinguish the ASSERT_UCS_OK KSM/MR-registration path from the OUT_OF_RESOURCE ratio path.

Related: PR #12120 (#12120) — the PR under test, CI-only change; no existing issue found tracking ib/test_md.alloc device-memory flakiness.

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id 06d04dc1-7870-4de8-8d20-aa315765f99e in the triage console for the audit trail.

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