bench/api.sh exec test fails with curl exit 52, and --ignore-failure still records the timings

オープン 初心者向け
#669 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, shell
領域
tooling

調査の方向性

bench/api.sh を開き、hyperfine --ignore-failure の下で実行され、AttachStdout 付きで exec start body を POST する exec ステップを見つけてください。WSL2 の Kiri Unix ソケットに対してそのステップだけを実行し、curl の終了コードを確認して失敗を確かめます (52 = empty reply on the upgraded stream)。報告者の workaround は、exec start body に {"Detach":true} を送り、--ignore-failure を外すことで、失敗した実行を時間計測ではなく報告させることです。完了とは、20 回のイテレーションがすべて通り、意図的な失敗がエラーでベンチマークを停止することを意味します。

索引モデルが issue の本文から書いたものです。

説明

bug
Kiri version and system

Kiri 0.2.1, Windows 11, daemon inside WSL2 (Unix socket)

What you did

Ran the unmodified bench/api.sh against Kiri's Unix socket inside WSL2: 3 warmup + 20 runs.

What happened
All 20 exec iterations fail with curl exit 52. Kiri returns HTTP 101 UPGRADED (AttachStdout:true, exec start body {}), but curl does not complete the upgraded stream.

Because the exec step runs under `hyperfine --ignore-failure`, these failed runs are still timed, so the "API exec" number may measure time-to-failure, not a completed exec.
What you expected instead

The exec step completes successfully, or, if it fails, the benchmark reports the failure instead of timing it.

Anything else

Workaround: sending {"Detach":true} in the exec start body makes all 20 iterations pass (median 27.45 ms, p95 35.21 ms).
Suggestion: use Detach:true (or handle the upgraded stream) and drop --ignore-failure for this step.
bench/api.sh is unchanged on main as of today.

主要言語
Rust
スター
7.5k
フォーク
329
平均マージ
14時間 18分
マージ済み PR(30日)
204

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

libracoder/kiri のほかの issue

libracoder/kiri の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。