Skip to content

fix: automated library refresh - #737

Merged
keito4 merged 6 commits into
mainfrom
fix/auto-library-update
May 12, 2026
Merged

fix: automated library refresh#737
keito4 merged 6 commits into
mainfrom
fix/auto-library-update

Conversation

@claude

@claude claude Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Automated update generated by npm run update:libs (Auto Update Libraries scheduled workflow - failed to create PR due to GitHub Actions token permissions).

Updated Packages

Global CLI Packages (npm/global.json)

  • @commitlint/cli: 20.5.2 → 21.0.0
  • @commitlint/config-conventional: 20.5.0 → 21.0.0
  • @openai/codex: 0.125.0 → 0.130.0
  • @google/gemini-cli: 0.39.1 → 0.41.2
  • happy-coder: 0.13.1 → 1.1.8
  • typescript-language-server: 5.1.3 → 5.2.0
  • yaml-language-server: 1.22.0 → 1.23.0
  • difit: 4.0.4 → 4.0.7
  • n8n: 2.17.7 → 2.19.5
  • npm: 11.13.0 → 11.14.1
  • pm2: 6.0.14 → 7.0.1
  • vercel: 52.0.0 → 53.3.2

NPM Dev Dependencies (package.json)

  • @commitlint/config-conventional: ^20.5.3 → ^21.0.0
  • jest: 30.3.0 → 30.4.2

Note: @commitlint/config-conventional is also being updated by PR #732. These PRs overlap — whichever merges first, the other will need a minor rebase.

Root Cause of Workflow Failure

The Auto Update Libraries scheduled workflow (run) failed at the "Create pull request" step with:

GitHub Actions is not permitted to create or approve pull requests.

This is a repository-level setting: Settings → Actions → General → Workflow permissions → "Allow GitHub Actions to create and approve pull requests" must be enabled, or a PAT token should be used instead of GITHUB_TOKEN in update-libraries.yml.

Test plan

  • Verify CI passes on this PR
  • Review npm/global.json version bumps for any breaking changes (especially pm2: 6→7, happy-coder: 0.13→1.1)

🤖 Created by Claude to address failed Auto Update Libraries workflow

@claude
claude Bot requested a review from keito4 as a code owner May 11, 2026 06:10
@claude claude Bot added the dependencies 依存関係の更新 label May 11, 2026
@keito4 keito4 self-assigned this May 11, 2026
@keito4

keito4 commented May 11, 2026

Copy link
Copy Markdown
Owner

(aside)
@claude PRがbaseにマージする際にCIが落ちています。
修正してください。

@claude

claude Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Claude finished @keito4's task in 4m 11s —— View job


CI失敗の修正完了

  • CI失敗の状況を確認
  • 失敗原因を特定
  • 修正を実施
  • プッシュ完了

根本原因

happy-coder パッケージは非推奨になり、happy パッケージにリネームされました。自動更新スクリプトが新しい happy パッケージのバージョン 1.1.8 を誤って happy-coder@1.1.8 として設定したため、存在しないバージョンをインストールしようとしてDockerビルドが失敗していました。

修正内容

ファイル 変更内容
npm/global.json "happy-coder" キー → "happy" キーにリネーム(バージョン 1.1.8 を維持)
.devcontainer/Dockerfile happy-coder@${HAPPY_CODER_VERSION}happy@${HAPPY_VERSION} に更新
script/install-npm-globals.sh インストール対象を "happy-coder""happy" に更新

補足

  • happy-coder の最終バージョンは 0.13.1(それ以降は happy パッケージに移行)
  • happy@1.1.8 が正しいパッケージ名・バージョン
  • コミット: 86dcdb0
    | Branch

happy-coderパッケージは非推奨となりhappyにリネームされた。
自動更新スクリプトが存在しないhappy-coder@1.1.8(happyパッケージの
バージョン)を設定したためDockerビルドが失敗していた。

- npm/global.json: happy-coder → happy キーをリネーム
- .devcontainer/Dockerfile: パッケージ参照をhappy-coder → happyに更新
- script/install-npm-globals.sh: インストール対象をhappy-coder → happyに更新

Co-authored-by: keito4 <keito4@users.noreply.github.com>
@keito4

keito4 commented May 11, 2026

Copy link
Copy Markdown
Owner

(aside)
@claude PRがbaseにマージする際にCIが落ちています。
修正してください。

@claude

claude Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

