determinism: an edit sequence through the daemon records a test-output note in one run and not the other

Đang mở
#92 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

@KyleAMathews đang làm issue này rồi.

Từ ngày 16/11/2026.

  • #126 của @KyleAMathews — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/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 by running the replay from packages/oracles: pnpm exec vitest --run --config oracle-gaps/vitest.config.mjs gap-report-oracle -t "determinism: constructed history: an edit sequence through the daemon". Read the determinism unit and the daemon-stream note emission path around oracle-gaps to find where the test-output.log note is appended. Diff full traces at the incremental checkpoint rather than the truncated prefix. Done means two runs record the same trace, or the comparison excludes that note with a stated reason in the coverage map.

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

Mô tả

Summary

The determinism unit determinism: constructed history: an edit sequence through the daemon fails on main (35422e3). Two runs of the same history differ in one daemon stream note: one run's stream includes oracle-gaps: note test output in <package>/<out>/test-output.log, and the other's does not. Found by the determinism units that CI-1 moves onto pull requests (PR #90).

Evidence

Structural diff of the two full traces (a scratch patch printed the untruncated texts), at checkpoint incremental:

  • $.daemon.stream.notes.1 exists in one run only. Both runs share --hang-limit 20000 ms is above --mutant-limit 15000 ms ... as note 0.

The cause is not determined. The note appears when a test's output is captured, so it probably depends on a timing race between the daemon's test output and the check's end. That has not been confirmed.

Replay

cd packages/oracles && pnpm exec vitest --run --config oracle-gaps/vitest.config.mjs gap-report-oracle -t "determinism: constructed history: an edit sequence through the daemon"

Notes

The 2,000-character prefix in the determinism message (#81) hid this difference. A diff needed the full texts. The check's law is that two runs of one history record the same trace, so either the note must be deterministic, or the comparison must leave it out with a stated reason in the coverage map.

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.