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: a superseded dispatched run's pending status can overwrite the newer run's result (typescript.yml, python.yml)

Đang mở Phù hợp với người mới
#5,223 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/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, typescript
Lĩnh vực
ci-cd

Hướng nghiên cứu

Bắt đầu bằng cách so sánh dispatch-status-pending trong typescript.yml và python.yml với bước kiểm tra lần chạy mới hơn trong dispatch-status, sau đó tìm script pending mà các job đó chạy. Thêm bước kiểm tra tương tự vào luồng pending và chạy script pending với một gh giả lập như mô tả trong issue. Hoàn tất khi không đăng trạng thái pending nếu có một lần chạy mới hơn được dispatch, và bài kiểm thử bao quát trường hợp đó.

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

Mô tả

chore v2

In typescript.yml and python.yml, the dispatch-status-pending job posts its (dispatched) status as pending without first checking for a newer dispatched run on the same commit. The dispatch-status result job does check (#5178), and it posts nothing when a newer run exists.

How it happens

  1. Run A is dispatched on commit X, and then run B.
  2. B finishes and posts success (or failure).
  3. A's pending job runs after that and posts pending. Two ways this can happen:
    • A is re-run after B finished. A re-run keeps its run ID, so it is still the older run.
    • A's pending job starts late, which the ordering allows when the two runs are not in one concurrency group.
  4. A's result job finds B, the newer run, and exits without posting.

The status stays pending until someone dispatches the workflow again.

Expected

The pending job runs the same newer-run check as the result job and posts nothing when it finds one. A test runs the pending script against a stub gh to pin this.

Found by Copilot on #5222. That PR fixes the two reporters it adds (dco.yml, everything-mcp-diff.yml). This issue covers the two existing ones, which that PR leaves alone.

Ngôn ngữ chính
TypeScript
Star
91.4k
Fork
11.8k
Merge trung bình
7 giờ 26 phút
Pull request đã merge (30 ngày)
130

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 modelcontextprotocol/servers

Tất cả issue của modelcontextprotocol/servers

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.