Skip to content

Commit 864253a

Browse files
authored
prod: report order of migrations (#4647)
* prod: report order of migrations * try it anyways
1 parent 9aa74f9 commit 864253a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

conda_forge_tick/auto_tick.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,19 @@ def _run_migrator(migrator, mctx, temp, time_per, git_backend: GitPlatformBacken
10321032
),
10331033
flush=True,
10341034
)
1035+
else:
1036+
print("order of possible migrations:", flush=True)
1037+
for node_name in possible_nodes:
1038+
with effective_graph.nodes[node_name]["payload"] as attrs:
1039+
with attrs["pr_info"] as pri:
1040+
attempts = pri.get("pre_pr_migrator_attempts", {}).get(
1041+
migrator_name, 0
1042+
)
1043+
print(
1044+
" node|num_descendents|attempts: %s|%d|%d"
1045+
% (node_name, len(nx.descendants(mctx.graph, node_name)), attempts),
1046+
flush=True,
1047+
)
10351048

10361049
print(
10371050
"found %d nodes for migration %s%s"

0 commit comments

Comments
 (0)