chore(ncp-local-cluster): fix stale and missing .PHONY entries#309
Merged
kristinapathak merged 1 commit intoJul 21, 2026
Conversation
Drop build-linux-amd64 from .PHONY; the target does not exist. Add the real targets ensure-cluster, setup-metallb, deploy-nginx, wait-for-nginx, wait-for-gateway, validate-gateway, and cleanup-nginx so a same-named file cannot silently skip them. Also replace an em dash in a comment per the ASCII-only style rule. Closes NVIDIA#306 Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
📝 WalkthroughWalkthroughThe local cluster Makefile removes the obsolete ChangesLocal cluster Makefile
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tools/ncp-local-cluster/Makefile`:
- Line 16: Add focused regression coverage for the .PHONY target list in the
Makefile, verifying that creating same-named files does not suppress execution
of the relevant targets; place it in the existing test-multicluster-make.sh
coverage or an appropriate repository-native test. Ensure the test runs through
the listed validation commands and preserves the current help and
port-substitution checks.
- Around line 22-25: Update the .env precedence comments near the Makefile’s
environment-loading configuration to accurately state that .env assignments
override imported shell variables, while removing a key does not necessarily
unset it: the shell value may still apply through ?=, or the configured default
may be used. Keep the command-line override behavior documented.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: f993f341-641a-4889-b46e-a41a83677e9f
📒 Files selected for processing (1)
tools/ncp-local-cluster/Makefile
sbaum1994
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
.PHONY declared build-linux-amd64, which does not exist, and was missing seven real targets (ensure-cluster, setup-metallb, deploy-nginx, wait-for-nginx, wait-for-gateway, validate-gateway, cleanup-nginx). Declaration-only change, no recipes touched; make validate-compute-clusters passes and make -n parses all targets. A .PHONY contract test would touch the file #310 modifies, so it is left as a follow-up.
Issues
Closes #306