Skip to content

[Actions] Fix a bug with diff showing up due to path mismatch#292

Merged
VeithMetro merged 2 commits into
masterfrom
development/actions-diff-rename-fix
Jun 23, 2026
Merged

[Actions] Fix a bug with diff showing up due to path mismatch#292
VeithMetro merged 2 commits into
masterfrom
development/actions-diff-rename-fix

Conversation

@VeithMetro

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 23, 2026 10:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates several generator GitHub Actions workflows to prevent false-positive diffs caused by mismatched root paths in unified diff headers, improving the accuracy of PR preview diff rendering.

Changes:

  • Normalizes unified diff ---/+++ file header paths by stripping differing roots (e.g., baseline/, generated/, variant-specific roots).
  • Applies the same normalization approach across ProxyStub, Lua, JSON, and PluginSkeleton generator workflows.
  • Keeps the existing diff generation flow intact (diff creation → optional diff2html rendering), but post-processes the diff text before evaluation/rendering.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/ProxyStubGenerator.yml Normalizes diff header paths in diffs/combined.diff to avoid path-mismatch diffs.
.github/workflows/PluginSkeletonGenerator.yml Normalizes per-variant diff header paths in diffs/${name}.diff to avoid path-mismatch diffs.
.github/workflows/LuaGenerator.yml Normalizes diff header paths in diffs/combined.diff to avoid path-mismatch diffs.
.github/workflows/JsonGenerator.yml Normalizes diff header paths in diffs/combined.diff to avoid path-mismatch diffs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ProxyStubGenerator.yml Outdated
Comment thread .github/workflows/LuaGenerator.yml Outdated
Comment thread .github/workflows/JsonGenerator.yml Outdated
Comment thread .github/workflows/PluginSkeletonGenerator.yml Outdated
@github-actions

Copy link
Copy Markdown

LuaGenerator Results

View Results

No changes detected.

@github-actions

Copy link
Copy Markdown

Plugin skeleton preview (latest run):
https://rdkcentral.github.io/ThunderTools/PluginSkeletonGenerator/previews/pr-292/run-28021034335/

No changes detected in generated plugin code. The PR changes are internal to the generator or do not affect output.

@github-actions

Copy link
Copy Markdown

LuaGenerator Results

View Results

No changes detected.

@github-actions

Copy link
Copy Markdown

ProxyStubGenerator Results

View Results

Changes detected.

@github-actions

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

@github-actions

Copy link
Copy Markdown

Plugin skeleton preview (latest run):
https://rdkcentral.github.io/ThunderTools/PluginSkeletonGenerator/previews/pr-292/run-28021291689/

No changes detected in generated plugin code. The PR changes are internal to the generator or do not affect output.

@github-actions

Copy link
Copy Markdown

ProxyStubGenerator Results

View Results

Changes detected.

@github-actions

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

@VeithMetro VeithMetro requested a review from sebaszm June 23, 2026 11:45
@VeithMetro VeithMetro merged commit 4d643f1 into master Jun 23, 2026
153 checks passed
@VeithMetro VeithMetro deleted the development/actions-diff-rename-fix branch June 23, 2026 12:21
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants