Skip to content

Conversation

@MichaelSimons
Copy link
Member

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.

Copy link
Contributor

Copilot AI left a 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 .xlf diff 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-diagnostics job, passing the diff via step outputs.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Member

@nagilson nagilson left a 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 👏

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect New NETSDK Diagnostics / Read .lfx Diff GH action yields false positives

2 participants