-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid copying raw upload for parallel verification
Instead of creating a copy of a raw upload for consumption in the parallel verification task, this will only schedule parallel verification in case the uploads are not being deleted after processing. That way, the uploads are guaranteed to still be there for verification, so no copy is needed.
- Loading branch information
Showing
6 changed files
with
26 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
from collections import namedtuple | ||
|
||
from shared.config import get_config | ||
from shared.yaml import UserYaml | ||
|
||
from services.yaml.reader import read_yaml_field | ||
|
||
null = namedtuple("_", ["totals"])(None) | ||
|
||
|
||
def get_totals_from_file_in_reports(report, path): | ||
return report.get(path, null).totals | ||
|
||
|
||
def delete_archive_setting(commit_yaml: UserYaml | dict) -> bool: | ||
if get_config("services", "minio", "expire_raw_after_n_days"): | ||
return True | ||
return not read_yaml_field( | ||
commit_yaml, ("codecov", "archive", "uploads"), _else=True | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters