haproxy/dev/patchbot/scripts
Willy Tarreau 09814345d5 DEV: patchbot: tolerate polluted save responses and show server warnings
Some server setups leak the CGI's stderr into the response body (e.g.
inetd-style servers where fd 2 is the client socket): since stderr is
unbuffered and stdout is buffered, a git error message then lands
*before* the "OK <n>" line, and the applied-count check failed with a
cryptic "server applied only ? of N changes" although everything had
been applied. Scan the whole response for the lines of interest (the
"OK <n>" count, the "conflict" and "warning" lines) instead of assuming
they come first, dump the raw response to the console when no count is
found at all to ease diagnosis, and display the server's warning lines
(such as the new "git commit failed" one) next to the save status so
that a recording problem is visible from the page instead of being
buried in a server log.
2026-07-07 14:45:32 +02:00
..
post-ai.sh DEV: patchbot: tolerate polluted save responses and show server warnings 2026-07-07 14:45:32 +02:00
process-patch-v15.sh DEV: patchbot: produce a verdict for too long commit messages 2024-01-09 14:46:04 +01:00
submit-ai.sh DEV: patchbot: add the AI-based bot to pre-select candidate patches to backport 2023-12-18 20:50:51 +01:00
update-3.0.sh DEV: patchbot: pass the branch version to the generated page 2026-07-07 10:58:38 +02:00