]> git.kaiwu.me - haproxy.git/commit
DEV: patchbot: retrieve the shared state on page load, with a timeout
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Jul 2026 16:52:29 +0000 (18:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 31 Jul 2026 17:48:11 +0000 (19:48 +0200)
commitf36994ca1b7404417b6c0a618a6c4ea3f4dbcc07
tree3934eb6834059f1e7ac07e54fa23427da419f871
parent875b4905029d53c4270b000178fd1c5f74ff7fcf
DEV: patchbot: retrieve the shared state on page load, with a timeout

I got trapped a few times reviewing patches without clicking the
"Get Updates" button (not yet being used to it). After checking with
AI, it's not complicate to implement a fetch timeout, so let's do that
directly on page load. It also means that a reload will automatically
retrieve updates. In case of failure (offline, server dead), after 2s
the fetch is abandonned and the page can be used normally. For browsers
that wouldn't implement the timeout, it would just act as if the button
had been clicked, so likely that pressing Esc would stop it. Tested in
firefox 140.
dev/patchbot/README
dev/patchbot/scripts/post-ai.sh