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

Open
cflmy wants to merge 1 commits from ci/issue10-dispatch-report-only into main
pull from: ci/issue10-dispatch-report-only
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
Some checks are pending
ci/woodpecker/pr/eco Pipeline is pending
Required
Details
Some required checks are missing.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin ci/issue10-dispatch-report-only:ci/issue10-dispatch-report-only
git checkout ci/issue10-dispatch-report-only
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