зеркало из https://github.com/mozilla/treeherder.git
Bug 1866550 - Ingest replicates for speedometer3 on mozilla-central. (#7886)
This patch enables replicate ingestion into the performance_datum_replicate table on mozilla-central for only speedometer3 tests.
This commit is contained in:
Родитель
45d0c6749d
Коммит
0060933159
|
@ -119,15 +119,20 @@ def _test_should_alert_based_on(
|
|||
|
||||
|
||||
def _test_should_gather_replicates_based_on(
|
||||
repository: Repository, replicates: Optional[List] = None
|
||||
repository: Repository, suite_name: str, replicates: Optional[List] = None
|
||||
) -> bool:
|
||||
"""
|
||||
Determine if we should gather/ingest replicates. Currently, it's
|
||||
only available on the try branch. Some tests also don't have replicates
|
||||
available as it's not a required field in our performance artifact
|
||||
schema.
|
||||
schema. Replicates are also gathered for speedometer3 tests from
|
||||
mozilla-central.
|
||||
"""
|
||||
return replicates and len(replicates) > 0 and repository.name in ("try",)
|
||||
if replicates and len(replicates) > 0:
|
||||
return repository.name in ("try",) or (
|
||||
repository.name in ("mozilla-central",) and suite_name == "speedometer3"
|
||||
)
|
||||
return False
|
||||
|
||||
|
||||
def _load_perf_datum(job: Job, perf_datum: dict):
|
||||
|
@ -286,7 +291,7 @@ def _load_perf_datum(job: Job, perf_datum: dict):
|
|||
)
|
||||
|
||||
if _test_should_gather_replicates_based_on(
|
||||
job.repository, subtest.get("replicates", [])
|
||||
job.repository, suite["name"], subtest.get("replicates", [])
|
||||
):
|
||||
try:
|
||||
# Add the replicates to the PerformanceDatumReplicate table, and
|
||||
|
|
Загрузка…
Ссылка в новой задаче