Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 854e334

Browse files
committed
feat: add ability to read new file format
i'm introducing 2 things here: - the ability to read the output of the new ta cache rollups code in the new location in GCS - the ability to read multiple versions of the new rollup file - its probable that the "no version" file never exists in prod GCS but i'd like to establish this pattern in the code nonetheless i also add metrics
1 parent e493767 commit 854e334

File tree

6 files changed

+389
-49
lines changed

6 files changed

+389
-49
lines changed

docker-compose.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- RUN_ENV=DEV
1717
# Improves pytest-cov performance in python 3.12
1818
# https://github.com/nedbat/coveragepy/issues/1665#issuecomment-1937075835
19-
- COVERAGE_CORE=sysmon
19+
- COVERAGE_CORE=sysmon
2020
env_file:
2121
- .testenv
2222

@@ -42,3 +42,16 @@ services:
4242
redis:
4343
image: redis:6-alpine
4444

45+
minio:
46+
image: minio/minio:latest
47+
command: server /export
48+
ports:
49+
- "${MINIO_PORT:-9000}:9000"
50+
environment:
51+
- MINIO_ACCESS_KEY=codecov-default-key
52+
- MINIO_SECRET_KEY=codecov-default-secret
53+
volumes:
54+
- type: tmpfs
55+
target: /export
56+
tmpfs:
57+
size: 256M
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
[
2+
{
3+
"cursor": "MC44fHRlc3Q0",
4+
"node": {
5+
"name": "test4",
6+
"failureRate": 0.8,
7+
"flakeRate": 0.0,
8+
"avgDuration": 100.0,
9+
"totalFailCount": 20,
10+
"totalFlakyFailCount": 0,
11+
"totalPassCount": 5,
12+
"totalSkipCount": 5,
13+
"commitsFailed": 5,
14+
"lastDuration": 100.0
15+
}
16+
},
17+
{
18+
"cursor": "MC43NXx0ZXN0Mw==",
19+
"node": {
20+
"name": "test3",
21+
"failureRate": 0.75,
22+
"flakeRate": 0.0,
23+
"avgDuration": 100.0,
24+
"totalFailCount": 15,
25+
"totalFlakyFailCount": 0,
26+
"totalPassCount": 5,
27+
"totalSkipCount": 5,
28+
"commitsFailed": 5,
29+
"lastDuration": 100.0
30+
}
31+
},
32+
{
33+
"cursor": "MC42NjY2NjY2NjY2NjY2NjY2fHRlc3Qy",
34+
"node": {
35+
"name": "test2",
36+
"failureRate": 0.6666666666666666,
37+
"flakeRate": 0.0,
38+
"avgDuration": 100.0,
39+
"totalFailCount": 10,
40+
"totalFlakyFailCount": 0,
41+
"totalPassCount": 5,
42+
"totalSkipCount": 5,
43+
"commitsFailed": 5,
44+
"lastDuration": 100.0
45+
}
46+
},
47+
{
48+
"cursor": "MC41fHRlc3Qx",
49+
"node": {
50+
"name": "test1",
51+
"failureRate": 0.5,
52+
"flakeRate": 0.5,
53+
"avgDuration": 100.0,
54+
"totalFailCount": 5,
55+
"totalFlakyFailCount": 5,
56+
"totalPassCount": 5,
57+
"totalSkipCount": 5,
58+
"commitsFailed": 5,
59+
"lastDuration": 100.0
60+
}
61+
},
62+
{
63+
"cursor": "MC4wfHRlc3Qw",
64+
"node": {
65+
"name": "test0",
66+
"failureRate": 0.0,
67+
"flakeRate": 0.0,
68+
"avgDuration": 100.0,
69+
"totalFailCount": 0,
70+
"totalFlakyFailCount": 0,
71+
"totalPassCount": 5,
72+
"totalSkipCount": 5,
73+
"commitsFailed": 5,
74+
"lastDuration": 100.0
75+
}
76+
}
77+
]

0 commit comments

Comments
 (0)