stage 2 cannot review the first bash call of a session

オープン
#259 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
cli, security

調査の方向性

Start by reading inspectShellSession and the shellSessions handling in the host code; the issue says the fix requires a fork change and fork sync. Reproduce the first-call path where inspection returns undefined, then check that stage 2 can review the command using the session shell or its starting environment. Done means the first bash call can be reviewed without being blocked solely because no shell exists yet.

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

説明

The first bash call of a session skips stage 2: inspectShellSession returns undefined while shellSessions is empty, so there is no shell to read PATH or aliases from.

call 1  tar -xf a.tar -C out   ─▶ stage 1 UNSURE ─▶ stage 2 skipped ("no shell yet") ─▶ blocked
call 2  ls out                 ─▶ SAFE, shell now exists
call 3  tar -xf a.tar -C out   ─▶ stage 1 UNSURE ─▶ reviewer allows ─▶ runs

Seen in the live run for https://github.com/STRML/omp-classifier/issues/258: the same tar was blocked as call 1 ("skipped":"the session's shell cannot be inspected (no shell yet, or it is busy)") and ran as a later call.

Fix is on the host: inspectShellSession would create the session shell for the key when none exists, or report the env it would start with. It needs a fork change and a fork-sync.

主要言語
TypeScript
スター
1
フォーク
1
平均マージ
49分
マージ済み PR(30日)
82

環境構築

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

はじめの一歩

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

STRML/omp-classifier のほかの issue

STRML/omp-classifier の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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