docs(repo): read the freeze check's VPS target from GitLab's wizard and count stopped previews #572

Merged
root merged 1 commit from docs/498-freeze-check into main 2026-10-22 10:04:04 +00:00
root commented 2026-10-22 10:03:25 +00:00 (Migrated from gitlab.core-project.space)

Summary

infra/forgejo/SWITCH-DAY.md, step 1 (the freeze):

+VPS_ADMIN_TARGET=$(sed -n 's/^VPS_ADMIN_TARGET=//p' ~/.config/chess-gitlab-vps/wizard.env)
 glab mr list --repo amaurycoudr/chess-project              # prints no merge request
-ssh "$VPS_ADMIN_TARGET" "docker ps --format '{{.Names}}'" | grep -c chess-pr-   # 0
+ssh "$VPS_ADMIN_TARGET" "docker ps --all --format '{{.Names}}'" | grep -c chess-pr-   # 0

Step 1 runs before the Forgejo wizard, so "Before you start" has not loaded VPS_ADMIN_TARGET yet; the GitLab wizard's state holds it. --all also counts stopped preview containers.

Evidence

  • Before: run during #498's freeze, the check printed ssh: Could not resolve hostname : and then 0, a pass that checked nothing.
    After: with the target from the GitLab wizard's state, docker ps --all … | grep -c chess-pr- printed 0 after the reap (outputs on #498).

Merge Danger

Door: two-way

Blast Radius: docs

Refs #498

## Summary `infra/forgejo/SWITCH-DAY.md`, step 1 (the freeze): ```diff +VPS_ADMIN_TARGET=$(sed -n 's/^VPS_ADMIN_TARGET=//p' ~/.config/chess-gitlab-vps/wizard.env) glab mr list --repo amaurycoudr/chess-project # prints no merge request -ssh "$VPS_ADMIN_TARGET" "docker ps --format '{{.Names}}'" | grep -c chess-pr- # 0 +ssh "$VPS_ADMIN_TARGET" "docker ps --all --format '{{.Names}}'" | grep -c chess-pr- # 0 ``` Step 1 runs before the Forgejo wizard, so "Before you start" has not loaded `VPS_ADMIN_TARGET` yet; the GitLab wizard's state holds it. `--all` also counts stopped preview containers. ## Evidence - **Before:** run during #498's freeze, the check printed `ssh: Could not resolve hostname :` and then `0`, a pass that checked nothing. **After:** with the target from the GitLab wizard's state, `docker ps --all … | grep -c chess-pr-` printed `0` after the reap (outputs on #498). ## Merge Danger **Door:** two-way **Blast Radius:** docs Refs #498
root (Migrated from gitlab.core-project.space) merged commit into main 2026-10-22 10:04:05 +00:00
Sign in to join this conversation.
No description provided.