Share one loaded editor across the read-only VS Code e2e tests
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript, vscode
- 领域
- testing-qa
调研方向
Start with find_references.spec.ts and the openServerPage helper it calls, then check how go_to_definition.spec.ts, hints.spec.ts, completions.spec.ts and the default lineage test copy examples/sushi and open pages. Share one copied sushi directory and one loaded page across the read-only tests, resetting the references panel and cursor between them, while tests that write files or stop the server keep their own. Done when those read-only files open the editor once, the mutating tests still get a fresh page, and find_references.spec.ts runs noticeably faster.
由索引模型根据 Issue 内容生成。
描述
Why this exists
find_references.spec.ts runs 13 tests serially in one Playwright worker, and each test copies examples/sushi and calls openServerPage. That call loads a new browser page, which reloads the VS Code workbench and starts a new sqlmesh_lsp before the test clicks around a model.
None of those tests write a file, and go-to-definition, hints, completions, and the default lineage test do the same read of sushi.
The code-server process is already shared per worker, while the workbench and the loaded SQLMesh context are not. Sharing the temp directory only saves the sushi copy, which is a few seconds. Sharing the page removes 12 reloads of 21–39 seconds each, about five minutes off that file, and the CI job will get shorter by that amount when this file is the one the other workers are waiting on.
This is separate from the virtualenv work in #6098, because these tests already use the repo .venv.
What to change
Copy sushi once and open it once in find_references.spec.ts, go_to_definition.spec.ts, hints.spec.ts, completions.spec.ts, and the default lineage test. Tests that write files, stop the server, or assert on their own virtualenv should keep a fresh directory and a fresh page, and a shared page needs its references panel and cursor reset between tests.
Done when
- Those read-only files load the editor once, the mutating tests still get their own page, and
find_references.spec.tspasses several minutes faster.
- 主要语言
- Python
- 星标
- 3.3k
- 派生
- 471
- 平均合并
- 6 天 7 小时
- 30 天内合并 PR
- 35
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SQLMesh/sqlmesh 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
SQLMesh/sqlmesh#6008 · 1 条评论 ·
维护者通常 4 天内回复
-
VSCode Extension: SQLMesh LSP crashes on startup: ImportError: cannot import name 'WorkspaceDiagnosticRefreshRequest' with lsprotocol 2025.x可能已有人在做 @boomesh11 于 15 天前认领。 未关闭Bug
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 4 天内回复
-
Improvement
难度 1/5 1 小时以内 新手友好度 85/100
SQLMesh/sqlmesh#5696 · 6 条评论 ·
维护者通常 4 天内回复
相似的 Issue
-
[BUG][Low–Medium] founder_numbers.py silently reads a SAFE discount or pool target given as a fraction (0.2) as 0.2%可能已有人在做 @sumitkhond111-del 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
bmad-code-org/BMAD-METHOD#3358 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
open-mmlab/mmcv#3352 ·
-
难度 1/5 1 小时以内 新手友好度 68/100
OpenGithubs/weekly#263 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
comp/cli P3 type/feature
难度 2/5 1-3 小时 新手友好度 76/100
NousResearch/hermes-agent#162784 ·
维护者通常 1 天内回复