|
1 | 1 | from shrub.v3.evg_build_variant import BuildVariant
|
2 | 2 | from shrub.v3.evg_command import EvgCommandType, FunctionCall, expansions_update
|
3 |
| -from shrub.v3.evg_task import EvgTaskRef, EvgTaskDependency |
| 3 | +from shrub.v3.evg_task import EvgTask, EvgTaskRef, EvgTaskDependency |
4 | 4 |
|
5 | 5 | from config_generator.components.funcs.bootstrap_mongo_orchestration import BootstrapMongoOrchestration
|
6 | 6 | from config_generator.components.funcs.fetch_build import FetchBuild
|
|
10 | 10 | from config_generator.components.funcs.run_tests import RunTests
|
11 | 11 | from config_generator.components.funcs.upload_build import UploadBuild
|
12 | 12 | from config_generator.etc.distros import make_distro_str, find_small_distro, find_large_distro
|
13 |
| -from config_generator.etc.utils import Task, bash_exec |
| 13 | +from config_generator.etc.utils import bash_exec |
14 | 14 |
|
15 | 15 | # Use `rhel8.7` distro. `rhel8.7` distro includes necessary dependency: `haproxy`.
|
16 | 16 | _DISTRO_NAME = "rhel87"
|
@@ -40,7 +40,7 @@ def make_test_task(auth: bool, ssl: bool, server_version: str):
|
40 | 40 | auth_str = "auth" if auth else "noauth"
|
41 | 41 | ssl_str = "openssl" if ssl else "nossl"
|
42 | 42 | distro_str = make_distro_str(_DISTRO_NAME, _COMPILER, None)
|
43 |
| - return Task( |
| 43 | + return EvgTask( |
44 | 44 | name=f"loadbalanced-{distro_str}-test-{server_version}-{auth_str}-{ssl_str}",
|
45 | 45 | depends_on=[EvgTaskDependency(
|
46 | 46 | name=f"loadbalanced-{distro_str}-compile")],
|
@@ -72,7 +72,7 @@ def make_test_task(auth: bool, ssl: bool, server_version: str):
|
72 | 72 |
|
73 | 73 | def tasks():
|
74 | 74 | distro_str = make_distro_str(_DISTRO_NAME, _COMPILER, None)
|
75 |
| - yield Task( |
| 75 | + yield EvgTask( |
76 | 76 | name=f"loadbalanced-{distro_str}-compile",
|
77 | 77 | run_on=find_large_distro(_DISTRO_NAME).name,
|
78 | 78 | tags=['loadbalanced', _DISTRO_NAME, _COMPILER],
|
|
0 commit comments