ci: report dispatch permission gaps without failing the scan #46

Merged
cflmy merged 1 commits from ci/issue10-dispatch-report-only into main 2026-11-28 01:11:26 +08:00
Owner

CI-08 follow-up: do not fail the whole reconcile on a dispatch permission gap

The protected reconcile cron now runs with woodpecker_reconcile_token. That secret currently authenticates as an identity other than the dedicated non-admin marqdo-reconcile account, so verify_dispatch_identity reports dispatch_status=unavailable. PR #44's exit condition then failed the entire reconcile even though the release scan and tracking were complete.

  • The scan/report now records dispatch_status=unavailable and dispatch_error and still exits 0 when the scan and tracking writes succeed.
  • It never dispatches under the wrong identity and never reports a trigger as done.
  • The permission blocker remains in #37; this change only separates "infrastructure permission unavailable" from "scan failed".
  • Added a regression test for the complete-scan-without-dispatch case; 16 reconcile tests pass.
  • docs/DEVELOPMENT.md states the report-only behavior and forbids treating it as a dispatched task.

This is a root reconciliation fix only; no component source or release identity changes.

## CI-08 follow-up: do not fail the whole reconcile on a dispatch permission gap The protected reconcile cron now runs with `woodpecker_reconcile_token`. That secret currently authenticates as an identity other than the dedicated non-admin `marqdo-reconcile` account, so `verify_dispatch_identity` reports `dispatch_status=unavailable`. PR #44's exit condition then failed the entire reconcile even though the release scan and tracking were complete. - The scan/report now records `dispatch_status=unavailable` and `dispatch_error` and still exits 0 when the scan and tracking writes succeed. - It never dispatches under the wrong identity and never reports a trigger as done. - The permission blocker remains in #37; this change only separates "infrastructure permission unavailable" from "scan failed". - Added a regression test for the complete-scan-without-dispatch case; 16 reconcile tests pass. - `docs/DEVELOPMENT.md` states the report-only behavior and forbids treating it as a dispatched task. This is a root reconciliation fix only; no component source or release identity changes.
cflmy added 1 commit 2026-11-28 01:00:42 +08:00
cflmy force-pushed ci/issue10-dispatch-report-only from e37135ad34 to 241b480a34 2026-11-28 01:00:42 +08:00 Compare
cflmy merged commit 04e9bd8721 into main 2026-11-28 01:11:26 +08:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cflmy/marqdo#46