Skip to content

Commit a7c5861

Browse files
committed
fix coverage
1 parent bb1fbfd commit a7c5861

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -820,19 +820,7 @@ tasks:
820820
- name: coverage-report
821821
commands:
822822
- func: download and merge coverage
823-
depends_on:
824-
- name: .standalone
825-
variant: .coverage_tag
826-
status: "*"
827-
patch_optional: true
828-
- name: .replica_set
829-
variant: .coverage_tag
830-
status: "*"
831-
patch_optional: true
832-
- name: .sharded_cluster
833-
variant: .coverage_tag
834-
status: "*"
835-
patch_optional: true
823+
depends_on: [{ name: .server_version, variant: .coverage_tag, status: "*", patch_optional: true }]
836824
tags: [coverage]
837825

838826
# Doctest tests

.evergreen/scripts/generate_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -889,11 +889,11 @@ def create_coverage_report_tasks():
889889
# Instead list out all coverage tasks using tags.
890890
# Run the coverage task even if some tasks fail.
891891
# Run the coverage task even if some tasks are not scheduled in a patch build.
892-
task_deps = []
893-
for name in [".standalone", ".replica_set", ".sharded_cluster"]:
894-
task_deps.append(
895-
EvgTaskDependency(name=name, variant=".coverage_tag", status="*", patch_optional=True)
892+
task_deps = [
893+
EvgTaskDependency(
894+
name=".server_version", variant=".coverage_tag", status="*", patch_optional=True
896895
)
896+
]
897897
cmd = FunctionCall(func="download and merge coverage")
898898
return [EvgTask(name=task_name, tags=tags, depends_on=task_deps, commands=[cmd])]
899899

0 commit comments

Comments
 (0)