[Feature]: Test runner captures and source-maps stacks that it never uses
メンテナーはふだん 1 日以内に返信
@microsoft-playwright-automation がすでに取り組んでいます。
2026年11月24日 から。
- #44338 @microsoft-playwright-automation による — オープン
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 30/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- performance, testing
調査の方向性
Start in fixtureRunner.ts where _stepInfo.stack is set for built-in fixture steps, and in packages/isomorphic/manualPromise.ts at LongStandingScope._race(). Read closed PR #44326 for the already-tested implementation, then run the test-runner and manual-promise tests covering step metadata and close-error stacks. Done means built-in fixture steps carry stack: [], _race() reads .stack only when cloning a close error, and existing stack output stays unchanged.
索引モデルが issue の本文から書いたものです。
説明
Problem
Two hot paths in the worker format stacks that nobody reads:
- Built-in fixture steps (
page,context,request, and about 30 more) have no user location. InfixtureRunner.ts,_stepInfo.stackisundefined, sotestInfo._addStep()captures and source-maps a full raw stack, then filters it to 0 frames. This happens about 60 times per test. LongStandingScope._race()inpackages/isomorphic/manualPromise.tsreadsnew Error().stackon every call. The formatted stack is used only when the scope closes during the race.
Measurements
CPU profile of a 24-test suite, Apple Silicon, Chromium headless shell, 1 worker, median of 5 runs:
| Now | With both changes | |
|---|---|---|
| Worker CPU time | 995 ms | 806 ms (−19%) |
Proposed approach
- Give built-in fixture steps
stack: []. User fixtures keep their registration location. - In
_race(), keep theErrorand read.stackonly when it clones a close error. V8 records the frames when theErroris constructed, so close messages stay the same.
One difference: built-in fixture steps no longer report user locations injected by a custom Error.prepareStackTrace formatter. With the default formatter, they never had a location.
Already implemented and tested in #44326, which was closed only to file this issue first. Both are small, low-risk performance fixes. Reopening #44326 is the fastest path; it is ready for review.
- 主要言語
- TypeScript
- スター
- 100k
- フォーク
- 6.9k
- 平均マージ
- 16時間 18分
- マージ済み PR(30日)
- 281
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/playwright のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/playwright#44340 ·
メンテナーはふだん 1 日以内に返信
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)対応中かも @lazerg が 2 日前に担当しました。 オープンagent-triage-done
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
microsoft/playwright#44289 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Feature]: expose per-project workers on FullProject for reporters対応中かも @microsoft-playwright-automation が今日担当しました。 オープンagent-triage-done
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
microsoft/playwright#44264 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
[Feature]: Skip PNG decode and diff when a screenshot matches its baseline byte for byte対応中かも @microsoft-playwright-automation が今日担当しました。 オープンagent-triage-done
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
microsoft/playwright#44333 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: `.resolves.not` and `.rejects.not` pass when a promise settles the wrong way対応中かも @microsoft-playwright-automation が今日担当しました。 オープンagent-triage-done
難易度 3/5 半日 初心者へのやさしさ 55/100
microsoft/playwright#44331 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
microsoft/playwright の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sindresorhus/eslint-plugin-unicorn#4045 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CreadorLanda/yo#316 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
awslabs/social-messaging-agent-runtime-toolkit#232 ·
メンテナーはふだん 3 日以内に返信
-
bug p2 platform:linux platform:macos platform:windows triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信