Description
When I got the coverage data of commit 96a326b67f30688ee3362e5c755d85d5f6e80ad0 in repo goc at 2020-12-22T07:25:38, I got the details as follows:
( The request is: curl https://codecov.io/api/gh/qiniu/goc/commit/96a326b67f30688ee3362e5c755d85d5f6e80ad0 )
{
“owner”: {
“username”: “qiniu”,
“remaining_credits”: 5,
“name”: “qiniu”,
“service”: “github”,
“students”: {
“count”: 0,
“activated_count”: 0
},
“updatestamp”: “2020-12-28T02:18:08.881041”,
“avatar_url”: null,
“service_id”: “1563636”
},
“repo”: {
“using_integration”: true,
“name”: “goc”,
“language”: “go”,
“deleted”: false,
“bot_username”: null,
“activated”: false,
“private”: false,
“updatestamp”: “2020-12-28T02:18:22.723246+00:00”,
“branch”: “master”,
“active”: true,
“service_id”: “261943284”,
“image_token”: “7AHPDDLXQ3”
},
“meta”: {
“status”: 200
},
“commit”: {
“commitid”: “96a326b67f30688ee3362e5c755d85d5f6e80ad0”,
“parent”: “51601902e2bdb29bee83006a73b48d8aa7334a8d”,
“author”: {
“username”: “CarlJi”,
“service_id”: “10810759”,
“name”: “Changjun Ji”,
“service”: “github”,
“email”: “jinsdu@outlook.com”
},
“deleted”: null,
“timestamp”: “2020-12-22T07:22:35”,
“parent_totals”: {
“C”: 0,
“b”: 0,
“d”: 0,
“f”: 34,
“h”: 1174,
“M”: 0,
“c”: “68.05797”,
“N”: 0,
“p”: 106,
“m”: 445,
“diff”: [
5,
37,
35,
1,
1,
“94.59459”,
0,
0,
0,
0,
0,
0,
0
],
“s”: 6,
“n”: 1725
},
“ci_passed”: true,
“totals”: {
“C”: 0,
“b”: 0,
“d”: 0,
“f”: 34,
“h”: 1172,
“M”: 0,
“c”: “67.94203”,
“N”: 0,
“p”: 106,
“m”: 447,
“diff”: [
5,
37,
33,
3,
1,
“89.18919”,
0,
0,
0,
0,
0,
0,
0
],
“s”: 3,
“n”: 1725
},
“pullid”: null,
“notified”: true,
“state”: “complete”,
“updatestamp”: “2020-12-22T07:23:55.196278”,
“branch”: “master”,
“report”: “”,
“message”: “Merge pull request #148 from qiniu/revert-143-buildCopy\n\nRevert "optimize the file copy strategy ofgoc build
"”,
“merged”: true
}
}
While when I created the same request at 2020-12-28T10:30:00, the response was different with what I got earlier. Details were as follows:
(Simply show some fields by adding “// different” after line)
{
“owner”: {
“username”: “qiniu”,
“remaining_credits”: 5,
“name”: “qiniu”,
“service”: “github”,
“students”: {
“count”: 0,
“activated_count”: 0
},
“updatestamp”: “2020-12-28T02:18:08.881041”,
“avatar_url”: null,
“service_id”: “1563636”
},
“repo”: {
“using_integration”: true,
“name”: “goc”,
“language”: “go”,
“deleted”: false,
“bot_username”: null,
“activated”: false,
“private”: false,
“updatestamp”: “2020-12-28T02:18:22.723246+00:00”,
“branch”: “master”,
“active”: true,
“service_id”: “261943284”,
“image_token”: “7AHPDDLXQ3”
},
“meta”: {
“status”: 200
},
“commit”: {
“commitid”: “96a326b67f30688ee3362e5c755d85d5f6e80ad0”,
“parent”: “51601902e2bdb29bee83006a73b48d8aa7334a8d”,
“author”: {
“username”: “CarlJi”,
“service_id”: “10810759”,
“name”: “Changjun Ji”,
“service”: “github”,
“email”: “jinsdu@outlook.com”
},
“deleted”: null,
“timestamp”: “2020-12-22T07:22:35”,
“parent_totals”: {
“C”: 0,
“b”: 0,
“d”: 0,
“f”: 37,
“h”: 1535, // different
“M”: 0,
“c”: “75.28200”, // different
“N”: 0,
“p”: 144,
“m”: 360,
“diff”: [
5,
37,
35,
1,
1,
“94.59459”,
0,
0,
0,
0,
0,
0,
0
],
“s”: 16,
“n”: 2039 // different
},
“ci_passed”: true,
“totals”: {
“C”: 0,
“b”: 0,
“d”: 0,
“f”: 37,
“h”: 1535, // different
“M”: 0,
“c”: “75.28200”, // different
“N”: 0,
“p”: 144,
“m”: 360,
“diff”: [
5,
37,
35, // different
1, // different
1,
“94.59459”, // different
0,
0,
0,
0,
0,
0,
0
],
“s”: 19,
“n”: 2039 // different
},
“pullid”: null,
“notified”: true,
“state”: “complete”,
“updatestamp”: “2020-12-22T07:23:55.196278”,
“branch”: “master”,
“report”: “”,
“message”: “Merge pull request #148 from qiniu/revert-143-buildCopy\n\nRevert "optimize the file copy strategy ofgoc build
"”,
“merged”: true
}
}
Commit SHAs
96a326b67f30688ee3362e5c755d85d5f6e80ad0
Repository
It seems like some race condition happened at the earlier request? So what I got is not the final data ?
I want to figure out why the responses of the same request at different time are different ?
If I want to get the exact final coverage data of some commit as soon as possible, what’s your suggest ?