-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix detect-netsdk-diagnostics action false positives #53017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix detect-netsdk-diagnostics action false positives #53017
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Updates the detect-netsdk-diagnostics GitHub Action to avoid false positives when large .xlf changes exist on the target branch by ensuring the workflow only diffs the PR’s changes.
Changes:
- Switch
.xlfdiff generation from a two-dot diff (base..head) to a three-dot diff (base...head) so only PR-introduced changes are considered. - Merge the previously separate “Read .xlf Diff” and “Detect diagnostics” jobs into a single
detect-diagnosticsjob, passing the diff via step outputs.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…://github.com/MichaelSimons/sdk into fix-detect-netsdk-diagnostics-false-positives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
nagilson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this 👏
Fixes #53016
The `detect-netsdk-diagnostics` GitHub Action uses a two-dot diff (`base.sha..head.sha`) to compare `.xlf` files. This compares the tip of the target branch against the PR head, meaning if large `.xlf` changes exist on the base branch that the PR hasn't rebased onto, the diff includes those unrelated changes. This causes false positives when the diff exceeds the 1MB job output limit — failing PRs that don't even touch `.xlf` files.