Share one loaded editor across the read-only VS Code e2e tests
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đá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
- 45/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript, vscode
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 3.3k
- Fork
- 471
- Merge trung bình
- 6 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 35
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- 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 SQLMesh/sqlmesh
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
SQLMesh/sqlmesh#6008 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
VSCode Extension: SQLMesh LSP crashes on startup: ImportError: cannot import name 'WorkspaceDiagnosticRefreshRequest' with lsprotocol 2025.xCó thể đã có người làm @boomesh11 đã nhận 15 ngày trước. Đang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Improvement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
SQLMesh/sqlmesh#5696 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của SQLMesh/sqlmesh
Issue tương tự
-
[BUG][Low–Medium] founder_numbers.py silently reads a SAFE discount or pool target given as a fraction (0.2) as 0.2%Có thể đã có người làm @sumitkhond111-del đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bmad-code-org/BMAD-METHOD#3358 · 1 bình luận ·
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 86/100
open-mmlab/mmcv#3352 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
OpenGithubs/weekly#263 ·
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 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
comp/cli P3 type/feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
NousResearch/hermes-agent#162784 ·
Maintainer thường phản hồi trong vòng 1 ngày