@@ -627,7 +627,7 @@ def run(
627
627
return migration_run_data ["migrate_return_value" ], ljpr
628
628
629
629
630
- def _compute_time_per_migrator (mctx , migrators ):
630
+ def _compute_time_per_migrator (migrators ):
631
631
# we weight each migrator by the number of available nodes to migrate
632
632
num_nodes = []
633
633
for migrator in tqdm .tqdm (migrators , ncols = 80 , desc = "computing time per migrator" ):
@@ -886,9 +886,7 @@ def _is_migrator_done(_mg_start, good_prs, time_per, pr_limit):
886
886
return False
887
887
888
888
889
- def _run_migrator (
890
- migrator , mctx , temp , time_per , dry_run , git_backend : GitPlatformBackend
891
- ):
889
+ def _run_migrator (migrator , mctx , temp , time_per , git_backend : GitPlatformBackend ):
892
890
_mg_start = time .time ()
893
891
894
892
migrator_name = get_migrator_name (migrator )
@@ -1030,8 +1028,7 @@ def _run_migrator(
1030
1028
os .chdir (BOT_HOME_DIR )
1031
1029
1032
1030
# Write graph partially through
1033
- if not dry_run :
1034
- dump_graph (mctx .graph )
1031
+ dump_graph (mctx .graph )
1035
1032
1036
1033
with filter_reprinted_lines ("rm-tmp" ):
1037
1034
for f in glob .glob ("/tmp/*" ):
@@ -1231,7 +1228,6 @@ def main(ctx: CliContext) -> None:
1231
1228
graph = gx ,
1232
1229
smithy_version = smithy_version ,
1233
1230
pinning_version = pinning_version ,
1234
- dry_run = ctx .dry_run ,
1235
1231
)
1236
1232
migrators = load_migrators ()
1237
1233
@@ -1243,7 +1239,6 @@ def main(ctx: CliContext) -> None:
1243
1239
time_per_migrator ,
1244
1240
tot_time_per_migrator ,
1245
1241
) = _compute_time_per_migrator (
1246
- mctx ,
1247
1242
migrators ,
1248
1243
)
1249
1244
for i , migrator in enumerate (migrators ):
@@ -1267,7 +1262,7 @@ def main(ctx: CliContext) -> None:
1267
1262
1268
1263
for mg_ind , migrator in enumerate (migrators ):
1269
1264
good_prs = _run_migrator (
1270
- migrator , mctx , temp , time_per_migrator [mg_ind ], ctx . dry_run , git_backend
1265
+ migrator , mctx , temp , time_per_migrator [mg_ind ], git_backend
1271
1266
)
1272
1267
if good_prs > 0 :
1273
1268
pass
0 commit comments