feat(web): reuse verified batches in unattended flow
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-03 13:10:21 +08:00
parent 814b290c29
commit 646e580b94
14 changed files with 330 additions and 231 deletions

View File

@@ -8,6 +8,7 @@ SCHEDULER_POLL_MS="${WBV2_POLL_MS:-1000}"
SCHEDULER_PUSH_RETRIES="${WBV2_PUSH_RETRIES:-6}"
WATCHDOG_INTERVAL="${WBV2_WATCHDOG_INTERVAL:-10}"
WATCHDOG_RESTART_DELAY="${WBV2_WATCHDOG_RESTART_DELAY:-5}"
AUTO_AUTHORIZE="${WBV2_AUTO_AUTHORIZE:-1}"
# Keep repository evidence on disk while placing compiler/transient caches in
# RAM. Eight compile jobs is the repository's stability limit.
@@ -44,6 +45,10 @@ start_scheduler() {
start_watchdog() {
local pid_file="$CONTROL_DIR/my-tools-watchdog.pid"
local auto_authorize_args=()
if test "$AUTO_AUTHORIZE" != "0"; then
auto_authorize_args+=(--auto-authorize)
fi
if test -f "$pid_file"; then
local watchdog_pid
watchdog_pid="$(tr -d '[:space:]' < "$pid_file")"
@@ -58,6 +63,7 @@ start_watchdog() {
--restart-delay "$WATCHDOG_RESTART_DELAY" \
--max-iterations "$SCHEDULER_MAX_ITERATIONS" \
--push-retries "$SCHEDULER_PUSH_RETRIES" \
"${auto_authorize_args[@]}" \
--commit --push \
> "$CONTROL_DIR/my-tools-watchdog.stdout.log" 2>&1 < /dev/null &
printf 'watchdog launch pid: %s\n' "$!"