stage 2 cannot review the first bash call of a session

Aberta
#259 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
42/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
cli, security

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
1
Forks
1
Merge médio
49min
PRs com merge (30d)
82

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de STRML/omp-classifier

Todas as issues de STRML/omp-classifier

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.