Repository navigation
Conversation
|
CI round 1 diagnosis: This is an external image-pull failure in a media-cache test outside PR #59's worker-healthcheck changes. Per the harness scope, I am leaving unrelated code and workflows unchanged. PR #59 remains draft while Compose smoke and the #57 low-spec CPU/API acceptance are unverified. |
|
Owner feedback (via Telegram)
|
|
按反馈继续完成了本地验证;代码 diff 没有新增修改,远端仍是
PR 正文已更新为这些结果。CI 两次仍因无关的 MinIO 镜像拉取 HTTP 404 停在 Compose smoke 之前;我保持 PR 为 draft,并会在 #58 用 |
|
Owner feedback (via Telegram)
|
|
已复核 PR #59 的完整 diff,并对照原 重新运行 CI |
|
Owner feedback (via Telegram)
|
|
已按“留后路”的反馈更新 PR 描述:原 重新运行 PR 已按验收答复标为 ready for review。GitHub CI 的 MinIO 镜像 HTTP 404 仍是未解决的无关阻塞,已保留在 PR 描述中;没有修改该测试或工作流,也没有合并、发布或部署。 |
|
你说得对:#59 当前仍只有一条 远端仍是 按本任务此前的 CI 范围要求,无关失败只在 PR 解释,不将 MinIO 测试或工作流改动混入 worker healthcheck PR。我已在 #58 用 |
|
按反馈去掉了默认 CI 流程中的 MinIO 容器测试,没有从源码构建,也没有改 新提交为 |
Summary
Replace the default worker healthcheck's full CLI startup with a small PostgreSQL probe. It requires a reachable database, the current instance in
runningstate, and a heartbeat no older than 30 seconds. Failures return a nonzero exit code.Fixes #58
Changes
dist/worker-healthcheck.jswithout changing its schedule.Verification
env -u NO_COLOR sh -c 'pnpm lint && pnpm typecheck && pnpm test'— passed on6387002in a clean worktree; server tests 560/560, all other package tests passed. An earlier run on the prior commit hit an unrelated 5-second reconciliation CLI smoke timeout under host load; the focused test and complete rerun passed.env -u NO_COLOR pnpm test:integration— passed ond1c6e4e: 29 integration files and 205 tests passed, with the MinIO image test excluded.env -u NO_COLOR pnpm compose:smoke— passed locally with the default Compose files. This exercised healthy and wrong-instance probes, the original CLI checks, worker restart, and the synthetic Telegram collection/public API flow.env -u NO_COLOR pnpm --dir apps/server exec vitest run test/integration/worker-runtime.test.ts --maxWorkers=1 --testTimeout=15000 --hookTimeout=30000— passed (2/2)./readyzpassed after the comparison. The Docker Desktop VM had 10 CPUs / 8.2 GB, so this is container-limited evidence, not proof on the specified 2 vCPU / 1 GB host.pnpm --filter @koharu-suite/server build,bash -n scripts/compose-smoke/run.sh,git diff --check, and Compose config validation — passed.6387002passed, including the remaining PostgreSQL integration tests, Storybook interactions, CLI smoke, Compose validation, and default Compose smoke. The intermediate run ond1c6e4ewas cancelled when the documentation commit was pushed. A true 2 vCPU / 1 GB host comparison and production collector/API behavior remain unverified.Review
Independent Claude Code
opus[1m]review found no blocking issue after a follow-up pass. Its four suggestions were addressed: add a real-SQL wrong-instance smoke case, share the staleness constant, emit fixed failure diagnostics, and align environment edge cases with the CLI. The worker source diff is unchanged since that review. A second bounded review confirmed that the original CLI probe remains packaged and can be restored with a Compose override. The owner accepted the bounded local verification and asked to retain this fallback. An independent review of the later integration-script exclusion found no blocking issue and identified four stale documentation claims; those were corrected in6387002. Its follow-up review found no remaining actionable finding and confirmed the S3 unit coverage described in the docs. The final diff passed CI and independent review.Fallback
The original
node dist/cli.js health workercommand is still available in the worker image and is exercised by Compose smoke. If the lightweight probe misbehaves, an operator can restore the original healthcheck with a temporary Compose override file:The existing interval, timeout, retries, and start period remain in
compose.yaml.