Answer prose round 1: 0 🔴, 3 🟡 (0 misread); the docstrings claim head-pinning only where a call takes head, and the wait comments name the forge each covers

This commit is contained in:
2026-11-17 00:10:10 +01:00
parent 9f4ccbe111
commit 92ffec7949
6 changed files with 9 additions and 14 deletions
+3 -6
View File
@@ -1,7 +1,4 @@
"""Finding a pull request from origin's own branch, and waiting for its checks.
Each call is pinned to head, a commit on that branch: it takes only a pull request from origin itself whose head is that commit. So a fork's pull request from a branch of the same name is never taken.
"""
"""Finding a pull request from origin's own branch, and waiting for the checks on its head commit."""
import fnmatch
import time
import typing
@@ -9,9 +6,9 @@ import typing
from failure import Failure
from forge.commands import Forge, gitea, Run
# How long checks_passed waits between two reads of the head commit's status on Gitea.
# How long checks_passed waits between two reads: of the head commit's status on Gitea, or of gh's watch while it reports no checks.
POLL_SECONDS = 10
# How long checks_passed waits for the checks before it gives up; CI took about 3 minutes in 2026-11.
# How long checks_passed waits on Gitea for the checks before it gives up; CI took about 3 minutes in 2026-11. gh's watch waits as long as the checks run.
WAIT_SECONDS = 30 * 60