Skip to content

Conversation

@sethmlarson
Copy link
Collaborator

By not keeping IDs stable it meant that we weren't matching our source SBOM's IDs, specifically SPDXRef-PACKAGE-cpython. This keeps the IDs stable unless there is a collision, which can only happen w/ filepaths not package names.

@sethmlarson sethmlarson requested review from Yhg1s and hugovk December 3, 2024 22:45
@pytest.mark.parametrize(
["value", "expected"],
[
("abc", "abc-ba7816bf"),
Copy link
Member

Choose a reason for hiding this comment

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

As far as I can tell this doesn't actually exercise the unhappy hash path, would it make sense to add a collision to this set of parameters? I don't remember if pytest guarantees ordered execution of the test with parameters.

@Yhg1s Yhg1s merged commit 95a854f into python:master Dec 3, 2024
10 checks passed
@sethmlarson sethmlarson deleted the sbom-spdx-id-stable branch December 4, 2024 04:47
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