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

perf(pr-pipeline): end the demotion alert's re-run wait as soon as main recovers

Đang mở Phù hợp với người mới
#9,013 1 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, shell
Lĩnh vực
ci-cd

Hướng nghiên cứu

Đọc .github/workflows/post-merge-demotion-alert.yml và theo dõi bước kiểm tra khôi phục hiện có sau vòng lặp chờ. Cập nhật bài kiểm thử vòng lặp chờ để xác minh rằng vòng lặp thoát ngay ở lần thăm dò đầu tiên khi có một lần chạy pr-require-checks thành công mới hơn trên main, và đầu ra recovered=true cùng thông báo khớp với luồng xử lý hiện tại sau vòng lặp.

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

Mô tả

needs-human

Refs: #8897, #8898

Problem

post-merge-demotion-alert.yml waits up to 40 one-minute polls for a re-run of a bot-dispatched red run (polls=40), and only after that loop checks whether a newer pr-require-checks run on main succeeded. pr-merge does not re-run these dispatched reds (no red reached attempt 2), so the wait always times out.

All seven dispatched reds between 2026-10-21 20:37Z and 2026-10-22 03:40Z ran the full 40 minutes, then filed nothing because main had already recovered 8 to 30 minutes after the red. For example, alert run 39688650626 ran 22:44:24 to 23:24:43, while main passed at run 39689621793 before 23:00. That is about 280 runner-minutes for no filing. Details: #8898.

Fix

Inside the wait loop, also run the recovery check for a newer successful pr-require-checks run on main after the red run. When one exists, exit with the same "main already recovered" notice and recovered=true output as today. Filing behavior does not change.

Done when a test of the wait loop shows it exits on the first poll where a newer success exists, and the output and notice match the current post-loop path.

Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
7 giờ 23 phút
Pull request đã merge (30 ngày)
950

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

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 melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

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.