Generalise stability-replay to review-replay of any pass, and route each pass on its own rung so a replay may lower one pass alone
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""What judge-replay's and stability-replay's commands share: the argument, the projects on its model, the candidate rungs and the exits."""
|
||||
"""What judge-replay's and review-replay's commands share: the projects on a model and the exits, and judge-replay's argument and candidate rungs."""
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
@@ -28,7 +28,7 @@ def projects_on(model: str, home: pathlib.Path) -> list[str] | Failure:
|
||||
|
||||
|
||||
def down_from(top: Rung) -> list[Rung]:
|
||||
"""top, the project's rung, and each rung below it, highest first, down to the lowest rung a worker routes to: no route uses a rung below it, so a replay there could change no routing."""
|
||||
"""top, the project's rung, and each rung below it, highest first, down to the lowest rung a worker routes to: judge-replay has no route below it to change."""
|
||||
return list(LADDER[position(lowest_worker_rung(top)):position(top) + 1])[::-1]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user