Skip to content

test(rccl): guard Makefile dep tracking stays on -MM - #12933

Merged
PedramAlizadeh merged 7 commits into
developfrom
users/PedramAlizadeh/cmake_test
Oct 14, 2026
Merged

PedramAlizadeh merged 7 commits into
developfrom
users/PedramAlizadeh/cmake_test

Conversation

@PedramAlizadeh

Copy link
Copy Markdown
Contributor

NCCL PR #1806 dropped system headers from include tracking so the device DEPENDS realpath loop does not walk libc/HIP trees. Scan the src Makefiles in the host-test guards phase so a revert to -M fails CI.

Motivation

NCCL 2.30.7 switched Makefile include tracking from -M to -MM so system headers are not realpath’d during depgen. That change is already on develop; this PR only guards it against a silent revert.

Technical Details

src/test_makefile_depflags.py requires -MM/-MMD on the dep recipes in src/Makefile, src/device/Makefile, and src/diagnostics/device/Makefile, and rejects -M/-MD. Host-test CI runs it via run_host_tests.sh guards. The ctest registration is local-only.

Issue Tracking

JIRA ID: AICOMRCCL-1848

Test Plan

Run python3 projects/rccl/src/test_makefile_depflags.py -v and confirm a -MM → -M revert fails. After push, check that the host-unit-test job runs the scan.

Test Result

All 6 local cases passed, and a -M mutation failed as expected. GPU / TheRock jobs were not run; they do not execute this script.

Submission Checklist

NCCL PR #1806 dropped system headers from include tracking so the
device DEPENDS realpath loop does not walk libc/HIP trees. Scan the
src Makefiles in the host-test guards phase so a revert to -M fails CI.
@PedramAlizadeh
PedramAlizadeh requested review from a team October 6, 2026 17:38
@therock-pr-bot

therock-pr-bot Bot commented Oct 6, 2026

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@amd-argus amd-argus Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARGUS

Bottom line: Worth settling before approval: depgen_sites reports a logical index rather than a Makefile line, so a real -MM revert at src/Makefile:284 is cited as line 243.

Comment @argus review to re-run, or @argus re-review after pushing.

@amd-argus amd-argus Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARGUS

Bottom line: Worth settling before approval: _join_continued_lines joins continuation segments with no separator, so a backslash abutting a dep flag hides it from the scan.

Comment @argus review to re-run, or @argus re-review after pushing.

@amd-argus amd-argus Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARGUS

Bottom line: Worth settling before approval: test_parser_ignores_sed_of_d_tmp never reaches the gate it names, so the reject branch at test_makefile_depflags.py:70 has no coverage.

Comment @argus review to re-run, or @argus re-review after pushing.

@amd-argus amd-argus Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARGUS

Bottom line: LGTM.

Comment @argus review to re-run, or @argus re-review after pushing.

@PedramAlizadeh
PedramAlizadeh merged commit 74df0ba into develop Oct 14, 2026
73 of 75 checks passed
@PedramAlizadeh
PedramAlizadeh deleted the users/PedramAlizadeh/cmake_test branch October 14, 2026 07:58
@systems-assistant

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants