Blex's circuit pause E2E test pauses while BlexProvider's start still has JS calls in flight
Maintainer thường phản hồi trong vòng 1 ngày
Đá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) fails at random: its console check finds
uncaught: Error: Cannot send data if the connection is not in the 'Connected' State.
at tr.send (blazor.web.js) ... at ho.endInvokeJSFromDotNet ... at _.beginInvokeJSFromDotNet
It failed in the "Blex publish gate (aot)" job of run 46893350256 on v-11.0.0 (6941b2eec5), while the other 85 tests passed.
Cause. The test calls Blazor.pauseCircuit() as soon as the page is marked interactive. At that moment <BlexProvider>'s start is still running its JS calls one after the other (storage import, get, watch, watchHide, then the DevTools module's import and connect, then the query module's import and watch). pauseCircuit() doesn't wait for them: the client sends PauseCircuit, then stops the connection, and a call the browser answers after that makes blazor.web.js's CircuitManager.endInvokeJSFromDotNet call connection.send(...), which rejects with nobody to catch it (CircuitManager.ts at v11.0.0). The framework's own auto-pause avoids this by waiting for the circuit to report itself idle through circuitactivitychanged before it calls pauseCircuit (whenIdle in AutoPauseManager.ts). Blex's calls are its normal start, and each of them already handles a circuit that went away on the .NET side.
Evidence. A probe branch ran the test 20 times in each publish leg with the server's circuit logs on Debug (run 46901215637): 8 of 40 attempts failed (2 trimmed, 6 AOT). Every failed attempt had an import begun and not answered when the pause started; none of the 27 attempts with nothing in flight failed. From a failed attempt:
14:28:43.179 RemoteJSRuntime Begin invoke JS interop '9': 'connect'
14:28:43.186 CircuitHost The JS interop call with callback id '9' succeeded.
14:28:43.186 RemoteJSRuntime Begin invoke JS interop '10': 'import' <- bit-blex-query.js
14:28:43.193 CircuitRegistry Pausing circuit with id 9Rjy... from connection NGn-...
Call 10 never got its answer: the browser sent it after the connection had stopped.
Fix. The test waits for the circuit to be idle, through the framework's circuitactivitychanged event, and to stay idle for 500 ms before it pauses. The console check stays as it is. .NET 10's blazor.web.js has no such event, so the net10.0 leg keeps today's timing.
- Ngôn ngữ chính
- C#
- Star
- 1.4k
- Fork
- 264
- Merge trung bình
- 5 giờ 40 phút
- Pull request đã merge (30 ngày)
- 489
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bitfoundation/bitplatform
-
Bug: Duplicate scrollbars in NotificationCenter after rapidly creating multiple notificationsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
bitfoundation/bitplatform#15606 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
EveryListedPageBecomesInteractiveWithoutAnError fails on WebKit when the PDF viewer starts a fetch while it is leftCó thể đã có người làm @msynk đã nhận hôm nay. Đang mở
bitfoundation/bitplatform#15604 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Brouter's and Bmage's MCP tools leave out double, float and MaxFileSizeCó thể đã có người làm @msynk đã nhận hôm nay. Đang mở
bitfoundation/bitplatform#15601 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BitPhoneInput leaves its Value empty when the number is typed in Persian or Arabic digitsCó thể đã có người làm @seragAhmed đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
bitfoundation/bitplatform#15600 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Version 11.0.0Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 40/100
bitfoundation/bitplatform#15598 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của bitfoundation/bitplatform
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
unoplatform/uno#27025 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
valkey-io/valkey-glide#7975 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
voltern-org/starling#214 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-investigation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Azure/azure-cosmos-dotnet-v3#6255 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
[Docs]: winapp-signing skill says `cert install` uses Trusted Root, but it uses Trusted PeopleĐang mởdocumentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày