Skip to content

feat(deploy): ARM64 架构预检 + 默认 verbose 日志 - #106

Merged
ddpie merged 2 commits into
mainfrom
feat/arm64-preflight
Jul 8, 2026
Merged

feat(deploy): ARM64 架构预检 + 默认 verbose 日志#106
ddpie merged 2 commits into
mainfrom
feat/arm64-preflight

Conversation

@ddpie

@ddpie ddpie commented Jul 8, 2026

Copy link
Copy Markdown
Owner

改动

两处部署健壮性 / 可观测性增强。

部署前检测非 ARM64 架构并提前报错
项目仅支持 ARM64(容器为 linux/arm64 构建)。在 x86_64 机器上部署,原本会在 docker build 中途抛出晦涩的 exec /bin/sh: exec format errordeploy.sh 现在在 i18n 就绪后、app 选择器与任何交互提示之前就用 uname -m 探测架构,非 arm64 / aarch64 直接明确报错,并指向 ARM64 机器(Apple Silicon Mac 或 AWS Graviton 实例如 t4g / c7g)。README 部署两节与 FAQ(中英)补充 ARM64 前置说明。

默认打开 cdk verbose 日志
部署常在 cdk bootstrap / cdk deploy 处无声停顿,详细日志正是定位这类卡顿的关键。故默认给这两处 cdk 调用加 -v(流式输出每步进度与 AWS SDK 调用);新增 --quiet / -q 可恢复精简输出。

config/i18n.json 被 OAuth Lambda import,新增文案改了打包 asset 哈希,故刷新 CDK 快照。


Changes

Two deploy robustness / observability enhancements.

Detect non-ARM64 architecture before deploying and fail early
The project is ARM64-only (the container is built for linux/arm64). Deploying on an x86_64 machine used to fail mid-docker build with a cryptic exec /bin/sh: exec format error. deploy.sh now checks uname -m right after i18n is ready — before the app picker or any prompt — and on non-arm64/aarch64 fails early with a clear message pointing at an ARM64 machine (Apple Silicon Mac or an AWS Graviton instance such as t4g / c7g). The README Deploy sections and the FAQ (zh/en) note the prerequisite.

Verbose cdk logs on by default
Deploys often stall silently at cdk bootstrap / cdk deploy, and detailed logs are what make that diagnosable. Both cdk calls now pass -v (streaming per-step progress + AWS SDK calls) by default; --quiet / -q restores terse output.

config/i18n.json is imported by the OAuth Lambda, so the new strings changed its bundle asset hash — CDK snapshot refreshed.

项目仅支持 ARM64(容器为 linux/arm64 构建)。在 x86_64 机器上部署原本会在
docker build 中途抛出晦涩的 "exec /bin/sh: exec format error";现在 deploy.sh
在 i18n helper 就绪后、app 选择器与任何交互提示之前就用 uname -m 探测,非
arm64/aarch64 直接明确报错并指向 ARM64 机器(Apple Silicon Mac / AWS Graviton)。
架构是硬前置条件,故放在最早处。

README 部署两节与 FAQ(中英)补充 ARM64 前置说明。i18n 新增文案改变 OAuth
Lambda 打包 asset 哈希,一并刷新快照。
@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ddpie, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 11 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 46ed8f11-f146-4780-acbc-7ebd12c4558f

📥 Commits

Reviewing files that changed from the base of the PR and between 98e22cd and 5378d9d.

⛔ Files ignored due to path filters (1)
  • infra/test/__snapshots__/snapshot.test.ts.snap is excluded by !**/*.snap
📒 Files selected for processing (5)
  • README.md
  • config/i18n.json
  • docs/faq_en.md
  • docs/faq_zh.md
  • scripts/deploy.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/arm64-preflight

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

Comment @coderabbitai help to get the list of available commands.

部署常在 cdk bootstrap / cdk deploy 处无声停顿,详细日志正是定位这类卡顿
的关键。故默认给两处 cdk 调用加 -v(流式输出每步进度与 AWS SDK 调用);
新增 --quiet / -q 可恢复精简输出。空 flag 展开不产生多余空参数。
@ddpie ddpie changed the title feat(deploy): 部署前检测非 ARM64 架构并提前报错 feat(deploy): ARM64 架构预检 + 默认 verbose 日志 Jul 8, 2026
@ddpie
ddpie merged commit c403fe8 into main Jul 8, 2026
9 checks passed
@ddpie
ddpie deleted the feat/arm64-preflight branch July 8, 2026 13:04
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