Skip to content

Commit

Permalink
bot: Upload commit coverage mapping every 10 minutes rather than ever…
Browse files Browse the repository at this point in the history
…y hour

So if a task times out at 3:51 we only lose 1 minute of work rather than 51!
  • Loading branch information
marco-c committed Nov 26, 2020
1 parent 0c3772a commit c90a5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/code_coverage_bot/commit_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def analyze_changeset(changeset_to_analyze: str) -> None:
if exc is not None:
logger.error(f"Exception {exc} while analyzing {changeset}")

if time.monotonic() - start_time >= 3600:
if time.monotonic() - start_time >= 600:
_upload()
start_time = time.monotonic()

Expand Down

0 comments on commit c90a5ff

Please sign in to comment.