Skip to content

Commit f00eccb

Browse files
authored
Merge branch 'master' into master
2 parents 7300c04 + 67b4d8b commit f00eccb

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

gcp/workers/importer/importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def _convert_blob_to_vuln(
514514
ndb_ctx = ndb.context.get_context(False)
515515
if ndb_ctx is None:
516516
# Production. Use the NDB client passed in.
517-
ndb_ctx = ndb_client.context()
517+
ndb_ctx = ndb_client.context(cache_policy=False)
518518
else:
519519
# Unit testing. Reuse the unit test's existing NDB client to avoid
520520
# "RuntimeError: Context is already created for this thread."
@@ -1306,5 +1306,5 @@ def main():
13061306
atexit.register(log_run_duration, time.time())
13071307
osv.logs.setup_gcp_logging('importer')
13081308
_ndb_client = ndb.Client()
1309-
with _ndb_client.context():
1309+
with _ndb_client.context(cache_policy=False):
13101310
main()

osv/ecosystems/_ecosystems.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from .pypi import PyPI
2929
from .redhat import RPM
3030
from .rubygems import RubyGems
31-
from .semver_ecosystem_helper import SemverEcosystem
31+
from .semver_ecosystem_helper import SemverEcosystem, SemverLike
3232
from .ubuntu import Ubuntu
3333

3434
_ecosystems = {
@@ -64,6 +64,7 @@
6464
'SUSE': RPM,
6565
'SwiftURL': SemverEcosystem,
6666
'Ubuntu': Ubuntu,
67+
'VSCode': SemverLike,
6768
'Wolfi': APK,
6869

6970
# Ecosystems known in the schema, but without implementations.
@@ -72,6 +73,7 @@
7273
'ConanCenter': None,
7374
'GIT': None,
7475
'GitHub Actions': None,
76+
'Kubernetes': None,
7577
'Linux': None,
7678
'OSS-Fuzz': None,
7779
'Photon OS': None,

tools/apitester/__snapshots__/cassette_single_query.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,32 @@
4242
"ranges": [
4343
{
4444
"type": "GIT",
45-
"repo": "https://github.com/behdad/harfbuzz",
45+
"repo": "https://github.com/harfbuzz/harfbuzz",
4646
"events": [
4747
{
4848
"introduced": "0"
49+
},
50+
{
51+
"fixed": "d3e09bf4654fe5478b6dbf2b26ebab6271317d81"
4952
}
5053
]
5154
}
5255
],
56+
"versions": 138,
5357
"database_specific": "<Any value>"
5458
},
5559
{
5660
"ranges": [
5761
{
5862
"type": "GIT",
59-
"repo": "https://github.com/harfbuzz/harfbuzz",
63+
"repo": "https://github.com/behdad/harfbuzz",
6064
"events": [
6165
{
6266
"introduced": "0"
63-
},
64-
{
65-
"fixed": "d3e09bf4654fe5478b6dbf2b26ebab6271317d81"
6667
}
6768
]
6869
}
6970
],
70-
"versions": 138,
7171
"database_specific": "<Any value>"
7272
}
7373
],

0 commit comments

Comments
 (0)