reach: "a heartbeat named a busy mutant" depends on wall-clock timing and is reached 1 to 2 times per shard

Đang mở
#84 2 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
45/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ệ
javascript
Lĩnh vực
testing

Hướng nghiên cứu

Start from the reach state "a heartbeat named a busy mutant" and the fixed-seed shard runs that count it, then read the determinism-under-load entry in the decisions register (2026-11-13). The proposed pattern is the test-only pause point used by PAUSE_AT in the daemon witness; find that witness and mirror it so the mutant is held for a constructed duration instead of relying on a slow test crossing the 2 s beat. Done means every shard that declares the state reaches it with wall-clock timing removed, verified by rerunning the fixed seed 20261105 across shards 1-3.

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

Mô tả

Summary

The reach state "a heartbeat named a busy mutant" is entered only when a slow test crosses the 2 s heartbeat interval. Its count per shard depends on the machine's timing, not only on the constructed history.

Evidence

Fixed seed 20261105, main 35422e3, Linux fixed-seed shards 1 to 3:

  • GitHub CI (run 43578388114): shard 1 = 2, shard 2 = 2, shard 3 = 2 (total 6).
  • The same commit on the Arca Arclet pool (tags r61-main{1,2,3}-35422): shard 1 = 1, shard 2 = 2, shard 3 = 2 (total 5).

The same Arclet pool gave head 346c8a8 shard 1 = 1 (tag r61-fs1-346), so the difference is between machines, not between main and the PR.

Why it matters

Under "determinism under load" (decisions register, 2026-11-13), a reach state must not depend on wall-clock timing. A state reached only by a slow test crossing a 2 s beat is that kind of dependency. The state still has to be reached on every shard that declares it. It is, but only by timing.

Proposed fix

Gate the state with a constructed history that holds a mutant for a deterministic time at a named test-only pause point (the same pattern as PAUSE_AT in the daemon witness), so the heartbeat fires regardless of machine speed. Not started here.

Related

#61 (fix(oracle-gaps): retire a batch's copies from Vitest's state). #80, #81 and #82 are separate.

Ngôn ngữ chính
JavaScript
Star
5
Fork
1
Merge trung bình
8 giờ 31 phút
Pull request đã merge (30 ngày)
60

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 TanStack/oracles

Tất cả issue của TanStack/oracles

Issue tương tự

Thêm issue về JavaScript

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.