[bug] nightly: capability discovery browser test can pause its clock in the past

Đang mở Phù hợp với người mới
#411 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, playwright, typescript
Lĩnh vực
ci-cd, testing-qa

Hướng nghiên cứu

Đọc tests/browser/capability_discovery.mjs ở khoảng dòng 517 và phần thiết lập browser-production trong .github/workflows/nightly.yml (dòng 285–355). Tái hiện trường hợp trình duyệt production và kiểm tra cách bước kiểm tra draft service cài đặt đồng hồ và chọn thời điểm tạm dừng. Giữ cho dấu thời gian của fixture khớp với đồng hồ được điều khiển, giữ nguyên các assertion song ngữ và assertion không có yêu cầu bổ sung, đồng thời xác nhận nhiều lần chạy bằng trình duyệt production đều thành công.

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

Mô tả

area:ci

Observed failure

Scheduled Nightly 44645615189, browser-production tested main 7dc1152ba78bdec05db8d2bbeed4d347ca40b082 (attempt 1). Thirteen of fourteen browser journeys passed. capability_discovery.mjs:517 exited with clock.pauseAt: Error: Cannot fast-forward to the past, before the stale/future/legacy/connection assertions. Captured browser diagnostics had no page errors. Environment: GitHub-hosted Ubuntu 22.04.5, Node 24.22.1, Playwright Core 1.58.2 with Chromium headless shell, Vite production preview and isolated fixture (no live provider).

Reproduce

Use the browser-production setup, then run node tests/browser/capability_discovery.mjs. In the draft service check, after the partial-capability state, the test installs its browser clock and immediately asks it to pause at the Node process's current wall clock. The failure depends on timing; one local pass does not rule it out.

Expected: freeze browser time and verify the same service observation in both locales without a second request.
Actual: Playwright refuses to pause at the supplied timestamp and the observation checks never run.

Scope and acceptance

Current main still has these calls. The stack is in Playwright's clock controller, not the product service. The likely race is that the browser clock ticks past the timestamp before the pause applies. Set an explicit installed time and a later pause target within that controlled clock, or use an equivalent deterministic setup. Keep fixture timestamps consistent with the controlled clock, preserve the bilingual/no-extra-request assertions, and verify multiple runs of the production-browser case. No independent rerun or product regression is claimed.

Ngôn ngữ chính
TypeScript
Star
119
Fork
16
Merge trung bình
16 giờ 13 phút
Pull request đã merge (30 ngày)
195

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 ThinkFlowLab/OpenDirector

Tất cả issue của ThinkFlowLab/OpenDirector

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.