[Feature]: Test runner captures and source-maps stacks that it never uses
Maintainer thường phản hồi trong vòng 1 ngày
@microsoft-playwright-automation đang làm issue này rồi.
Từ ngày 24/11/2026.
- #44338 của @microsoft-playwright-automation — đang mở
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- performance, testing
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 100k
- Fork
- 6.9k
- Merge trung bình
- 16 giờ 18 phút
- Pull request đã merge (30 ngày)
- 281
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/playwright
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
microsoft/playwright#44340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Có thể đã có người làm @lazerg đã nhận 2 ngày trước. Đang mởagent-triage-done
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
microsoft/playwright#44289 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature]: expose per-project workers on FullProject for reportersCó thể đã có người làm @microsoft-playwright-automation đã nhận hôm nay. Đang mởagent-triage-done
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/playwright#44264 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature]: Skip PNG decode and diff when a screenshot matches its baseline byte for byteCó thể đã có người làm @microsoft-playwright-automation đã nhận hôm nay. Đang mởagent-triage-done
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
microsoft/playwright#44333 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: `.resolves.not` and `.rejects.not` pass when a promise settles the wrong wayCó thể đã có người làm @microsoft-playwright-automation đã nhận hôm nay. Đang mởagent-triage-done
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 55/100
microsoft/playwright#44331 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/playwright
Issue tương tự
-
chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
drydocs/meridian#1503 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
refactor review: high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
1lck/Lithe-IDEA#2376 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug extension mcp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
primer/primitives#1426 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
danielmiessler/LifeOS#2941 ·
Maintainer thường phản hồi trong vòng 4 ngày