diff --git a/gcp/workers/importer/importer.py b/gcp/workers/importer/importer.py index b5b54475691..aed53257880 100755 --- a/gcp/workers/importer/importer.py +++ b/gcp/workers/importer/importer.py @@ -54,6 +54,7 @@ _BUCKET_THREAD_COUNT = 20 _HTTP_LAST_MODIFIED_FORMAT = '%a, %d %b %Y %H:%M:%S %Z' _TIMEOUT_SECONDS = 60 +_STORE_QUALITY_FINDINGS = False _client_store = threading.local() @@ -265,6 +266,12 @@ def _record_quality_finding( findings for the record (if any already exist) """ + # TODO: Do not write import findings at import time, as it could cause + # confusing results. + # We run osv-linter daily on all records and populate + # the linting bucket. + if not _STORE_QUALITY_FINDINGS: + return # Get any current findings for this record. findingtimenow = utcnow() if existing_finding := osv.ImportFinding.get_by_id(bug_id):