Spike: async Rust and async-process for the git and gh process layer
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start with crates/review-core/src/review/github.rs, where the gh pull-request lookup runs with a deadline and reader threads, and read CLAUDE.md for the synchronous-core rule. This is a spike: the outcome is a comparison of async-process against a tokio alternative on the gh lookup, not a merged rewrite. Done means a written result on line count, API spread and binary-size cost, with an ADR if the core is to become async.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A spike, for later: try async Rust for the process and I/O layer, and adopt it only if the code gets simpler or gains something concrete.
Why
The engine spawns git and gh and waits on them. Some of that code is hand-rolled around blocking calls: the pull-request lookup runs gh with a deadline and threads that read its pipes (crates/review-core/src/review/github.rs), and a capture that is out of date runs its git commands to the end because nothing can cancel them. Async processes give timeouts, pipe draining and cancellation by dropping a future.
The design work for #19 concluded that async does not fix its refusals or blocking, so this is separate from it.
Try
async-process(runtime-agnostic, so it runs on gpui's executor in review-gui) with a lightweight executor such assmolin review-tui and the CLI, and tokio as the alternative to compare.- Start with the
ghlookup, then a capture's git commands with cancellation of a superseded capture. - Keep CPU work (analysis, diffing, tree-sitter) and the event log's lock and appends synchronous; an append must run to a known outcome.
Decide
- Lines and concepts removed or added, and how readable the result is.
- Whether async spreads into review-core's public API; CLAUDE.md requires a synchronous core, so making it async needs an ADR that revisits that rule.
- Dependency and binary size cost, and whether embedders would inherit a runtime.
- Ngôn ngữ chính
- Rust
- Star
- 1
- Fork
- 0
- Merge trung bình
- 2 giờ 16 phút
- Pull request đã merge (30 ngày)
- 54
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 romnn/code-review
-
blocked
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
romnn/code-review#89 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Light-theme screenshots have a gray halo around their rounded cornersCó thể đã có người làm @romnn đã nhận hôm nay. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
romnn/code-review#94 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
blocked enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
romnn/code-review#93 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Reshape the README to show before it tellsCó thể đã có người làm @romnn đã nhận hôm nay. Đang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
romnn/code-review#84 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Show off more of cr's features in README screenshotsCó thể đã có người làm @romnn đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
romnn/code-review#47 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của romnn/code-review
Issue tương tự
-
[BUG] kaku 默认 git alias 为 g 的问题。Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
clipy-recorder/clipy#695 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TypeScript BM25 drops supplementary characters at the token length limitCó thể đã có người làm @ErenAta16 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
chroma-core/chroma#8038 ·
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 82/100
-
ESP32: backport #6488 (torn LACT counter read in `time::implem::raw_counter`) to esp-hal 1.2.xĐang mởbug jury chip:esp32
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày