Blex's circuit pause E2E test still pauses with JS calls in flight on .NET 10, which has no circuitactivitychanged event

Đang mở
#15,620 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Từ ngày 4/12/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

ServerModeTests.Stores_survive_the_circuit_being_paused_and_resumed (src/Utilities/Blex/Tests/Bit.Blex.Tests.E2E/WebModeTests.cs) failed again in "Blex E2E - web render modes (net10.0)" of All Utilities E2E CI run 47434198193: the test itself passed, and its console check found

uncaught: Error: Cannot send data if the connection is not in the 'Connected' State.
    at Un.send (blazor.web.js) ... at qo.endInvokeJSFromDotNet ... at b.beginInvokeJSFromDotNet

It is the race of #15602: Blazor.pauseCircuit() called while <BlexProvider>'s start still has JS interop calls in flight, and blazor.web.js failing to send their answers once the pause stopped the connection.

Why #15602's fix doesn't cover it. That fix (bd855290e5, in the still open #15603, not on develop) waits for the circuit to report itself idle through blazor.web.js's circuitactivitychanged event. Only .NET 11's blazor.web.js has it: its CircuitManager.ts counts each JS.BeginInvokeJS until its EndInvokeJSFromDotNet and dispatches the event, while .NET 10's (v10.0.0) has no such count. On the net10.0 leg, the leg that failed tonight, the event never fires and the wait passes at once.

Fix. The test counts the same messages itself, on the circuit's WebSocket through Playwright: one call in flight from each JS.BeginInvokeJS the server sends until the page sends its EndInvokeJSFromDotNet (every call the server makes carries a handle and gets that answer). It pauses once nothing has been in flight for 500 ms, on both runtimes. This replaces bd855290e5: merging #15603 after this needs that file resolved to this version.

Ngôn ngữ chính
C#
Star
1.4k
Fork
264
Merge trung bình
5 giờ 25 phút
Pull request đã merge (30 ngày)
447

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 bitfoundation/bitplatform

Tất cả issue của bitfoundation/bitplatform

Issue tương tự

Thêm issue về C#

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.