Three unit tests flake on timing in the Coverage job

Đang mở
#4,321 1 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
55/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ệ
node.js, typescript
Lĩnh vực
testing-qa

Hướng nghiên cứu

Start with artifact-tracking.test.ts, snapshot-source/lifecycle.test.ts, and remote-test-artifacts-materialization.test.ts; inspect each timing assertion and the async work it observes. Run them under the Coverage job's parallelism and identify whether each depends on a real-time sleep, wall-clock bound, or unawaited step. Done means all three pass 20 consecutive runs without added real-time waits, wider timeouts, retries, or skips.

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

Mô tả

bug ready-for-agent

Purpose

Three unit tests fail intermittently on timing in the Coverage job. #4316 found them while measuring every Coverage failure from 2026-11-05 to 2026-11-07: 7 of the 34 failed attempts in that window were these tests, on PRs that don't touch them.

Current behavior

The flaky tests:

  • artifact-tracking.test.ts
  • snapshot-source/lifecycle.test.ts
  • remote-test-artifacts-materialization.test.ts

Each fails on a timing assertion or timeout under load and passes when rerun. Once #4316 lands, the failing test and line appear as a check annotation on the PR.

Required behavior

  • For each test, find what it times: a real-time sleep, a wall-clock bound, or an unawaited async step.
  • Make it deterministic with fake timers, awaited events or an explicit ordering signal. Don't widen the timeout or retry the test.
  • Don't skip any of the three.

Completion conditions

  • Each test passes 20 consecutive runs under the Coverage job's parallelism, locally or in CI.
  • No new real-time waits are added.

Dependencies

#4316 (annotations), which makes future recurrences visible.

Ngôn ngữ chính
TypeScript
Star
5.3k
Fork
377
Merge trung bình
13 giờ 58 phút
Pull request đã merge (30 ngày)
654

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 callstack/agent-device

Tất cả issue của callstack/agent-device

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.