首页/ AI 技能 / @skilllib/skill-2117939930272415381
Skill站外收录 @skilllib/skill-2117939930272415381

coderabbit-prod-checklist

执行 CodeRabbit 集成的生产部署与回滚流程,涵盖配置验证、代码质量检查、基础设施准备及渐进式发布。通过健康检查、监控告警和熔断机制保障服务稳定性,支持金丝雀发布与即时回滚,确保上线过程可控可追溯。

0.0 (0) 22 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# CodeRabbit Production Checklist ## Overview Complete checklist for deploying CodeRabbit integrations to production. ## Prerequisites - Staging environment tested and verified - Production API keys available - Deployment pipeline configured - Monitoring and alerting ready ## Instructions ### Step 1: Pre-Deployment Configuration - [ ] Production API keys in secure vault - [ ] Environment variables set in deployment platform - [ ] API key scopes are minimal (least privilege) - [ ] Webhook endpoints configured with HTTPS - [ ] Webhook secrets stored securely ### Step 2: Code Quality Verification - [ ] All tests passing (`npm test`) - [ ] No hardcoded credentials - [ ] Error handling covers all CodeRabbit error types - [ ] Rate limiting/backoff implemented - [ ] Logging is production-appropriate ### Step 3: Infrastructure Setup - [ ] Health check endpoint includes CodeRabbit connectivity - [ ] Monitoring/alerting configured - [ ] Circuit breaker pattern implemented - [ ] Graceful degradation configured ### Step 4: Documentation Requirements - [ ] Incident runbook created - [ ] Key rotation procedure documented - [ ] Rollback procedure documented - [ ] On-call escalation path defined ### Step 5: Deploy with Gradual Rollout ```bash # Pre-flight checks curl -f https://staging.example.com/health curl -s https://status.coderabbit.com # Gradual rollout - start with canary (10%) kubectl apply -f k8s/production.yaml kubectl set image deployment/coderabbit-integration app=image:new --record kubectl rollout pause deployment/coderabbit-integration # Monitor canary traffic for 10 minutes sleep 600 # Check error rates and latency before continuing # If healthy, continue rollout to 50% kubectl rollout resume deployment/coderabbit-integration kubectl rollout pause deployment/coderabbit-integration sleep 300 # Complete rollout to 100% kubectl rollout resume deployment/coderabbit-integration kubectl rollout status deployment/coderabbit-integration ``` ## Output - Deployed CodeRabbit integration - Health checks passing - Monitoring active - Rollback procedure documented ## Error Handling | Alert | Condition | Severity | |-------|-----------|----------| | API Down | 5xx errors > 10/min | P1 | | High Latency | p99 > 5000ms | P2 | | Rate Limited | 429 errors > 5/min | P2 | | Auth Failures | 401/403 errors > 0 | P1 | ## Examples ### Health Check Implementation ```typescript async function healthCheck(): Promise<{ status: string; coderabbit: any }> { const start = Date.now(); try { await coderabbitClient.ping(); return { status: 'healthy', coderabbit: { connected: true, latencyMs: Date.now() - start } }; } catch (error) { return { status: 'degraded', coderabbit: { connected: false, latencyMs: Date.now() - start } }; } } ``` ### Immediate Rollback ```bash kubectl rollout undo deployment/coderabbit-integration kubectl rollout status deployment/coderabbit-integration ``` ## Resources - [CodeRabbit Status](https://status.coderabbit.com) - [CodeRabbit Support](https://docs.coderabbit.com/support) ## Next Steps For version upgrades, see `coderabbit-upgrade-migration`.

评论 0

还没有评论,来抢沙发。