Skip to content

Fix RPM audit files not appearing in index.json#59

Merged
naveensrinivasan merged 1 commit into
mainfrom
naveen/fix-bugs-rom-json
May 6, 2026
Merged

Fix RPM audit files not appearing in index.json#59
naveensrinivasan merged 1 commit into
mainfrom
naveen/fix-bugs-rom-json

Conversation

@naveensrinivasan

Copy link
Copy Markdown
Member

The root cause was that the toPlatformArtifact function in the promotion flow only set the Binary field but not the Audit field for RPM packages. When package promotion ran, it would upload the RPM and its audit file to GitHub, but the database artifacts JSON only recorded the Binary, not the Audit. This caused the audit to be null in the database and missing from the generated index.json.

Changes:

  • Modified toPlatformArtifact in internal/promotion/promote.go to set the Audit field for RPM targets with the audit filename and URL
  • Added tests for RPM audit file handling in release and promotion

Fixes the issue where OSPO-nodejs-*.rpm.audit.json files were uploaded to GitHub releases but not reflected in index.json.

The root cause was that the toPlatformArtifact function in the promotion
flow only set the Binary field but not the Audit field for RPM packages.
When package promotion ran, it would upload the RPM and its audit file to
GitHub, but the database artifacts JSON only recorded the Binary, not
the Audit. This caused the audit to be null in the database and missing
from the generated index.json.

Changes:
- Modified toPlatformArtifact in internal/promotion/promote.go to set
  the Audit field for RPM targets with the audit filename and URL
- Added tests for RPM audit file handling in release and promotion

Fixes the issue where OSPO-nodejs-*.rpm.audit.json files were uploaded
to GitHub releases but not reflected in index.json.
@naveensrinivasan naveensrinivasan merged commit a8b0625 into main May 6, 2026
3 of 4 checks passed
@naveensrinivasan naveensrinivasan deleted the naveen/fix-bugs-rom-json branch May 6, 2026 14:50
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.39%. Comparing base (cefe427) to head (67f4be8).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   47.35%   47.39%   +0.04%     
==========================================
  Files          50       50              
  Lines        7414     7420       +6     
==========================================
+ Hits         3511     3517       +6     
  Misses       3501     3501              
  Partials      402      402              

☔ View full report in Codecov by Sentry.
📢 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.

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.

2 participants