Spike: async Rust and async-process for the git and gh process layer
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 1
- Forks
- 0
- Merge medio
- 2 h 16 min
- PR fusionados (30 d)
- 54
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de romnn/code-review
-
blocked
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
romnn/code-review#89 ·
Los mantenedores suelen responder en 1 día
-
Light-theme screenshots have a gray halo around their rounded cornersPosiblemente ocupada @romnn la tomó hoy. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
romnn/code-review#94 ·
Los mantenedores suelen responder en 1 día
-
blocked enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
romnn/code-review#93 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Reshape the README to show before it tellsPosiblemente ocupada @romnn la tomó hoy. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
romnn/code-review#84 ·
Los mantenedores suelen responder en 1 día
-
Show off more of cr's features in README screenshotsPosiblemente ocupada @romnn la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
romnn/code-review#47 ·
Los mantenedores suelen responder en 1 día
Todos los issues de romnn/code-review
Issues similares
-
[BUG] kaku 默认 git alias 为 g 的问题。Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
clipy-recorder/clipy#695 ·
Los mantenedores suelen responder en 1 día
-
TypeScript BM25 drops supplementary characters at the token length limitPosiblemente ocupada @ErenAta16 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
chroma-core/chroma#8038 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
ESP32: backport #6488 (torn LACT counter read in `time::implem::raw_counter`) to esp-hal 1.2.xAbiertobug jury chip:esp32
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día