CI修正作業中

  • CI失敗の状況を確認
  • 失敗原因を特定
  • 修正を実施(package-lock.json 同期: commit d6e5190
  • CIを再トリガー(PR close/reopen によりイベント再発火)
  • CI完了確認

現在の状況

PR close/reopen により新しいCIがトリガーされました:

ワークフロー 状態
CI Fallback (Quality Gate) ✅ success
Claude Code Review ✅ success
Dependabot Auto-merge ✅ success
Container Security Scan ⏳ 実行中
Security Scans ⏳ 実行中
CI ⏳ 実行中

Container Security Scan が現在実行中です。happy@1.1.8 のDockerビルドが成功するか確認中...

背景

  • 前回の修正(commit 86dcdb0)はDockerfileの happy-coderhappy 変換を正しく実施
  • しかし bot(GITHUB_TOKEN)によるpushは pull_request イベントをトリガーしない というGitHubの制約により、新しいCIが起動しなかった
  • package-lock.json を同期するcommit(d6e5190)をpushした上でPR close/reopenを実施してCI再トリガー

View job run | Branch

npm installを再実行してpackage-lock.jsonを最新状態に同期。
オプショナルなplatform固有パッケージの不要なlibcフィールドを削除。

Co-authored-by: keito4 <keito4@users.noreply.github.com>
@claude claude Bot closed this May 11, 2026
@claude claude Bot reopened this May 11, 2026
@keito4

keito4 commented May 11, 2026

Copy link
Copy Markdown
Owner

(aside)
@claude PRがbaseにマージする際にコンフリクトが発生しています。最新のbaseからpullし、修正してください。

@claude

claude Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Claude finished @keito4's task in 6m 19s —— View job


コンフリクト解決完了

  • 現在の状況確認
  • 最新の main ブランチをマージ
  • コンフリクトを解決
  • コミット・プッシュ(commit: 5620460

解決内容

コンフリクトが発生していたファイル:

ファイル 競合の内容 解決方針
npm/global.json main: happy-coder@1.1.8(旧キー名)/ 当ブランチ: happy@1.1.8(正しいパッケージ名) 当ブランチの happy キーを保持
.devcontainer/Dockerfile main: pnpm setup削除 + CLAUDE_CODE_VERSION更新 / 当ブランチ: happy-coder→happy変更 両方の変更をすべてマージ

mainから取り込んだ変更:

  • .devcontainer/Dockerfile: pnpm setup を削除(EACCES エラー修正)、CLAUDE_CODE_VERSION2.1.1372.1.138 に更新
  • .github/workflows/security.yml: dependency-review-action を v5.0.0 のハッシュに更新

当ブランチの変更を維持:

  • npm/global.json: "happy" キー(happy-coder ではなく)
  • script/install-npm-globals.sh: happy パッケージ名
  • package.json + package-lock.json: ライブラリ更新
    | Branch

- pnpm setupのEACCESエラー修正をmainから取り込み
- CLAUDE_CODE_VERSION 2.1.137 → 2.1.138 に更新
- dependency-review-action ハッシュを最新に更新
- happy-coder → happy パッケージ移行を維持(our branch変更)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@keito4

keito4 commented May 11, 2026

Copy link
Copy Markdown
Owner

(aside)
@claude PRがbaseにマージする際にコンフリクトが発生しています。最新のbaseからpullし、修正してください。

@claude

claude Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Claude finished @keito4's task in 4m 36s —— View job


コンフリクト解決完了

  • 状況確認
  • 最新の main ブランチを取得(7コミット先行)
  • コンフリクトを解決
  • コミット・プッシュ(commit: b2be84e

解決内容

コンフリクトが発生していたファイル:

ファイル 競合の内容 解決方針
npm/global.json main: happy-coder@1.1.8(キー名そのまま)/ 当ブランチ: happy@1.1.8(正しいパッケージ名) 当ブランチの happy キーを保持
.devcontainer/Dockerfile 両ブランチが同様の変更を行っていた git が自動マージ(コンフリクトなし)

mainから取り込んだ変更(PR #738):

  • npm/global.json: グローバルCLIライブラリの最新バージョンへの更新(我々の変更と重複する部分は当ブランチが正しいため維持)
  • .devcontainer/Dockerfile: pnpm setup 削除・CLAUDE_CODE_VERSION 更新(両ブランチで同じ変更)

当ブランチの変更を維持:

  • npm/global.json: "happy" キー(非推奨の happy-coder ではなく正しいパッケージ名)
  • script/install-npm-globals.sh: happy パッケージ名
  • package.json + package-lock.json: ライブラリ更新
    | Branch

@keito4

keito4 commented May 12, 2026

Copy link
Copy Markdown
Owner

(aside)
@claude PRがbaseにマージする際にCIが落ちています。
修正してください。

@claude

claude Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

Claude finished @keito4's task in 14m 36s —— View job


CI修正完了 ✅

  • CI失敗の状況を確認
  • 失敗原因を特定
  • 修正を実施(CI再トリガーコミット: 6485983
  • CI完了確認 — 全チェック✅ パス

結果

すべてのCIチェックが正常にパスしました。

ワークフロー 状態
CI ✅ success
Container Security Scan ✅ success
Security Scans ✅ success
Claude Code Review ✅ success
CI Fallback ✅ success
Dependabot Auto-merge ✅ success

根本原因と修正内容

問題: 前回の2コミット(5620460, b2be84e)はGITHUB_TOKEN(bot)によってpushされたため、GitHubの仕様上 pull_request イベントがトリガーされず、CIが起動していませんでした。その結果 mergeStateStatus: BLOCKED になっていました。

修正: 空コミット(6485983)を追加後、PR close/reopenを実施してCIを再トリガーしました。コード自体に変更はなく、テスト・lint・フォーマットチェックはすべてパスしていました。
| Branch

Co-authored-by: keito4 <keito4@users.noreply.github.com>
@claude claude Bot closed this May 12, 2026
@claude claude Bot reopened this May 12, 2026
@keito4
keito4 merged commit 28ab19f into main May 12, 2026
20 checks passed
@keito4
keito4 deleted the fix/auto-library-update branch May 12, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.112.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released リリース済み label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies 依存関係の更新 released リリース済み

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant