Skip to content

Commit d2b8c25

Browse files
author
Bastien Abadie
committed
backend: Download all variants, even when base is indexed in redis db
1 parent 7f63989 commit d2b8c25

File tree

1 file changed

+14
-0
lines changed
  • backend/code_coverage_backend

1 file changed

+14
-0
lines changed

backend/code_coverage_backend/gcp.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,20 @@ def find_closest_report(
229229
if push_id:
230230
# Redis lib uses bytes for all output
231231
push_id = int(push_id.decode("utf-8"))
232+
date = self.redis.hget(key, "date").decode("utf-8")
233+
234+
# Check the report variant is available locally
235+
report = Report(
236+
self.reports_dir,
237+
repository,
238+
changeset,
239+
platform,
240+
suite,
241+
push_id=push_id,
242+
date=date,
243+
)
244+
if not os.path.exists(report.path):
245+
self.ingest_report(report)
232246
else:
233247

234248
# Lookup push from HGMO (slow)

0 commit comments

Comments
 (0)