Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SBOM integration test bug #673

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Fix SBOM integration test bug #673

merged 1 commit into from
Jan 13, 2025

Conversation

rudsberg
Copy link
Contributor

This PR resolves a test failure identified by @dnestoro (see here). The issue was that the test incorrectly checked for an exported SBOM when only an embedded SBOM is generated. I believe the test previously did not fail since the exported SBOM was picked up from another test, but in the failed run that was not the case.

@rudsberg rudsberg requested a review from dnestoro January 13, 2025 11:05
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 13, 2025
then:
buildSucceeded
outputContainsPattern".*CycloneDX SBOM with \\d+ component\\(s\\) is embedded in binary \\(.*?\\)."
outputDoesNotContain "Use '--enable-sbom' to assemble a Software Bill of Materials (SBOM)"
validateSbom sbom
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the culprit. The sbom JSON should not be created in this scenario since --enable-sbom gets used which only embeds the SBOM in the image.

@dnestoro dnestoro merged commit bee5ead into master Jan 13, 2025
39 checks passed
@dnestoro dnestoro deleted the bug/sbom-integration-test branch January 13, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants