Closed andrewpollock closed 1 month ago
I'm having some feelings about all of the functions doing the things being nested within main()
... It doesn't feel like it's adhering to the spirit of the Python style guide on this?
I'm having some feelings about all of the functions doing the things being nested within
main()
... It doesn't feel like it's adhering to the spirit of the Python style guide on this?
+1 - it looks like most of the nested functions are relatively straightforward to extract
+1 - it looks like most of the nested functions are relatively straightforward to extract
Yeah I was trying to time-box the amount of time I spent on this, as I burned close to 2 hours between debugging the failure and making this PR, so I wanted to avoid a large-scale refactor (and attendant breakage) so I can unwind my stack and get back to my other task...
Was this fixed? it seems like that
if 'link' in repo
check isn't accomplishing what it intended to do.
Yeah good point... I fixed it directly in Datastore to get the code to stop crashing... Looking over https://github.com/google/osv.dev/commits/master/source_test.yaml, it looks a bunch of recent commits haven't been applying successfully 😞
Looking over https://github.com/google/osv.dev/commits/master/source_test.yaml, it looks a bunch of recent commits haven't been applying successfully 😞
Actually it's not quite so dire, it was just this most recent PR that fell over 🤔
The problem seemed to be that the cve-osv
source in Datastore was quite different to the YAML reality for it...
Problem:
happening on https://github.com/google/osv.dev/pull/2699 was harder to get to the bottom of than I'd have liked...
Capture some of the knowledge gained as part of debugging this in some basic service documentation to help the next person