Skip to content

設計(PLAN67): base イメージに shellcheck を入れる (#249) - #250

Merged
takemi-ohama merged 2 commits into
mainfrom
design/plan67-shellcheck
Sep 23, 2026
Merged

takemi-ohama merged 2 commits into
mainfrom
design/plan67-shellcheck

Conversation

@takemi-ohama

@takemi-ohama takemi-ohama commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

決めたこと

issues/PLAN67_base-shellcheck-design.md

  • 決定 1: shellcheck は、1 つ目の RUN の 1 回目の apt-get install の一覧へ足す
  • 決定 2: 入れ損ないは、版の確認の RUN へ shellcheck --version を足して止める
  • 決定 3: 版は固定せず、Ubuntu のアーカイブが配る版を入れる
  • 決定 4: 回帰テストは Docker を使わない文字列検査だけにし、イメージの中は手で確かめる
  • 決定 5: containers/lfm には入れない

Test plan

  • 手元の devbase-base:latest(arm64 / Ubuntu 26.04.1)から作った一時コンテナで apt-get install -y --no-install-recommends shellcheck が install_exit=0、新しく入るのは shellcheck / libnuma1 の 2 つ
  • 同じコンテナで shellcheck --version が exit=0(version: 0.11.0)、echo $foo の 1 行で SC2086 を出し exit=1
  • containers/*/Dockerfile の FROM を確認し、base を継ぐ派生イメージが 7 つ、lfm / snapshot は継がないことを確認
  • 設計文書の内部の突き合わせ(受け入れ条件 ↔ テスト設計、構成要素 ↔ 処理の流れ、決定で退けた案が他の節に残っていないこと)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

@takemi-ohama takemi-ohama left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 cross-review | round 1 | agy | REQUEST_CHANGES

docs/user/container-operations.md への配置見直し(既存の「文字の描画と、文書を扱う道具」節および base-image-rendering.md との分離、およびイメージ一覧表の更新)と、test_base_dockerfile_shellcheck.py で 1 回目の apt-get install を厳密に識別して固定するための補助関数の見直しを提案します。

Comment thread issues/PLAN67_base-shellcheck-design.md Outdated
Comment thread issues/PLAN67_base-shellcheck-design.md Outdated

@takemi-ohama takemi-ohama left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 cross-review | round 1 | kiro | REQUEST_CHANGES

PLAN67 の要求・設計は Dockerfile / CI / 既存テストの実態と整合し、内部の相互参照も解決する。1 点、受け入れ条件 6 の「新しく入るのは 2 パッケージ」という断定が、そこに列挙された検証手順では反証できない(第三の依存が混ざっても検出されない)。検証手順を new-package 集合の列挙へ寄せることを提案する。

Comment thread issues/PLAN67_base-shellcheck.md
- container-operations.md は独立した小節「Bash の静的検査(base 以降)」を立て、
  イメージの詳細の表の base の「主な内容」にも shellcheck を足す
- 新しいテストの補助関数に _first_apt_install を加える
- 受け入れ条件 6 は apt-get install -s の Inst 行で新規の集合そのものを列挙して確かめる

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@takemi-ohama

Copy link
Copy Markdown
Contributor Author

🔧 /ndf:fix サマリ | round 1 | commit 4cbb1b8

対応件数: critical=0 / major=0 / minor=3(合計 3 件)
決着: 3 件 / 見送り: 0 件 / 却下: 0 件
CI: SUCCESS

@takemi-ohama takemi-ohama left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 cross-review | round 2 | codex | APPROVE

修正を求める指摘はありません。

@takemi-ohama takemi-ohama left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 cross-review | round 2 | kiro | APPROVE

PLAN67 設計/計画文書の追記位置・テスト補助関数・検証手順の記述を精緻化する docs-only PR。行番号(base 行=366、節=375〜419)・節名・参照する既存テスト補助関数 _first_apt_install の意味論はいずれも現行ファイルと一致しており、修正を要する不整合は見つからなかった。

@takemi-ohama

Copy link
Copy Markdown
Contributor Author

🔧 /ndf:fix サマリ | commit (なし)

対応件数: critical=0 / major=0 / minor=0(合計 0 件)
決着: 0 件 / 見送り: 0 件 / 却下: 0 件
CI: NONE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant