Repository navigation
chore(ruby): move the mesh-v2 lambda and ruby images to ruby 4.0 - #1265
Merged
Merged
Conversation
- mesh-v2: .ruby-version 4.0.9, standardrb target 4.0, Lambda runtime ruby4.0 (spelled out because aws-cdk-lib 2.232.1 has no RUBY_4_0) - infra/Dockerfile: Ruby 4.0.9; ruby/smalruby3/Dockerfile: ruby:4.0-slim-bookworm - docs and rules: Ruby 3.4 -> 4.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🚀 Preview deployed: https://smalruby.jp/smalruby3-editor/security/ruby-4.0/ |
|
🚀 stg にデプロイしました:
stg は共有環境です。この SHA が載っている前提で 動作確認してください。
|
Author
stg での確認結果
人間のレビューをお願いします。 🤖 Generated with Claude Code |
takaokouji
approved these changes
Oct 30, 2026
|
🚀 stg にデプロイしました:
stg は共有環境です。この SHA が載っている前提で 動作確認してください。
|
Author
DoD(stg・Ruby 4.0)
人間の承認とあわせ、develop にマージして prod に出します。 🤖 Generated with Claude Code |
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 30, 2026
…y-4.0 chore(ruby): move the mesh-v2 lambda and ruby images to ruby 4.0
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
リポジトリの Ruby を最新の 4.0 系(4.0.9)にそろえます。#1263(Regexp の CVE 修正版への更新)の続きで、#1263 のブランチを base にしています。#1263 がマージされると base は自動で develop に切り替わります。
ruby4.0、Amazon Linux 2023、2029-03 までサポート)を提供しています。Changes Made
ruby4.0にした。aws-cdk-lib2.232.1 にはRUBY_4_0定数が無い(2.251〜2.254 で追加)。CDK の更新は全プロジェクトを同じ版に保つ決まりがあり security: remaining npm advisories that need major upgrades or replacements (2026-10) #1264 で扱うため、ここではnew lambda.Runtime('ruby4.0', lambda.RuntimeFamily.RUBY)と書いた。CDK を上げたら定数に置き換える。securerandom/time/ ランタイムに同梱のaws-sdk-dynamodbだけ。Ruby 4.0 で gem から外れたライブラリ(ostruct/loggerなど)は使っていない。.ruby-versionを 4.0.9 に、StandardRB の対象を 4.0 にした。CI(rspec / standardrb / bundler-audit)はこの.ruby-versionを読む。infra/Dockerfileは Ruby 4.0.9。ruby/smalruby3/Dockerfileはruby:4.0-slim-bookworm。Debian 12 のままなので、fix(security): patched ruby, node.js, ca-certificates and npm audit fixes (2026-10) #1263 で入れた ca-certificates の検査はそのまま効く。.claude/rules/infra/*、.vscode/cargo.env.exampleの Ruby 3.4 を 4.0 に直した。変えていないもの
gem-build-checkの既定値3.4。gem は 3.3 以上を対応範囲にしているので、Ruby の更新ではなく対応範囲の決定になるため。Test Coverage
npx cdk synth --context stage=stgが通り、テンプレートの Lambda が"Runtime": "ruby4.0"になることを確かめた。tscは通る。deploy-stgラベルで stg に出し、Lambda が担う GraphQL(createDomainなど)が動くことを確かめる。🤖 Generated with Claude Code