Summary table in PR comment uses single report instead of merged data when multiple CTRF files match report-path glob
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github-actions, typescript
Hướng nghiên cứu
Bắt đầu bằng cách lần theo cách các kết quả glob của report-path được đọc và cách bảng Summary trong bình luận PR lấy dữ liệu. Tái hiện vấn đề với ba tệp CTRF khớp với glob, sau đó xác minh rằng bảng báo cáo tổng số đã gộp gồm 151 test và 6 lỗi thay vì các giá trị của một shard.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When using report-path with a glob pattern that matches multiple CTRF report files (e.g. from sharded Playwright runs), the action correctly merges data for:
- The uploaded artifact (correct totals)
- Annotations (all failures annotated)
- Insights section (aggregated historical data)
However, the Summary table in the PR comment only reflects one of the matched files instead of the merged totals.
Reproduction
3 Playwright shards each produce a ctrf-report.json, uploaded as separate artifacts and downloaded into e2e-artifacts/:
| Shard | Tests | Passed | Failed | Skipped |
|---|---|---|---|---|
| 1 | 53 | 24 | 3 | 26 |
| 2 | 49 | 34 | 0 | 15 |
| 3 | 49 | 36 | 3 | 10 |
| Expected merged | 151 | 94 | 6 | 51 |
Config:
report-path: "e2e-artifacts/**/ctrf-report.json"
Logs confirm all 3 reports are read (Read 3 CTRF reports), and 6 failures are annotated via ##[error]. But the Summary table shows shard 2's numbers only (49 tests, 0 failed).
Expected behavior
The Summary table should reflect the merged totals across all matched CTRF files (151 tests, 6 failed).
Workaround
Pre-merge the CTRF reports into a single file before passing to the action, so report-path only matches one file.
- Ngôn ngữ chính
- TypeScript
- Star
- 380
- Fork
- 43
- Merge trung bình
- 3 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- 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 ctrf-io/github-test-reporter
-
Timeline: draw earlier retry attempts on the thread that ran them (retryAttempts[].threadId)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
ctrf-io/github-test-reporter#334 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
ctrf-io/github-test-reporter#309 · 1 bình luận ·
-
Excessive memory usage when processing history leads to Javascript Heap ExhaustionCó thể làm lại được @HenrikDK đã nhận 122 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ctrf-io/github-test-reporter#302 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
ctrf-io/github-test-reporter#297 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
ctrf-io/github-test-reporter#282 ·
Tất cả issue của ctrf-io/github-test-reporter
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Northeastern-Electric-Racing/FinishLine#4660 ·
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 86/100
excaliburjs/Excalibur#3895 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
infer_audio_type only recognises one MPEG Layer III frame header, so most MP3 files are rejectedCó thể đã có người làm @Steve-20-ai đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Earn report crashes with "RangeError: Invalid time value" when a report row has an unparsable timestampCó thể đã có người làm @Gurkaran18 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
joinmarket-webui/jam#1588 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
BeOS .json missingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mihaip/infinite-mac#475 ·