CI/CD: a branch without a review namespace now shows orange, not red
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_namespacefailed 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_namespacefirst.- 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
kubectlerror (an unreachable cluster, a bad context), is still red.
- When the namespace is missing (the API returns NotFound or Forbidden), it exits 3, and the job's
- 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.shfunction table: addskip_review_without_namespaceandreview_namespace_state, and note thatensure_namespaceis 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của components-web-app/docs
-
documentation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
components-web-app/docs#285 ·
-
documentation
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
components-web-app/docs#284 ·
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 52/100
components-web-app/docs#283 ·
-
documentation
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
components-web-app/docs#282 ·
-
documentation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
components-web-app/docs#281 ·
Tất cả issue của components-web-app/docs
Issue tương tự
-
fix(cursor): align Grok 4.7 context window to 256k/500k and drop unsupported max effort tierĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
diegosouzapw/OmniRoute#17386 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/dashboard kind/bug kind/bug-qa QA/dev-automation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vybestack/llxprt-code#3917 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api-parity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
IBM/carbon-components-ember#1157 ·
Maintainer thường phản hồi trong vòng 1 ngày