diff options
author | Richard Samuels <richard.l.samuels@gmail.com> | 2022-04-08 13:50:25 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-08 14:27:40 +0000 |
commit | 0d9705653d904bed75b06f77eba2a5e9af2b3a7d (patch) | |
tree | 4657e027db6c13012bb71f7ceb9c689efd677682 /buildscripts/evergreen_task_timeout.py | |
parent | d96b46e0430d0fe4ce82264e2924df9ed505a5c6 (diff) | |
download | mongo-0d9705653d904bed75b06f77eba2a5e9af2b3a7d.tar.gz |
SERVER-62992 Remove need for resmoke.ini
Diffstat (limited to 'buildscripts/evergreen_task_timeout.py')
-rwxr-xr-x | buildscripts/evergreen_task_timeout.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/buildscripts/evergreen_task_timeout.py b/buildscripts/evergreen_task_timeout.py index f2177b35a16..bd5d48275d9 100755 --- a/buildscripts/evergreen_task_timeout.py +++ b/buildscripts/evergreen_task_timeout.py @@ -8,6 +8,7 @@ import sys from datetime import datetime, timedelta from pathlib import Path from typing import Dict, List, Optional +import shlex import inject import structlog @@ -15,6 +16,7 @@ import yaml from pydantic import BaseModel from evergreen import EvergreenApi, RetryingEvergreenApi +from buildscripts.task_generation.resmoke_proxy import ResmokeProxyService from buildscripts.ciconfig.evergreen import (EvergreenProjectConfig, parse_evergreen_file) from buildscripts.timeouts.timeout_service import (TimeoutParams, TimeoutService, TimeoutSettings) from buildscripts.util.cmdutils import enable_logging @@ -319,6 +321,8 @@ def main(): """Determine the timeout value a task should use in evergreen.""" parser = argparse.ArgumentParser(description=main.__doc__) + parser.add_argument("--install-dir", dest="install_dir", required=True, + help="Path to bin directory of testable installation") parser.add_argument("--task-name", dest="task", required=True, help="Task being executed.") parser.add_argument("--suite-name", dest="suite_name", required=True, help="Resmoke suite being run against.") @@ -363,6 +367,9 @@ def main(): binder.bind(TimeoutOverrides, timeout_overrides) binder.bind(EvergreenProjectConfig, parse_evergreen_file(os.path.expanduser(options.evg_project_config))) + binder.bind( + ResmokeProxyService, + ResmokeProxyService(run_options=f"--installDir={shlex.quote(options.install_dir)}")) inject.configure(dependencies) |