Continuity runbook: Rollback production

Đang mở
#1,063 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, github-actions, postgresql, python

Hướng nghiên cứu

Bắt đầu với docs/continuity/runbooks/rollback-production.md, sau đó đọc .github/workflows/deploy.yml, Procfile và scripts/check_alembic_revision_guardrail.py. Xác nhận rằng runbook bao quát việc xác nhận release chính xác, sự phân biệt giữa rollback slug và rollback Postgres, cùng điều kiện dừng ALEMBIC_GUARDRAIL_FAIL, mà không cho phép rollback không được yêu cầu hoặc config dump.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

existing-maintainers-only

Task

A second maintainer can roll back a Heroku release on opencreorg when a deploy is bad, without confusing slug rollback with database rollback.

Success criteria

  • Runbook docs/continuity/runbooks/rollback-production.md (skill continuity-rollback-production)
  • Operator lists heroku releases and only rolls back after a human types the exact vNNNN
  • Stops if the bad release may have migrated Postgres (Alembic); documents that slug rollback does not undo the DB
  • Knows ALEMBIC_GUARDRAIL_FAIL on release: means stop rolling back blindly

Context

  • Prod deploy force-pushes to the Heroku git remote (.github/workflows/deploy.yml)
  • Procfile release: runs scripts/check_alembic_revision_guardrail.py

Constraints

  • existing maintainers only
  • Agent must not heroku rollback unprompted
  • No config dumps

Agent prompt

See Agent prompt in docs/continuity/runbooks/rollback-production.md.

Ngôn ngữ chính
Python
Star
210
Fork
167
Merge trung bình
4 ngày 12 giờ
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OWASP/OpenCRE

Tất cả issue của OWASP/OpenCRE

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.