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

Summary table in PR comment uses single report instead of merged data when multiple CTRF files match report-path glob

Đang mở
#258 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Lĩnh vực
ci-cd, testing

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

Mở trong Codespaces

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.

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 ctrf-io/github-test-reporter

Tất cả issue của ctrf-io/github-test-reporter

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.