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

Aperta
#15,620 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@msynk ci sta già lavorando.

Dal 4/12/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
C#
Stelle
1.4k
Fork
264
Merge medio
5h 25m
PR unite (30g)
447

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bitfoundation/bitplatform

Tutte le issue di bitfoundation/bitplatform

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.