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 个 reaction 已指派 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 分钟
30 天内合并 PR
447

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bitfoundation/bitplatform 的其他 Issue

查看 bitfoundation/bitplatform 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。