Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

CI/CD: a branch without a review namespace now shows orange, not red

Đã đóng Phù hợp với người mới
#94 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/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ệ
github-actions, kubernetes
Lĩnh vực
devops, documentation

Hướng nghiên cứu

Bắt đầu với content/6.deployment/3.ci-cd.md và kiểm tra bảng hàm của k8s.sh, sử dụng commit 5b6a953 của components-web-app làm tham chiếu về hành vi. Cập nhật tài liệu về Review Apps và các hàm, đồng thời kiểm tra xem một trang GitHub Actions có cần chú thích cảnh báo và các bước bị bỏ qua hay không. Được xem là hoàn tất khi hành vi màu cam so với màu đỏ, việc tạo namespace, hành vi không thay đổi của staging/production và các hàm được liệt kê được ghi chép chính xác.

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

Mô tả

components-web-app 5b6a953 changes what the review job does on a branch that has no namespace. content/6.deployment/3.ci-cd.md needs updating.

What changed

  • Before: ensure_namespace failed and the pipeline went red on every branch nobody had provisioned a namespace for, which was nearly all of them. A red pipeline said nothing, and a real deploy failure looked the same.
  • Now: the review job runs skip_review_without_namespace first.
    • When the namespace is missing (the API returns NotFound or Forbidden), it exits 3, and the job's allow_failure: exit_codes: [3] shows the pipeline orange ("passed with warnings").
    • A deploy that really fails, and any other kubectl error (an unreachable cluster, a bad context), is still red.
  • Staging, canary and production are unchanged: a missing namespace there still fails hard.
  • GitHub Actions has no orange state. The review job adds a warning annotation and skips its deploy, fixtures and warm steps.

Pages

  • Review Apps section: "Every branch (except main) gets its own Kubernetes namespace" isn't accurate. A branch gets a review environment only once someone creates its namespace, with role bindings. Say what orange means, and how to create a namespace for a branch that needs one.
  • The k8s.sh function table: add skip_review_without_namespace and review_namespace_state, and note that ensure_namespace is still what staging and production use.
  • GitHub Actions page, if there is one: the warning annotation and the skipped steps.
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
1 giờ 20 phút
Pull request đã merge (30 ngày)
1

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 components-web-app/docs

Tất cả issue của components-web-app/docs

Issue tương tự

Thêm issue về TypeScript

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.