0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 00:17:37 +01:00

Revert "SERVER-97469 Do not automatically schedule archive_dist_test_… (#29511)

GitOrigin-RevId: a8b50be5cc10fc1ff785f1d0dca80e408a819bf0
This commit is contained in:
SimonEismann 2024-11-22 22:28:10 +01:00 committed by MongoDB Bot
parent cc3e38b5c8
commit 64a30c4225
3 changed files with 1 additions and 10 deletions

View File

@ -2883,5 +2883,3 @@ functions:
- "src/evergreen/run_python_script.sh"
- "evergreen/activate_task.py"
- "${task_to_activate}"
- "--skip-for-patch-author"
- "${skip_for_patch_author}"

View File

@ -146,7 +146,6 @@ tasks:
- func: "activate task"
vars:
task_to_activate: ${archive_dist_test_debug_task_name|archive_dist_test_debug}
skip_for_patch_author: sys-perf-user
- func: "scons compile"
vars:
targets: >-

View File

@ -1,22 +1,16 @@
"""Script that activates the input task on the same variant as the running task"""
from typing import Optional
import typer
from buildscripts.resmokelib.utils import evergreen_conn
from buildscripts.util.read_config import read_config_file
def main(task_name: str, skip_for_patch_author: Optional[str] = None):
def main(task_name: str):
expansions_file = "../expansions.yml"
expansions = read_config_file(expansions_file)
evg_api = evergreen_conn.get_evergreen_api()
# Skip activation if the patch author is the excluded user
if expansions.get("author") == skip_for_patch_author:
return
variant_id = expansions.get("build_id")
variant = evg_api.build_by_id(variant_id)
found_task = None