INFO Some files failed to scan properly:
With these two files part of a larger Boost:
https://raw.githubusercontent.com/boostorg/typeof/develop/include/boost/typeof/vector150.hpp
https://raw.githubusercontent.com/boostorg/typeof/develop/include/boost/typeof/vector200.hpp
... when running a scan_codebase pipeline, we get a timeout at 120s:
INFO Path: codebase/scipy-1.10.0/scipy/_lib/boost/boost/typeof/vector150.hpp
INFO ERROR: for scanner: copyrights:
INFO ERROR: Processing interrupted: timeout after 120 seconds.
INFO Path: codebase/scipy-1.10.0/scipy/_lib/boost/boost/typeof/vector200.hpp
INFO ERROR: for scanner: copyrights:
INFO ERROR: Processing interrupted: timeout after 120 seconds.
INFO Path: codebase/scipy-1.10.0/scipy/misc/ascent.dat
INFO ERROR: for scanner: copyrights:
INFO ERROR: Processing interrupted: timeout after 120 seconds.
But SCANCODEIO_TASK_TIMEOUT defaults to 86400s..
The 120s timeout comes from the ScanCode tootkit default.
We should either expose this as a setting or we should avoid having processing (of copyrights) being so slow on large files that they timeout.
FWIW, here the copyright is at the top and completes super fast:
$ head -n 100 vector150.hpp > foo
$ scancode --yaml y.ml --copyright foo
Setup plugins...
Collect file inventory...
Scan files for: copyrights with 1 process(es)...
[####################] 2
Scanning done.
Summary: copyrights with 1 process(es)
Errors count: 0
Scan Speed: 20.02 files/sec.
Initial counts: 1 resource(s): 1 file(s) and 0 directorie(s)
Final counts: 1 resource(s): 1 file(s) and 0 directorie(s)
Timings:
scan_start: 2023-01-31T194140.236620
scan_end: 2023-01-31T194140.292716
Removing temporary files...done.
See also aboutcode-org/scancode-toolkit#2726 (comment)
INFO Some files failed to scan properly:
With these two files part of a larger Boost:
https://raw.githubusercontent.com/boostorg/typeof/develop/include/boost/typeof/vector150.hpp
https://raw.githubusercontent.com/boostorg/typeof/develop/include/boost/typeof/vector200.hpp
... when running a
scan_codebasepipeline, we get a timeout at 120s:But
SCANCODEIO_TASK_TIMEOUTdefaults to 86400s..The 120s timeout comes from the ScanCode tootkit default.
We should either expose this as a setting or we should avoid having processing (of copyrights) being so slow on large files that they timeout.
FWIW, here the copyright is at the top and completes super fast:
See also aboutcode-org/scancode-toolkit#2726 (comment)