[Flaky CI]: Playwright esm Tests - thirdPartyErrorsFilter third-party error can fire before Sentry.init
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 76/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, playwright, typescript
调研方向
从 suites/integrations/thirdPartyErrorsFilter/test.ts、template.html 和 utils/generatePage.ts 开始,比较 first-party 错误和 third-party 错误触发的时机。报告建议在 page.goto 后通过点击按钮触发 third-party 错误,然后检查测试是否接收到事件并为其添加标签。运行 esm 套件中指定的 Playwright 测试,以确认此行为。
由索引模型根据 Issue 内容生成。
描述
Flakiness Type
Timeout
Name of Job
CI: Build & Test / Playwright esm (1/4) Tests
Name of Test
suites/integrations/thirdPartyErrorsFilter/test.ts › tags event if contains at least one third-party frame (chromium)
Link to Test Run
https://github.com/getsentry/sentry-javascript/actions/runs/42369835136/job/128396391992
Details
Failed 3 times on develop between Nov 5 and Nov 7 (run, run, run), always page.waitForRequest: Test timeout of 30000ms exceeded. The other test in the file hasn't failed.
I think it's a script-ordering race. template.html loads thirdPartyScript.js as a blocking script, which throws from a setTimeout(..., 100). The init bundle is injected with scriptLoading: 'defer' (utils/generatePage.ts), so it only runs after parsing. If the deferred init takes longer than 100 ms on a slow runner, the error fires before Sentry.init has installed the global handler, and no event is ever sent. The first-party test avoids this because its error comes from page.click after page.goto.
I haven't reproduced it locally. Suggested fix: have thirdPartyScript.js throw from a click handler on its own button, and click it in the test after page.goto, mirroring the first-party test. The error still only has a frame from the third-party script, so the assertion means the same thing. Happy to open a PR if that sounds right.
- 主要语言
- TypeScript
- 星标
- 8.8k
- 派生
- 1.9k
- 平均合并
- 1 天 21 小时
- 30 天内合并 PR
- 637
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-javascript 的其他 Issue
-
Bug Node.js Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 76/100
getsentry/sentry-javascript#26202 · 2 条评论 ·
维护者通常 1 天内回复
-
Workers AI integration drops output of non-streaming chat responses in the OpenAI format (`choices`)可能已有人在做 @andreiborza 于 1 天前认领。 未关闭Bug Cloudflare Workers Spans Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-javascript#26120 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Only create Nuxt database and storage spans when there is a parent span可能已有人在做 @nicohrubec 于 9 天前认领。 未关闭Improvement Nuxt
难度 2/5 1-3 小时 新手友好度 83/100
getsentry/sentry-javascript#25805 · 3 条评论 ·
维护者通常 1 天内回复
-
Only create Cloudflare storage and D1 db spans when there is a parent span可能已有人在做 @nicohrubec 于 9 天前认领。 未关闭Cloudflare Workers Improvement Spans
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-javascript#25804 · 1 条评论 ·
维护者通常 1 天内回复
-
Only create aws-sdk DynamoDB db spans when there is a parent span可能已有人在做 @nicohrubec 于 9 天前认领。 未关闭Bug javascript
难度 2/5 1-3 小时 新手友好度 76/100
getsentry/sentry-javascript#25801 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 getsentry/sentry-javascript 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
bytedance/flowgram.ai#1235 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
devswha/herdr-web-ui#3325 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
desktop v3 windows
难度 2/5 1-3 小时 新手友好度 75/100
esengine/DeepSeek-Reasonix#15016 · 1 条评论 ·
维护者通常 1 天内回复