refactor: remove code comments added by recent PRs (#16681)

CONTRIBUTING.md says PRs add no code comments, but #16485, #16586, #16621 and #16672 added some. This removes the 215 comment-only lines git blame on master attributes to those merge commits, across 12 code files, plus one blank line the removal left doubled. Rewritten (not added) comments in scripts/assert-cloud-image-sentry.mjs and comments in .github workflows are left alone. No code changes.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Devin FoleyandPaperclip authored and GitHub committed 2026-10-17 18:55:39 -07:00
1 parent bebeb389f1
commit e30550ef39
12 files changed
-216

No files matched your search

-17
View File
@@ -1,20 +1,4 @@
#!/usr/bin/env bash
# Boot a built server command and wait for it to become healthy.
#
# scripts/server-boot-smoke.sh node server/dist-runtime/index.mjs
#
# Starts the command against a throwaway instance (embedded Postgres,
# local_trusted mode, loopback only) and waits until GET /api/health reports
# status "ok", which means migrations applied and startup recovery finished.
# Prints the time to listen and the time to ready, stops the server, and exits
# non-zero if it never became ready, with the server log on stderr.
#
# The server runs with a cleared environment (only PATH and a scratch HOME),
# from a scratch working directory, with its config path pointed into the
# scratch directory, so no DATABASE_URL, config file or .env from the caller
# can point it at a real instance. It listens on a free port chosen at start,
# and a healthy response counts only after the child logs that it bound that
# port. Relative command arguments are resolved against the repository root.
set -euo pipefail
if [ "$#" -eq 0 ]; then
@@ -71,7 +55,6 @@ while [ "$(date +%s)" -lt "$deadline" ]; do
cat "$log" >&2
exit 1
fi
# Only trust the port once this child has bound it.
if ! grep -q "listener bound on 127.0.0.1:$port" "$log" 2>/dev/null; then sleep 0.5; continue; fi
body="$(curl -fsS --max-time 2 "http://127.0.0.1:$port/api/health" 2>/dev/null || true)"
if [ -n "$body" ] && [ -z "$listen_ms" ]; then