Skip to content

Release: sender exception-shadowing fix + prod/testing deploy split#466

Merged
alexeyqu merged 3 commits into
masterfrom
dev
Jul 17, 2026
Merged

Release: sender exception-shadowing fix + prod/testing deploy split#466
alexeyqu merged 3 commits into
masterfrom
dev

Conversation

@alexeyqu

Copy link
Copy Markdown
Collaborator

Summary

  • src/tg/sender.py: fixed an UnboundLocalError in the error-handling path — the inner except ... as e for the error-log redirect send shadowed the outer send failure's e, and Python deletes that binding when its except block exits. Once the redirect send also failed, reading e.message afterward crashed, silently swallowing the original error and skipping the plain-text fallback send.
  • publish_master.yml: now dispatches service: sysblokbot-prod instead of service: sysblokbot, matching the sysblok-infra split (sysblok/sysblok-infra#32) that gives prod and testing independent Compose projects — previously every deploy (including dev-only ones) force-recreated both containers.

Test plan

  • sysblok-infra split deployed and verified live: prod/testing are independent containers, a testing-only deploy no longer restarts prod (container start-time check)
  • sysblokbot-testing running post-split at revision 05c21ee (includes the sender.py fix), confirmed healthy via logs
  • After merge, confirm master push builds :prod, dispatches service: sysblokbot-prod, and sysblokbot-prod deploys/restarts cleanly

🤖 Generated with Claude Code

alexeyqu and others added 3 commits July 16, 2026 22:40
The inner "except ... as e" for the error-log redirect send shadowed
the outer send failure's "e", and Python deletes that binding when its
except block exits. Once the redirect send also failed, reading
e.message afterward raised UnboundLocalError, silently swallowing the
original error and skipping the plain-text fallback send.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…vices

sysblok-infra now treats sysblokbot-prod and sysblokbot-testing as
independent deploy targets (separate Compose projects) instead of one
shared project that got force-recreated on every deploy, restarting
prod on dev-only pushes. Point each workflow's repository_dispatch at
its own service name to match.

Do not merge until the sysblok-infra side (branch
fix/split-sysblokbot-deploy-services there) is deployed and the
one-time data migration to the new /srv/sysblokbot-prod and
/srv/sysblokbot-testing paths is done -- merging first would dispatch
deploys to service directories that don't exist yet on the host.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ices

fix: dispatch dev/master deploys to split sysblokbot-testing/prod services
@alexeyqu
alexeyqu merged commit 751f7ed into master Jul 17, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant