Skip to content

ROX-34058: fix labels.json breakage#3096

Draft
dcaravel wants to merge 1 commit intomasterfrom
dc/fix-json-bug
Draft

ROX-34058: fix labels.json breakage#3096
dcaravel wants to merge 1 commit intomasterfrom
dc/fix-json-bug

Conversation

@dcaravel
Copy link
Copy Markdown
Contributor

@dcaravel dcaravel commented Apr 14, 2026

Description

Fixes a bug that causes Scanner to detect zero components in RHEL images and wrong OS semi-randomly.

Conditions

Scanning an image that contain both content_sets.json and labels.json - example: quay.io/rhacs-eng/qa:ubi9-9.7-1769417801-amd64

Root Cause

Scanner stored *buildinfo* files in a map and looped over them, when labels.json happened to be the first file selected no content sets are found, which cascades and breaks detection (map iterations in Go are non-deterministic)

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 14, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant