Comments (4)
@baijingchuan 看起来是前后两次的代码版本不一致
from goc.
@CarlJi 两次版本的代码在注册中心注册的address不一样,拉取代码覆盖率的时候也是按address拉取的,所以两次版本的代码的覆盖率是分开收集的。理论上应该不是因为代码版本不一致引起的
from goc.
goc profile
针对同一个服务获得的覆盖率结果,会做merge动作。但是如果代码版本不一致,它就没办法merge。这实际是go 覆盖率方案的原生不足。
所以我看行业内的通用做法是,也会把git commit 信息保存,基于commit 来展示覆盖率。而commit 某种程度也代表 "代码版本"。
from goc.
@CarlJi 感谢,找到原因了,因为我们一个代码仓库对应多个实例,实例是单独部署的,两个实例部署的不是同一个版本的代码,导致merge失败
from goc.
Related Issues (20)
- 请教下同一个版本内发布了多次代码,如何统计全量的覆盖率 HOT 5
- 请问: goc是否支持分支覆盖率统计
- 对于打包镜像和部署容器非同一个的情况
- 公司内部服务统一了出口ip,有什么解决办法吗
- goc build --center=<远程goc server>成功后,没有生成xx_profile_listen_addr文件。 HOT 2
- goc build --singleton 时 如何获取coverage file HOT 1
- FATA Fail to build: fail to generate new go.mod: ... invalid go version '1.22.0': must match format 1.23 HOT 2
- goc运行大概8天就会重启一次,重启时的日志如下
- 重命名的文件,会被merge一起 HOT 2
- goc clear清理覆盖率失败了
- goc build main.go报错 HOT 5
- @CarlJi 我们也是一样的问题,goc build -o不允许指定具体的main包进行编译吗,只能cd到main包所在的目录下,然后goc自己去搜索main包,然后编译吗,如果这个目录下有多个main包,就会出现楼主上面的那个报错 HOT 3
- goc 目前支持1.19吗 HOT 1
- 是否支持 Pull Request 增量代码覆盖率? HOT 3
- 希望支持go版本1.20~1.23,Thanks! HOT 4
- 注册失败 dial tcp 127.0.0.1:8888: connect: connection refused, response: HOT 1
- goc profile 返回 no profiles HOT 1
- 收集到行覆盖,分支覆盖都是 0
- gocv2 支持go1.21吗?
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 goc.