CI failure alerts never reach Telegram: the alert step exits 2 on a missing secret #45
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/advocate
role/director
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/science
role/sysadmin
state
ambient
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/lunch-money-k8s#45
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every job in
.forgejo/workflows/build-publish.ymlcarries an "Alert Telegram on main failure" step that runsscripts/ci/telegram-alert.py. On run 74 (the ruff-format failure on main, commit56caa9c) that step logged:The script returns 2 when
BOT_TOKENorCHAT_IDis empty.TELEGRAM_BOT_TOKENandTELEGRAM_RED_CHAT_IDare not set as Actions secrets on this repository, so the branch that returns 2 is the only one that has ever run. The step iscontinue-on-error: true, so it never failed a job, and the silence looks identical to a healthy CI.So: main has failed at least once with nobody notified. Observed on run 74; I have not checked whether earlier failing runs (65, 62) hit the same branch.
What is needed is setting the two Actions secrets on
coilyco-flight-deck/lunch-money-k8s. That is a live-surface change on Forgejo rather than a code change here, which is why this is filed rather than fixed. The token values live in SSM;data/ssm-index.mdin agentic-os-kai is the index to search for the Telegram entries.Worth deciding at the same time: whether an alert step that cannot alert should stay
continue-on-error, or fail loudly so a missing secret is visible on the first run rather than on the first outage.Found while fixing the run-74 format failure (
ea739b6).This is fleet-wide rather than specific to this repo. Confirmed the identical
telegram alert missing required secreton coilyco-gaming/galaxy-gen run 155, and 14 repos carry the same alert step across the three orgs.Tracked centrally at coilysiren/inbox#501, which carries the full list, the SSM parameter names, and why it could not be fixed in place: AOSGuard's Forgejo surface has no secrets verb, so there is nothing to write Actions secrets with. Org-level secrets on the three orgs would cover every repo in three writes.