Merge a project's chunks one at a time, finishing each one's plan items in its turn #554

Merged
lilleman merged 11 commits from item-374 into main 2026-11-15 22:32:07 +01:00
Showing only changes of commit e37518db29 - Show all commits
+2 -2
View File
@@ -9,7 +9,7 @@ from chunk_preflight.gathered import Forge
from deploy_release.forge import Run
BIN = pathlib.Path(__file__).resolve().parents[1]
# A human answers in hours, so merge polls once a minute and gives up after 90 minutes, which leaves room for the checks wait inside the 2 hours a background command may run, so that the give-up message prints.
# A human answers in hours, so merge polls once a minute and gives up after 90 minutes. That leaves half an hour for the queue and the checks inside the 2 hours a background command may run; a run that needs more is killed before the give-up message prints, and its next run goes on from what it pushed.
POLL_SECONDS = 60
WAIT_SECONDS = 90 * 60
@@ -26,7 +26,7 @@ def awaited(forge: Forge, run: Run) -> bool | Failure:
return answer.strip() == "true"
# Each review thread nobody resolved, with who wrote its last comment, beside who opened the pull request. gh fills {owner} and {repo} from the checkout.
# Each review thread, with whether it is resolved and who wrote its last comment, beside who opened the pull request. gh fills {owner} and {repo} from the checkout.
THREADS = """query($owner: String!, $repo: String!, $number: Int!) { repository(owner: $owner, name: $repo) { pullRequest(number: $number) {
author { login }
reviewThreads(first: 100) { nodes { isResolved path comments(last: 1) { nodes { author { login } } } } }