Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

license-classifier工具扫描目标文件数为0时,会执行异常,应该返回空结果 #947

Closed
aaaa-j opened this issue Nov 9, 2023 · 1 comment

Comments

@aaaa-j
Copy link
Collaborator

aaaa-j commented Nov 9, 2023

2023-11-09 12:15:21,663-INFO: finish getting scm diff filepaths
2023-11-09 12:15:21,673-INFO: [文件数]过滤前:1,过滤后:0
2023-11-09 12:15:21,712-INFO: -- start run tool ...
2023-11-09 12:15:21,712-INFO: [debug] source_dir: /workspace/src
2023-11-09 12:15:21,712-INFO: [debug] get diff file: /workspace/client/data/taskdirs/task_4757/diff_files.json
2023-11-09 12:15:21,712-INFO: [error] To-be-scanned files is empty
2023-11-09 12:15:21,712-INFO: -- end ...
2023-11-09 12:15:21,774-INFO: use SubProcController run cmd: python main.py
2023-11-09 12:15:21,776-WARNING: task status code is 226
2023-11-09 12:15:21,776-WARNING: task messsage: TaskError: Error[226]: 第三方工具(license-classifier)执行异常,未生成结果文件result.json
2023-11-09 12:15:21,777-WARNING: task result:
Traceback (most recent call last):
File "task/puppytask.py", line 63, in run
response = TaskRunner(self._request_file, self._response_file).run_task()
File "task/runtask.py", line 129, in task.runtask.tskr.tskr.run_task
File "/workspace/client/task/taskmgr.py", line 73, in taskrunner
result = task.runner(params)
File "/workspace/client/task/model/analyze.py", line 49, in runner
return self.tool.analyze(params)
File "tool/customtool.py", line 319, in tool.customtool.c.c.analyze
util.exceptions.TaskError: Error[226]: 第三方工具(license-classifier)执行异常,未生成结果文件result.json

@yql70
Copy link
Collaborator

yql70 commented Nov 9, 2023

已修复,麻烦更新工具重试下

@cyw3 cyw3 closed this as completed Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants