fix(checks): canonicalize source architecture root - #9286
Conversation
Signed-off-by: Senthil Ravichandran <senthilr@nvidia.com>
Signed-off-by: Senthil Ravichandran <senthilr@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan includes up to 12 reviews per rolling hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe source architecture analyzer now canonicalizes the repository root before scanning and reporting. A regression test verifies correct paths and dependency metrics when analysis runs through a symlink. ChangesSource architecture analysis
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change canonicalizes repository roots for architecture-check scanning and reporting, with targeted regression coverage; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in commit 848e0f0 in the TypeScript / code-coverage/cliThe overall coverage in commit 848e0f0 in the Show a code coverage summary of the most impacted files.
Updated |
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
3 terminology differences from the second opinionAdvisory only. These are normalized differences from the primary terminology receipt.
Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests. 1 semantic terminology decisionTerminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.
E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite for the commit under review. Recommended E2E: None Manual-only E2E: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Signed-off-by: Senthil Ravichandran <senthilr@nvidia.com>
prekshivyas
left a comment
There was a problem hiding this comment.
Reviewed commit 848e0f0. No findings.
Security review:
- Secrets and credentials: PASS. This internal analyzer does not handle credentials.
- Input validation and data sanitization: PASS. The code resolves the supplied repository root before all path operations.
- Authentication and authorization: PASS. This change adds no authorization boundary.
- Dependencies and third-party libraries: PASS. This change adds no dependency or downloaded artifact.
- Error handling and logging: PASS. realpathSync preserves explicit failure for an invalid root.
- Cryptography and data protection: PASS. This change adds no cryptographic or protected-data flow.
- Configuration and security headers: PASS. This change does not alter runtime configuration.
- Security testing: PASS. The symlink and junction regression verifies repository-relative files, fan-in, fan-out, and root-file counts.
- System security: PASS. Canonicalization is applied once and used consistently for the complete analysis.
Cross-issue sweep: no adjacent fix or conflict found.
cv
left a comment
There was a problem hiding this comment.
Accepted scope, code review, contributor requirements, security, targeted regression coverage and documentation impact, and required checks pass on 848e0f0. GitHub reports MERGEABLE. The branch is behind main, which is advisory because required checks evaluated this unchanged commit against base commit 2212aa8.
Summary
Canonicalizes the repository root before the source-architecture check scans files or reports paths. This keeps macOS temporary repositories exposed through
/varaliases aligned with their/private/varfile identities instead of reporting paths outside the repository.Changes
Type of Change
Quality Gates
Documentation Writer Review
no-docs-neededDGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpx vitest run --project integration test/source-architecture.test.ts: 8/8 passed on macOS; CLI typecheck, repository checks, source-shape, test-size, conditionals, loops, formatting, and lint also passed.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Senthil Ravichandran senthilr@nvidia.com
Summary by CodeRabbit
Bug Fixes
Tests