An E2E test's retry runs on the Firefox instance whose page crashed on its first try

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

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

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

2026年12月5日 から。

評価

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

説明

BitTextFieldE2ETests.SelectAsyncAndSelectRangeAsync_DriveTheSelectionFromCode (src/BlazorUI/Tests/E2E/Bit.BlazorUI.Tests.E2E/Inputs/BitTextFieldE2ETests.cs) failed on both tries in "blazorui e2e / E2E firefox / server" of All Other E2E CI run 47455950741. Firefox crashed the page about 3 seconds into each try, at line 2011 on the first try and at line 2019 on the second:

Locator expected to have JavaScript property 'selectionStart'
Error: Page crashed '0'
  - Expect "ToHaveJSPropertyAsync" Locator("#tf-select-api .bit-tfl-inp") with timeout 30000ms
  - Page crashed

The same crash, at the same test, failed the first try in the firefox/server jobs of run 46152706341 (11-28) and run 46893325157 (12-02). Both times the second try passed.

The crash is Firefox's. "Page crashed" means the Firefox content process that held the page died. The test's steps at that point call only focus(), select() and setSelectionRange() (BitTextField.setSelectionRange, Utils.selectText). Those are standard DOM calls, which a page can't use to take its process down. The host's log has no error from that test, and Chromium and WebKit never crash there. The test didn't crash in 30 runs on fresh browsers, either alone or with the runner's CPU fully loaded: run 47467932146 and run 47471668493, Firefox in both modes. #15521 was the same kind of crash in Playwright's Firefox 159 build, there from axe and document.getAnimations().

Why the second try crashed too: the test base. E2ETestBase hands every test's browser on to the next test (_idleBrowsers, last in, first out), and it retires a browser only when its context fails to close. A crashed page doesn't count as broken, so the retry ran on the same Firefox instance and crashed at the same point. A retry that runs where the first try crashed can't tell a Firefox crash from a product bug.

Fix. A page crash marks the browser it ran on as broken. The cleanup then retires and closes that browser, and the next test, the retry included, launches a fresh one. The cleanup also writes the time of the crash into the test's output. The test's checks don't change, and a crash on the fresh browser still fails it.

Probe run 47473523553 checks this on Firefox. It crashes a page on purpose (about:crashcontent), and Firefox logs process … exited on signal 11. With the fix, the browser is closed and the next test runs on a new one.

主要言語
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 を短くまとめたダイジェスト。