stage 2 cannot review the first bash call of a session

Aperta
#259 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli, security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
1
Fork
1
Merge medio
49m
PR unite (30g)
82

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di STRML/omp-classifier

Tutte le issue di STRML/omp-classifier

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.