Summary
When a Docker deployment fails and the automatic rollback kicks in, no Discord notification is sent. Operators have no visibility into whether a rollback succeeded or failed unless they SSH into the machine and check logs manually.
Problem
The rollback path in server.py runs git reset and docker compose up but never calls the Discord notification helper. This means:
- A silent rollback looks identical to a successful deployment from Discord's perspective.
- If the rollback itself fails, there is no alert at all.
Proposed Solution
Add Discord notifications at two points in the rollback flow:
- Rollback started — yellow/orange embed indicating the deployment failed and a rollback is in progress. Include the failed commit hash and error output.
- Rollback result — green embed if the rollback succeeded, red embed if the rollback also failed (with full stderr).
The embed color scheme could follow:
| Event |
Color |
| Deployment success |
Green (0x57F287) |
| Deployment failed, rollback started |
Orange (0xFEE75C) |
| Rollback success |
Green (0x57F287) |
| Rollback failed |
Red (0xED4245) |
Acceptance Criteria
Summary
When a Docker deployment fails and the automatic rollback kicks in, no Discord notification is sent. Operators have no visibility into whether a rollback succeeded or failed unless they SSH into the machine and check logs manually.
Problem
The rollback path in
server.pyrunsgit resetanddocker compose upbut never calls the Discord notification helper. This means:Proposed Solution
Add Discord notifications at two points in the rollback flow:
The embed color scheme could follow:
0x57F287)0xFEE75C)0x57F287)0xED4245)Acceptance Criteria
rollbackis not configured for a repo