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

オープン
#15,620 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@msynk がすでに取り組んでいます。

2026年12月4日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
C#
スター
1.4k
フォーク
264
平均マージ
5時間 25分
マージ済み PR(30日)
447

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bitfoundation/bitplatform のほかの issue

bitfoundation/bitplatform の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。