Comments (3)
有几个问题:
- 使用的执行节点是官方默认的节点吗?还是自己接入的节点?
- 如果使用官方的节点,对应的 GRADLE_HOME=/opt/gradle-6.5 位置有在官方节点机器中安装吗?
建议接入自己的节点,这样方便管理机器环境
from codeanalysis.
你好,感谢回复。
- 是官方默认的节点.
- 对应的 GRADLE_HOME=/opt/gradle-6.5 位置安装在官方节点机器。
此外,我自己又部署了一台Windows节点的机器,将gradle加入系统path中,而且在分析方案中也配置环境变量,这个节点是能够编译成功的。
不过在使用javawarning时提示下面的错误信息。
错误日志见下:
2024-01-02 17:19:41,402-INFO: start to run task: JavaWarning, execute_processes: ['compile', 'analyze', 'datahandle']
2024-01-02 17:19:41,529-INFO: Load tool config: https://git.code.tencent.com/TCA/tca-tools/puppy-tools-config.git
2024-01-02 17:19:47,856-INFO: Initing common tools ...
2024-01-02 17:19:47,856-INFO: Initing 3 tools, please wait a minute ...
[Tools init]: 0%| | 0/3 [00:00<?, ?it/s]
[Tools init]: 33%|█████████████████ | 1/3 [00:06<00:12, 6.22s/it]
[Tools init]: 67%|██████████████████████████████████ | 2/3 [00:06<00:03, 3.92s/it]
[Tools init]: 100%|███████████████████████████████████████████████████| 3/3 [00:06<00:00, 2.07s/it]
2024-01-02 17:19:54,089-INFO: Initialize tools done.(use time: 6.23s)
2024-01-02 17:19:54,089-INFO: run cmd: git lfs install
2024-01-02 17:19:54,771-INFO: Git LFS initialized.
2024-01-02 17:19:54,887-INFO: Initing other tools ...
2024-01-02 17:19:54,896-INFO: task start : <class 'task.model.compile.CompileTask'>
2024-01-02 17:19:54,896-INFO: pre_compile start.
2024-01-02 17:19:54,896-INFO: start __checkout_source_dir.
2024-01-02 17:19:54,896-INFO: 常规项目,直接拉取或复用本地缓存资源.
2024-01-02 17:20:00,583-INFO: load_source_dir done. source_dir insert env. sourcedir: C:\Users\usr\Desktop\TCA\CodeAnalysis\client\data\sourcedirs\git_j33qqk5c
2024-01-02 17:20:00,584-INFO: pre_compile done.
2024-01-02 17:20:00,585-INFO: PATH =
C:\Users\usr\Desktop\TCA\CodeAnalysis\tools\win-git-lfs-v3.1.2
C:\Users\usr\Desktop\TCA\CodeAnalysis\tools\win-git-lfs-v3.1.2
……
省略
……
2024-01-02 17:22:57,326-INFO:
2024-01-02 17:22:57,326-INFO: BUILD SUCCESSFUL in 2m 56s
2024-01-02 17:22:57,326-INFO: 101 actionable tasks: 15 executed, 86 up-to-date
2024-01-02 17:22:57,799-INFO: exist_error_flag : False
2024-01-02 17:22:57,799-INFO: exist_success_flag : True
2024-01-02 17:22:57,799-INFO: exist_100_flag : False
2024-01-02 17:22:57,799-INFO: cov_no_file_emitted : False
2024-01-02 17:22:57,799-INFO: 编译成功!
2024-01-02 17:22:57,799-INFO: basic compile done.
2024-01-02 17:22:57,799-INFO: done_compile start.
2024-01-02 17:22:57,799-INFO: task done : <class 'task.model.compile.CompileTask'>
2024-01-02 17:22:57,811-INFO: task start : <class 'task.model.analyze.AnalyzeTask'>
2024-01-02 17:22:57,811-INFO: pre_analyze start.
2024-01-02 17:22:57,811-INFO: pre_analyze done.
2024-01-02 17:22:57,884-WARNING: task status code is 201
2024-01-02 17:22:57,884-WARNING: task messsage: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 1726: invalid continuation byte
2024-01-02 17:22:57,887-WARNING: task result:
Traceback (most recent call last):
File "task\puppytask.py", line 63, in run
File "task\runtask.py", line 129, in task.runtask.tskr.tskr.run_task
File "task\taskmgr.py", line 73, in taskrunner
File "task\model\analyze.py", line 49, in runner
File "tool\javawarning.py", line 68, in analyze
File "d:\app\python37\lib\codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 1726: invalid continuation byte
2024-01-02 17:22:57,888-INFO: task result: \路径……\CodeAnalysis\client\data\taskdirs\task_320\task_response.json
我有些疑惑Ubuntu的节点为何不能编译成功,以及在Windows节点下的问题该如何解决?是我配置的问题还是工程本身的问题?
from codeanalysis.
-
Ubuntu的节点为何不能编译成功?
这个目前由于缺乏足够信息无法判断,可以自行尝试登录节点调试下,看任务执行时候gradle是否存在。 -
Windows节点下的问题该如何解决?
这里应该是编码问题,可以尝试 基于 htmlcs中读取文件的代码 调试 javawarning读取文件位置代码 试试。欢迎PR
from codeanalysis.
Related Issues (20)
- 【需求】与LDAP集成
- 【需求】项目普通成员可配置是否允许标记处理 或是 提供类似read_only的角色 HOT 1
- Gitlab Oauth 500 HOT 1
- 团队管理禁用团队失败 HOT 1
- 【bug】路径过滤与tscan_cpp扫描的问题
- helm-charts安装遇到一些问题及使用上的建议 HOT 1
- 日志显示异常 HOT 2
- Unable to obtain the worker node HOT 1
- 安卓代码在git仓库src时下执行androidlint失败 HOT 2
- tscan_lua工具扫描出问题后,会导致所有问题被关闭 HOT 1
- Bug 在分析方案列表中,点击一个分析方案时,如果它的方案描述里有内容,接着点其他分析方案时,其方案描述也会有和前面一样的内容,实际上后面的分析方案并没有设置方案描述,刷新页面就会正常
- localscan时可以取消代码统计任务吗?该任务结果似乎对MR扫描没有什么用,有点浪费时间 HOT 5
- 扫描失败,提示SCM鉴权失败 账号密码错误 HOT 3
- 关于扫描速度缓慢问题 HOT 5
- 同一个问题在不同的扫描id下会出现上一个扫描已经标注处理过,下次扫描又出现相同的问题 HOT 2
- 代码库及账号不匹配 HOT 5
- v1.9.0分析android 语言Kotlin 执行结果失败 HOT 1
- 乌班图部署client报错 HOT 1
- 如何把tools里面的东西部署在本地,在没有外网的时候也能使用client进行扫描
- 容器里可以pull代码仓,通过前端分析的时候,拉取代码失败
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeanalysis.