Skip to content

fix(report): sort sarif rules for reproducible output#329

Closed
TBX3D wants to merge 1 commit into
vmfunc:mainfrom
TBX3D:fix/sarif-rule-order
Closed

fix(report): sort sarif rules for reproducible output#329
TBX3D wants to merge 1 commit into
vmfunc:mainfrom
TBX3D:fix/sarif-rule-order

Conversation

@TBX3D

@TBX3D TBX3D commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

the rules list was built by iterating a set, so the same scan produced
sarif with the rules in a different order on every run, defeating diffing,
caching and snapshot tests. sort the ids before emitting them.

the rules list was built by iterating a set, so the same scan produced
sarif with the rules in a different order on every run, defeating diffing,
caching and snapshot tests. sort the ids before emitting them.
@TBX3D TBX3D requested a review from vmfunc as a code owner July 4, 2026 01:12
@github-actions github-actions Bot added tests test changes size/m <200 lines changed labels Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

pr summary

2 files changed (+49 -3)

category files
go source 2
tests 1

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@7ea1cd2). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #329   +/-   ##
=======================================
  Coverage        ?   54.75%           
=======================================
  Files           ?       81           
  Lines           ?     6878           
  Branches        ?        0           
=======================================
  Hits            ?     3766           
  Misses          ?     2843           
  Partials        ?      269           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TBX3D

TBX3D commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

closing as a duplicate of #337, which applies the identical sarif rule-id sort fix and also covers the markdown crlf fix.

@TBX3D TBX3D closed this Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m <200 lines changed tests test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants