Skip to content

Commit 3982edd

Browse files
authored
test: disable update test due to out of memory (#5217)
Our update test is causing out of memory issues on github actions. This disables the parts of it that actually do updates but leaves the test for the non-updating flag. Signed-off-by: Terri Oda <terri@toybox.ca>
1 parent 350a712 commit 3982edd

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

test/test_cli.py

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -249,31 +249,33 @@ def test_update(self, caplog):
249249
) in caplog.record_tuples
250250
caplog.clear()
251251

252-
with caplog.at_level(logging.DEBUG):
253-
main(
254-
["cve-bin-tool", "-l", "debug", "-u", "daily", "-n", "json", test_path]
255-
)
256-
assert (
257-
"cve_bin_tool.CVEDB",
258-
logging.INFO,
259-
"Using cached CVE data (<24h old). Use -u now to update immediately.",
260-
) in caplog.record_tuples or (
261-
"cve_bin_tool.CVEDB",
262-
logging.DEBUG,
263-
"Updating CVE data. This will take a few minutes.",
264-
) in caplog.record_tuples
265-
caplog.clear()
266-
267-
with caplog.at_level(logging.DEBUG):
268-
main(
269-
["cve-bin-tool", "-l", "debug", "-u", "latest", "-n", "json", test_path]
270-
)
271-
assert (
272-
"cve_bin_tool.CVEDB",
273-
logging.DEBUG,
274-
"Updating CVE data. This will take a few minutes.",
275-
) in caplog.record_tuples
276-
caplog.clear()
252+
# FIXME: disabled because doing an update has been causing Out of Memory updates in CI
253+
254+
# with caplog.at_level(logging.DEBUG):
255+
# main(
256+
# ["cve-bin-tool", "-l", "debug", "-u", "daily", "-n", "json", test_path]
257+
# )
258+
# assert (
259+
# "cve_bin_tool.CVEDB",
260+
# logging.INFO,
261+
# "Using cached CVE data (<24h old). Use -u now to update immediately.",
262+
# ) in caplog.record_tuples or (
263+
# "cve_bin_tool.CVEDB",
264+
# logging.DEBUG,
265+
# "Updating CVE data. This will take a few minutes.",
266+
# ) in caplog.record_tuples
267+
# caplog.clear()
268+
#
269+
# with caplog.at_level(logging.DEBUG):
270+
# main(
271+
# ["cve-bin-tool", "-l", "debug", "-u", "latest", "-n", "json", test_path]
272+
# )
273+
# assert (
274+
# "cve_bin_tool.CVEDB",
275+
# logging.DEBUG,
276+
# "Updating CVE data. This will take a few minutes.",
277+
# ) in caplog.record_tuples
278+
# caplog.clear()
277279

278280
def test_unknown_warning(self, caplog):
279281
"""Test that an "UNKNOWN" file generates a log (only in debug mode)"""

0 commit comments

Comments
 (0)