Giter VIP home page Giter VIP logo

Comments (3)

cyw3 avatar cyw3 commented on May 16, 2024

有几个问题:

  1. 使用的执行节点是官方默认的节点吗?还是自己接入的节点?
  2. 如果使用官方的节点,对应的 GRADLE_HOME=/opt/gradle-6.5 位置有在官方节点机器中安装吗?
    建议接入自己的节点,这样方便管理机器环境

from codeanalysis.

nlhm avatar nlhm commented on May 16, 2024

你好,感谢回复。

  1. 是官方默认的节点.
  2. 对应的 GRADLE_HOME=/opt/gradle-6.5 位置安装在官方节点机器。

此外,我自己又部署了一台Windows节点的机器,将gradle加入系统path中,而且在分析方案中也配置环境变量,这个节点是能够编译成功的。
不过在使用javawarning时提示下面的错误信息。
image

错误日志见下:

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.

cyw3 avatar cyw3 commented on May 16, 2024
  1. Ubuntu的节点为何不能编译成功?
    这个目前由于缺乏足够信息无法判断,可以自行尝试登录节点调试下,看任务执行时候gradle是否存在。

  2. Windows节点下的问题该如何解决?
    这里应该是编码问题,可以尝试 基于 htmlcs中读取文件的代码 调试 javawarning读取文件位置代码 试试。欢迎PR

from codeanalysis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.