Queue-command check: a quoted ssh remote command with a pipe is read as the queue command

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

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

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

評価

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

調査の方向性

arc/scheduler.pyから始めてunwrap_queue_commandを読み、既存のパイプと||のチェックが;で区切られたリストの最後のコマンドをどう扱うかを追ってください。説明にある2つのSSHコマンドで問題を再現してください。パイプを含む引用符付きのリモートコマンドでは警告が発生し、パイプを含まない引用符付きのsqueueコマンドでは警告が発生しなければ完了です。

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

説明

unwrap_queue_command (arc/scheduler.py, from #1093) reads a ; list whose last command is ssh <host> <remote command>. When the remote command is one quoted word that holds a pipe, for example ssh login1 "squeue -u $USER | grep x", the word is split and read as a queue command, so the list passes the check. The pipe inside the quotes is never seen, and the exit status is grep's, not squeue's. This was also missed before #1093.

Fix: when ssh carries a single quoted remote word, lex that word again with the same rules, and apply the pipe and || checks to it. Test: module load slurm; ssh login1 "squeue -u $USER | grep x" gets the warning, and ssh login1 'squeue -u $USER' does not.

Raised in review of #1093 (2026-11-28).

主要言語
Python
スター
55
フォーク
26
平均マージ
7日 8時間
マージ済み PR(30日)
12

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

ReactionMechanismGenerator/ARC のほかの issue

ReactionMechanismGenerator/ARC の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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