Uh oh!
There was an error while loading. Please reload this page.
Add support for introduced and fixed commits in AdvisoryData - #2017
Conversation
2af10cf to
a8ec9f1CompareTG1999
commented
Nov 6, 2025
@ziadhany add description in the PR please! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TG1999
commented
Nov 7, 2025
@ziadhany mostly looks good! Please run the importer once and paste the logs here. Thanks! I want to see if we are missing on any data in OSV format. And how does the AdvisoryData and ImpactedPackages looks with the new CommitData. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
@TG1999 This is the log output for the following importers:
the database query result : |
TG1999
commented
Nov 10, 2025
Why are we getting in this logs? The commit data should have been created for this |
TG1999
commented
Nov 10, 2025
See all when we have introduced and fixed events to create code commit data. |
I updated the script to handle unsupported packages (especially for OSS-Fuzz). CodeCommit is no longer ignored even if the package is unsupported, and logs are now more meaningful. This is the updated logs: the database query result : Issues related:
|
TG1999
commented
Nov 11, 2025
This log does not tell me a lot, what's the data. Why this is unsupported. |
TG1999
commented
Nov 11, 2025
One of the list might not be a valid version, but all others are valid, are we ingesting them or skipping whole list if we can't ingest one. |
ziadhany
commented
Nov 11, 2025
@TG1999 We are ignoring GHSA files since we target only PYSEC files. |
TG1999
commented
Nov 11, 2025
Then add that to the log as well :) |
We are skipping this since the version range would likely be inconsistent if we processed it. I can changes this if needed. |
TG1999
commented
Nov 11, 2025
@keshav-space@pombredanne thoughts on this one ? |
TG1999
commented
Nov 11, 2025
For PYSEC data we would be using github version range, coz the versions are Semver. And if a version is not parsable that version should be skipped. Not the entire range. Also we should introduce a flag for advisories that were not completely parsed. So in future if our parsing techniques gets better we can delete the incomplete parsed advisory with a new one. |
keshav-space
left a comment
There was a problem hiding this comment.
Thanks @ziadhany, See the comments below and also make sure to adjust the insert_advisory method accordingly.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ziadhany
commented
Nov 17, 2025
This is the log output for the following importers:
|
TG1999
commented
Nov 17, 2025
|
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Fix patch_checksum constraint Remove unused imports Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
…PackageCommitPatch Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Update get_or_create_advisory_references to store the reference type correctly. Update get_or_create_advisory_package_commit_patches to correctly create or update the patch_text field. Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Add constraint to make sure we have at least one field to create a valid Patch obj. Update patch_text only if patch_text field is empty. Return multiple objects for classify_patch_source function Add patch in AdviosryData.from_dict() Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Update migration file Signed-off-by: ziad hany <ziadhany2016@gmail.com>
747dc5f to
f7ee8c2Compareziadhany
commented
Dec 15, 2025
Uh oh!
There was an error while loading. Please reload this page.
introduced_by_commitsandfixed_by_commitsfields in our advisoryfrom_dictandto_dictmethodsCodePatchDataimporter class