fix(scripts): address retirement scan review findings - #673
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
One documentation line in the validation reference is now ambiguous about which parts of validate:all are cache-aware and should be clarified.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR follows up on the whole-repository retirement scan work by tightening wording and link correctness, relaxing a repository-specific ownership assertion, and improving the retirement reference scan’s lookup performance.
Changes:
- Fix relative links to the Entra authentication best-practices reference in Service Bus Function recipe templates.
- Refine retirement-scan and validator documentation wording in the completed exec plan and validation reference docs.
- Improve
candidateReferences()performance by using set membership, and adjust the ownership test to avoid a repo-specific CODEOWNERS assumption.
File summaries
| File | Description |
|---|---|
| tools/tests/exec-plans/completed/whole-repo-retirement-scan-2026-08-27.md | Clarifies completion criteria wording around human approval for retirement actions. |
| tools/tests/audit-retirement-candidates.test.mjs | Removes repository-specific CODEOWNER assertion; now checks for non-empty ownership coverage. |
| tools/scripts/audit-retirement-candidates.mjs | Replaces repeated array includes() checks with Set membership for tracked-path lookups. |
| site/src/content/docs/reference/validation-reference.md | Shortens/adjusts validator table wording (one line still reads ambiguously about caching). |
| .github/skills/azure-prepare/references/services/functions/templates/recipes/servicebus/source/python.md | Fixes deep relative link to auth best practices reference. |
| .github/skills/azure-prepare/references/services/functions/templates/recipes/servicebus/source/powershell.md | Fixes deep relative link to auth best practices reference. |
| .github/skills/azure-prepare/references/services/functions/templates/recipes/servicebus/source/java.md | Fixes deep relative link to auth best practices reference. |
| .github/skills/azure-prepare/references/services/functions/templates/recipes/servicebus/source/dotnet.md | Fixes deep relative link to auth best practices reference. |
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
12 tasks
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.
Description
Addresses all Copilot review findings raised after #672 merged.
Related Issue
Follow-up to #672.
Type of Change
Token / latency impact (Plan 01 Phase 5)
This change affects input-token budget / per-call latency:
Workflow Used
Changes Made
Testing Performed
node --test tools/tests/audit-retirement-candidates.test.mjsnpm run validate:retirement-scannpm run lint:mdgit diff --checkPre-Submission Checklist
Additional Notes
All Copilot threads on #672 report resolved.