Files
gentoo-zh/scripts
Zakk 186b77d222 scripts/autobump-sweep.py: do not fail collect on a bundle escalation already commented
bundles.py plan exits 1 on every escalated bundle target, every run, until
the target is retried. The sweep turned that exit status into bundle_error,
so collect failed on each run even after the escalation comment was on the
issue (cc-switch: crate-dist.yml refused the dispatch with HTTP 422 because
Actions is disabled; honk: overlay.toml deps needs a tag).

Match each `failed:` line of the controller to a target in state escalate.
When all of them are matched, post the escalation comment again for the
targets that are not new this run, and clear bundle_error only if every
comment landed. Because the controller latches an escalation in the ledger
even when its comment failed, a latched target cannot be assumed to be
commented. The matched targets are listed under "bundle escalations
awaiting a maintainer" in the collect summary and $GITHUB_STEP_SUMMARY.
An unknown state, an owner the controller stopped asking, a controller
that exits non-zero without a `failed:` line, and a comment that cannot be
posted still fail the run.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-13 18:07:01 +11:00
..