docker-to-squash.py: get_working_dir creates a new directory on every call, so push-update cannot find pulled images

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

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

@linzch3 がすでに取り組んでいます。

2026年11月20日 から。

  • #9295 @linzch3 による — オープン
  • #9298 @ToniAdreal による — マージされずにクローズ

評価

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

調査の方向性

bin/docker-to-squash.py の get_working_dir(239–246 行)から始め、pull-build と push-update からの呼び出しを追って、作業ディレクトリがどのように再利用されるかを確認します。複数のイメージでデフォルトの --working-dir dts-work-dir を使って再現します。繰り返しの呼び出しでそのディレクトリが再利用され、後続の push-update が pull-build によって残されたイメージを見つけられれば完了です。

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

説明

get_working_dir always creates a new directory instead of reusing the working directory: if dts-work-dir does not exist yet it creates it, and if it already exists it creates dts-work-dir/docker-to-squash.

Storm 3.3.0-SNAPSHOT (master 4fca209). Reproduced with Python 3.9.

Starting with no working directory, the first call creates dts-work-dir, the second creates dts-work-dir/docker-to-squash, and the third fails with [Errno 17] File exists.

Expected: every call with the default --working-dir dts-work-dir reuses dts-work-dir, so pull-build and a later push-update look for images in the same place.

Actual: pull-build calls get_working_dir once per image, so it puts each image in a different directory and fails on the third image. push-update looks under the new directory and never finds what pull-build left behind (skopeo_dir doesn't exists: dts-work-dir/docker-to-squash/ubuntu:22.04, while the image is in dts-work-dir/ubuntu:22.04).

Follow-up from the review discussion in #9284 ʕ•ᴥ•ʔ

主要言語
Java
スター
6.7k
フォーク
4k
平均マージ
1日 5時間
マージ済み PR(30日)
86

環境構築

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

はじめの一歩

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

apache/storm のほかの issue

apache/storm の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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