feat: add admin_notify, deploy_status, logs commands + finish deploy.yml - #59
Conversation
- Add /admin_notify: broadcasts a message to all admin IDs via notifyAdminsPlain - Add /deploy_status: reads /tmp/deploy-report.txt from the VPS deploy script and returns it in chunks - Add /logs: tails journalctl or /tmp/runewager-3000.log (configurable line count, max 200) - deploy.yml: add workflow_dispatch dry_run/skip_tests inputs, [skip deploy] guard, secrets verification, duration tracking, disk free warning, artifact upload, post-deploy health check (30s), dry-run-report job https://claude.ai/code/session_01X3PxGFF5zzKptQwVkjYzzN
|
CodeAnt AI is reviewing your PR. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe PR introduces comprehensive deployment workflow automation with quality gates, pre-deployment safeguards, and conditional dry-run support, alongside three new admin commands for real-time system visibility and operational notifications. Changes
Sequence Diagram(s)sequenceDiagram
participant GHA as GitHub Actions
participant QG as Quality Gates Job
participant VPS as VPS Server
participant NOTIF as Notification System
participant PD as Post-Deploy Check
GHA->>QG: Trigger workflow (dry_run flag)
QG->>QG: Verify branch == main
QG->>QG: Check commit message (no [skip deploy])
QG->>QG: Validate secrets & Node version
QG->>QG: Run optional tests (if skip_tests=false)
QG-->>GHA: Quality gates passed
alt Dry Run Mode
GHA->>NOTIF: Send dry-run report
NOTIF-->>GHA: Notification sent
else Normal Deploy
GHA->>VPS: SSH setup & health snapshot
VPS->>VPS: Check disk space threshold
VPS->>VPS: Git fetch/reset to main
VPS->>VPS: npm install (omit dev)
VPS->>VPS: Port-swap deployment (max 3 restarts)
alt Deployment Success
VPS-->>GHA: Deploy complete
GHA->>NOTIF: Send success notification
GHA->>PD: Wait 30s, run post-deploy health check
PD-->>GHA: Health status
else Deployment Failure
VPS-->>GHA: Deploy failed
GHA->>NOTIF: Send failure notification & trigger rollback
NOTIF-->>GHA: Rollback initiated
end
end
Estimated Code Review Effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
|
CodeAnt AI finished reviewing your PR. |
User description
https://claude.ai/code/session_01X3PxGFF5zzKptQwVkjYzzN
Summary by CodeRabbit
New Features
Chores
CodeAnt-AI Description
Improve deployment workflow and add admin maintenance commands
What Changed
Impact
✅ Fewer accidental production deploys✅ Clearer final deploy reports with duration and server report✅ Faster troubleshooting via admin log access and deploy-report artifact💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.