Skip to content

fix: dashboard の pnpm を公式イメージから入れ、pnpm 12 に上げてバージョン指定を packageManager に一本化する - #1472

Merged
pirosiki197 merged 3 commits into
mainfrom
chore/pnpm-version-source
Nov 1, 2026
Merged

pirosiki197 merged 3 commits into
mainfrom
chore/pnpm-version-source

Conversation

@pirosiki197

@pirosiki197 pirosiki197 commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

なぜやるか

  • Node.js 26 から corepack が同梱されなくなり、dashboard/Dockerfile の RUN corepack enable が失敗する。そのため chore(deps): update node.js to v26 #1469(Node 26 への更新)の Build preview images が落ちている。
  • pnpm のバージョンが mise.toml(11.28.10)と dashboard/package.json の packageManager(11.28.0)の 2 か所に書かれていて、すでに食い違っている。pnpm 11 以降は実行中のバージョンが packageManager と違うと宣言側をダウンロードして使う(pmOnFail の既定値 download)ので、実際に効いているのは packageManager だけ。

やったこと

  • dashboard/Dockerfile:pnpm 公式の推奨どおり、ghcr.io/pnpm/pnpm:12 から /opt/pnpm をコピーする方式にした
    • イメージは pnpm を用意するための入口でしかないので、タグはメジャーだけにした
  • pnpm を 12.15.0 に上げた(chore(deps): update pnpm to v12 #1383 と同じ内容)
    • pnpm 11 の単体バイナリは libatomic.so.1 を必要とし、node:*-slim には入っていないため apt が要る。pnpm 12 のバイナリは不要なので、apt なしで済む
    • 12.16 以降はリリースから 7 日経っておらず、npm の minimumReleaseAge に引っかかるので 12.15.0 にした
  • mise.toml:pnpm = "12" にした(入口なのでメジャーだけ)
  • renovate.json:pnpm のメジャー更新は package.json・mise.toml・Dockerfile の 3 か所をまとめて上げる必要があるので、1 つのグループにした

ローカルでの確認:

  • pnpm run ci・pnpm typecheck・pnpm test が通る
  • docker buildx build --target prod が通り、using pnpm v12.15.0 と出る(イメージの pnpm は 12.17.0。packageManager のバージョンに切り替わっている)
  • ベースを node:26-slim に差し替えても同じくビルドが通る
  • renovate-config-validator が通る

やらなかったこと

closes #1383

資料

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0c8a01e8-064f-4e3c-a7da-3ce1366a6991
Commits

Reviewing files that changed from the base of the PR and between e25a007 and 7dcc647.

Files selected for processing: 3
  • dashboard/Dockerfile
  • mise.toml
  • renovate.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

pnpmのブートストラップ設定を変更しました。Dockerfileはpnpm 11イメージからバイナリを取得し、mise.tomlはpnpmのメジャーバージョンを指定します。Renovateでは、pnpm関連のメジャー更新をグループ化します。

Changes: pnpmのバージョン管理

Layer / File(s) Summary
pnpmのブートストラップ設定
mise.toml, dashboard/Dockerfile
mise.tomlのpnpm指定を11に変更しました。Dockerfileはpnpm 11イメージからバイナリを取得し、pnpmとpnpxのリンクを作成します。
Renovateの更新グループ
renovate.json
pnpmとghcr.io/pnpm/pnpmのメジャー更新を、pnpm majorグループにまとめるルールを追加しました。

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: motoki317

Merge Risk: Minimal · up to 7dcc6

The PR is mergeable with normal validation.

Pre-merge checks: Passed 4
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed タイトルは公式イメージの使用とpackageManagerへのバージョン指定集約を示しており、変更内容に関連します。ただし、変更サマリーではpnpm 11のままであり、「pnpm 12に上げて」は実際の変更と一致しません。
Description check Passed 説明にはテンプレートの「なぜやるか」「やったこと」「やらなかったこと」「資料」がすべて含まれています。テスト結果と変更目的も記載されています。ただし、説明ではpnpm 12への更新を記載している一方、変更サマリーではpnpm 11のままです。
Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Preview (prod backend + PR dashboard) → https://1472.ns-preview.trapti.tech/

pirosiki197 and others added 3 commits November 1, 2026 19:39
…ad of corepack

Node.js 26 no longer bundles corepack, so `corepack enable` fails on the
Node 26 base image. Copying pnpm from ghcr.io/pnpm/pnpm is the method pnpm
recommends; the copied pnpm switches to the version in packageManager, so
the image tag only needs the major version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pm version

pnpm switches to the version in packageManager whenever the running version
differs, so the exact version in mise.toml was never used and had already
drifted from package.json. Pin only the major in mise.toml and group the
pnpm major updates so the three places move together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pnpm 11 standalone binary links against libatomic, which node slim
images lack, so the Dockerfile had to install it with apt. The pnpm 12
binary no longer needs it. 12.15.0 is the newest release that satisfies
the 7-day minimum release age.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pirosiki197
pirosiki197 force-pushed the chore/pnpm-version-source branch from 7dcc647 to af04b10 Compare November 1, 2026 10:39
@pirosiki197 pirosiki197 changed the title fix: dashboard の pnpm を corepack ではなく公式イメージから入れ、バージョン指定を packageManager に一本化する fix: dashboard の pnpm を公式イメージから入れ、pnpm 12 に上げてバージョン指定を packageManager に一本化する Nov 1, 2026
@pirosiki197
pirosiki197 merged commit b2943b4 into main Nov 1, 2026
23 checks passed
@pirosiki197
pirosiki197 deleted the chore/pnpm-version-source branch November 1, 2026 10:47
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