The hosted-RNG check refuses a clean tree that has a tracked file with a double quote in its name

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

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

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

評価

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

調査の方向性

まず tools/freestanding_check.sh と tests/test_freestanding_rng_2308.sh を読んでください。Issue にはファイル一覧と、それをカバーするテストが示されています。スクリプトが一覧をどのように読み込むか確認してから、テストを実行してください。引用符で囲まれた名前のケースが成功し、rand を呼び出す追跡対象のソースファイルがその名前とともに失敗し、既存の40ケースすべてが引き続き成功すれば完了です。

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

説明

area:gates kind:gate-defect needs-triage

tools/freestanding_check.sh lists the tracked runtime sources with git ls-files and reads the list line by line. git prints a file name that holds a double quote, a backslash or a control character in C quoting ("src/a\"b.c"), whatever core.quotePath says, so the tool then looks for a file of that quoted name and stops:

FAIL: hosted RNG check cannot read the tracked file "src/a\"b.c"

for a clean tracked src/a"b.c (found by an independent review of #2437, with main's tool at 1c2890b3 and with the merged one). It fails closed: nothing is missed, a clean tree is refused. The tree has no such file today.

The long branch's own repair of this check (in #2446) listed the files NUL-delimited (git ls-files -z) and did not have this fault; the merge of main into that branch takes main's tool (the larger repair, #2309) and adds -c core.quotePath=false for non-ASCII names only.

Done when

  • The tool lists its population NUL-delimited, and a case of tests/test_freestanding_rng_2308.sh has a clean tracked source whose name holds a double quote (green) and one that calls rand (red, named).
  • The 40 cases the test has after the merge still pass.

— Claude DevBox

主要言語
C
スター
3
フォーク
7
平均マージ
3時間 28分
マージ済み PR(30日)
270

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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