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

基于客户端分析模式,怎么获取git代码的详情,代码库12G #968

Closed
zzzfwww opened this issue Dec 8, 2023 · 4 comments
Closed

Comments

@zzzfwww
Copy link
Contributor

zzzfwww commented Dec 8, 2023

想要问下,https://tencent.github.io/CodeAnalysis/zh/guide/%E5%AE%A2%E6%88%B7%E7%AB%AF/%E6%9C%AC%E5%9C%B0%E5%88%86%E6%9E%90.html

基于这个客户端本地分析,分析完成之后的结果上报到服务端,然后页面展示这里/teams/server/repos/11/projects/23/codefile codefile接口一直报超时的问题,这个我进入services的容器内部,发现确实一直在git拉取代码,由于我这个库有10G,导致一直再拉,等很久看这个里面拉取到10G 再次点击,还是发现又重新清空了又重新拉取,这个问题怎么解决

可不可以有一个机制,tca容器里面支持从外部挂载代码目录进去,这个代码的准确与否交还给使用者,你看下这个可以嘛?如果可以你们那边有没有计划进行优化

另外像我这种情况你们那边有没有什么建议可以解决这个问题

@Lingghh
Copy link
Collaborator

Lingghh commented Dec 8, 2023

如果内部有用私有化gitlab,可以试试配置OAuth授权,这样服务端展示代码时可以通过接口到平台获取,不用整个代码库拉取下来
参考文档:链接

@zzzfwww
Copy link
Contributor Author

zzzfwww commented Dec 8, 2023

image
已经配置之后,image

这里的私有化gitlab地址哪里配置

@zzzfwww
Copy link
Contributor Author

zzzfwww commented Dec 9, 2023

image 看到了这个地方,我周一试试看

@zzzfwww
Copy link
Contributor Author

zzzfwww commented Dec 11, 2023

OAuth调通了,确实可以这样处理,但是还是希望文档上多写一些指引,要不然自己摸索起来费时费力

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

2 participants