|
9 | 9 |
|
10 | 10 | from .clickhouse_client_helper import CHCliFactory |
11 | 11 | from .github_client_helper import GHClientFactory |
12 | | -from .testers.autorevert import autorevert_checker |
13 | 12 | from .testers.autorevert_v2 import autorevert_v2 |
14 | 13 | from .testers.hud import run_hud |
15 | 14 | from .testers.restart_checker import workflow_restart_checker |
@@ -112,11 +111,6 @@ def get_opts() -> argparse.Namespace: |
112 | 111 | action="store_true", |
113 | 112 | help="Ignore common errors in autorevert patterns (e.g., 'No tests found')", |
114 | 113 | ) |
115 | | - workflow_parser.add_argument( |
116 | | - "--legacy-autorevert", |
117 | | - action="store_true", |
118 | | - help="Run the legacy autorevert behavior instead of the new Signals-based flow", |
119 | | - ) |
120 | 114 |
|
121 | 115 | # workflow-restart-checker subcommand |
122 | 116 | workflow_restart_parser = subparsers.add_parser( |
@@ -211,36 +205,14 @@ def main(*args, **kwargs) -> None: |
211 | 205 | do_revert=True, |
212 | 206 | ) |
213 | 207 | elif opts.subcommand == "autorevert-checker": |
214 | | - if getattr(opts, "legacy_autorevert", False): |
215 | | - # Legacy behavior behind flag |
216 | | - autorevert_checker( |
217 | | - opts.workflows, |
218 | | - do_restart=opts.do_restart, |
219 | | - do_revert=opts.do_revert, |
220 | | - hours=opts.hours, |
221 | | - verbose=opts.verbose, |
222 | | - dry_run=opts.dry_run, |
223 | | - ignore_common_errors=opts.ignore_common_errors, |
224 | | - ) |
225 | | - else: |
226 | | - # New default behavior under the same subcommand |
227 | | - autorevert_v2( |
228 | | - opts.workflows, |
229 | | - hours=opts.hours, |
230 | | - repo_full_name=opts.repo_full_name, |
231 | | - dry_run=opts.dry_run, |
232 | | - do_restart=opts.do_restart, |
233 | | - do_revert=opts.do_revert, |
234 | | - ) |
235 | | - elif opts.subcommand == "autorevert-checker": |
236 | | - autorevert_checker( |
| 208 | + # New default behavior under the same subcommand |
| 209 | + autorevert_v2( |
237 | 210 | opts.workflows, |
238 | | - do_restart=opts.do_restart, |
239 | | - do_revert=opts.do_revert, |
240 | 211 | hours=opts.hours, |
241 | | - verbose=opts.verbose, |
| 212 | + repo_full_name=opts.repo_full_name, |
242 | 213 | dry_run=opts.dry_run, |
243 | | - ignore_common_errors=opts.ignore_common_errors, |
| 214 | + do_restart=opts.do_restart, |
| 215 | + do_revert=opts.do_revert, |
244 | 216 | ) |
245 | 217 | elif opts.subcommand == "workflow-restart-checker": |
246 | 218 | workflow_restart_checker(opts.workflow, commit=opts.commit, days=opts.days) |
|
0 commit comments