Closed G-Rath closed 2 weeks ago
I think we should update cmd/osv-scanner/fixtures/locks-many/alpine.cdx.xml
Is that something you're ok to pick up? I don't actually know how to generate an sbom 😅 (everytime I try, the CLIs confuse me)
@another-rex could you help to update the fixture?
(fwiw, it could be worth putting that into a script to make it easier to repeat - even if it's just the raw commands that only work on Rex's local, it'd mean I could clean it up later to make it more repeatable for everyone)
ideally, I would like to run the tests against some mock database, so we don't need to update the fixtures all the time.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 65.25%. Comparing base (
d857676
) to head (dd87a91
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
eh that would be nice but then require a lot of different work - something I've been thinking of exploring which could be a useful middleground is creating a workflow that runs say daily to automatically open a PR with snapshot updates.
Another alternative is the osv schema itself could define some kind of "test" ecosystem and then the api could have a bunch of osvs using that ecosystem, with the idea being you can officially represent advisories of different structures for the purposes of testing so they're a lot more controlled
Someone that knows these tests better should double check that these changes in exit codes mean they're no longer covering what they were meant to