Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

subprocess stderr should be captured and reported

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
git, python
領域
cli

調査の方向性

トレースバックに示されている subprocess.run ラッパーと、git push をトリガーする README のワークフローから始めます。4 ブランチの push を再現し、その後、失敗レポートに stderr のリモート拒否が含まれていることを確認します。

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

説明

My very first use of stack-pr. Previously I would manage stacks quite manually. I followed the README precisely and got the error

Updating remote branches
Exitcode: 1
Stdout: None
Stderr: None
Traceback ...
 ...
    return subprocess.run(list(map(str, cmd)), **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 573, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'push', '-f', 'origin', 'frank-reve/stack/1:frank-reve/stack/1', 'frank-reve/stack/2:frank-reve/stack/2', 'frank-reve/stack/3:frank-reve/stack/3', 'frank-reve/stack/4:frank-reve/stack/4']' returned non-zero exit status 1.

When I run the git push command by hand, I get an error response. So the report from stack-pr that Stdout and Stderr is empty, seems wrong. I'm not sure if the error I get manually is stdout or stderr. The error is

remote: - Pushes can not update more than 3 branches or tags.

It would have been pretty valuable to see that right in the stack-pr output.

主要言語
Python
スター
569
フォーク
43
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

modular/stack-pr のほかの issue

modular/stack-pr の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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