day-dividers timing test flakes on CI runners

Đang mở
#770 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
66/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
testing

Hướng nghiên cứu

Start with day-dividers.test.ts and inspect the "cheap enough to run on every streamed update of a long chat" test and the dividerRows implementation it exercises. Consider whether counting timestamp parses or comparing performance against a same-run baseline would preserve detection of repeated parsing while tolerating runner noise. Done when the check catches a real slowdown without failing from ordinary CI timing variation.

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

Mô tả

type:bug

The day-dividers.test.ts test "cheap enough to run on every streamed update of a long chat" asserts dividerRows stays under 0.5 ms per call on 2000 rows, measured in real time. On a shared CI runner it measured 0.605 ms and failed verify on #768 (run 40546143525), which doesn't touch the renderer.

Acceptance: the check still catches a real slowdown (for example, re-parsing every timestamp on each call) but doesn't fail on runner noise. Options include counting timestamp parses instead of measuring time, or comparing against a baseline taken in the same run.

Ngôn ngữ chính
TypeScript
Star
3
Fork
0
Merge trung bình
17 giờ 33 phút
Pull request đã merge (30 ngày)
163

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 musterhq/muster-code

Tất cả issue của musterhq/muster-code

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.