Debounce dashboard refresh dispatches in the webhook function
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #176 của @trask — đã đóng, không merge
Đá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
- 48/100
Hướng nghiên cứu
Xác định hàm webhook của Netlify, cách hàm này sử dụng Netlify Blobs và hàm cron hoặc scheduled hiện có chạy theo giờ. Theo dõi cách các sự kiện được chấp nhận hiện dispatch các workflow, sau đó so sánh phần triển khai với trạng thái debounce repository-and-PR được đề xuất. Công việc được hoàn thành khi các sự kiện dồn dập tạo ra một dispatch cuối duy nhất sau khoảng thời gian yên lặng, các bản cập nhật không bị mất trong quá trình ghi đồng thời và hourly backstop vẫn duy trì hiệu quả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The Netlify webhook dispatches one workflow run per accepted event. Bursty repositories generate far more runs than the dashboard needs, and job-level concurrency then cancels most of them.
Measured on 2026-07-28 against opentelemetry-collector-contrib:
- GitHub Actions opens a separate check suite per workflow, so one push to a PR produces ~17
check_suite.completedevents, hence 17 dispatches. - Worst burst observed: 53 dispatches for a single PR in 77 seconds.
- Across a sample of 1,501 dashboard-eligible events, 82% were
check_suite.completed. - 81% of completed dashboard runs in the sampled window were cancelled by concurrency.
Every dispatch in a burst produces the same dashboard output, because each run re-reads the full statusCheckRollup. Only the last one carries new information.
Proposal: collapse events per repository + PR number before dispatching.
- On each accepted webhook, record
lastEventAtin a Netlify Blobs entry keyed by${repository}#${pr_number}instead of dispatching. - A scheduled function runs every minute and dispatches once a PR has been quiet for ~45s, then records
lastDispatchAt. - Flush on
lastDispatchAt < lastEventAtrather than a boolean, so a lost update from concurrent writes costs one extra tick instead of a dropped refresh.
Simulated against the real event stream, a 60s trailing debounce on all events removes 66% of dispatches. Leading-edge and check-suite-only variants both scored worse (54% and 52%), so the simplest policy is also the best one.
Trade-off: refresh latency goes from near zero to roughly 45-105 seconds. The hourly cron remains the backstop, and duplicate dispatches stay harmless because the existing concurrency group absorbs them.
- Ngôn ngữ chính
- JavaScript
- Star
- 7
- Fork
- 23
- Merge trung bình
- 15 giờ 46 phút
- Pull request đã merge (30 ngày)
- 41
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 open-telemetry/shared-workflows
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
open-telemetry/shared-workflows#532 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Hash-lock pull request dashboard Python dependencies (move to uv)Có thể đã có người làm @irfadkp đã nhận 3 ngày trước. Đang mởdashboard dependencies
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 51/100
open-telemetry/shared-workflows#517 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Migrate dyladan/component-ownersĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
open-telemetry/shared-workflows#492 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
open-telemetry/shared-workflows#422 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support Zizmor SARIF uploads from private repositoriesCó thể làm lại được @trask đã nhận 61 ngày trước và không có pull request nào đang mở. Đang mở
open-telemetry/shared-workflows#390 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của open-telemetry/shared-workflows
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Falló el respaldo diarioĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
manuXD270516/descanso#80 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
feat: Warn while typing a forbidden character in a file nameCó thể đã có người làm @Mittalnew đã nhận hôm nay. Đang mởapp Drive 📁 enhancement OO Docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
linagora/twake-drive#4620 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
国战吕蒙【谋断】问题Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Edit: Hello TasteĐang mởchannels:edit check:passed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày