gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitce08920dce08920dMerge branch 'w52c-header-phone' into mainGitoriace08920d/deploy.sh

18.1 KB

  1. #!/usr/bin/env bash
  2. # deploy.sh — gitoria.worldapi.org: Loreana (this folder) → Byrodin. Run ON LOREANA.
  3. #
  4. # ./deploy.sh gates → backup → rsync → restart the container → public URL 200
  5. # ./deploy.sh --dry-run gates → rsync -n (shows what WOULD be sent), no backup, no restart, no URL check
  6. # ./deploy.sh --skip-tests skips the gates (LOUD warning) — only when you know why
  7. # ./deploy.sh --target DIR|HOST:DIR another destination (default below); a local DIR is
  8. # how the script is tested without touching Byrodin
  9. # ./deploy.sh --url URL the URL that must answer 200 after the restart
  10. # (env: DEPLOY_TARGET, DEPLOY_URL, DEPLOY_SSH override the same defaults)
  11. # (backup: tars storage/.sessions/.env that exist on the target to Loreana's
  12. # /media/SLOW1TB2/deploy-backups/<app>/, keeps newest 5; --target DIR backs up DIR instead)
  13. #
  14. # THE FIRST DEPLOY is done by the architect on Byrodin (folder, data, nginx vhost, cert,
  15. # DNS). This script only updates the CODE: storage/, .sessions/, .env, .scratch/, server.*,
  16. # testapp/ and logs are never sent, so live data on Byrodin is never touched.
  17. # No --delete: a file removed here stays on Byrodin (harmless — nothing imports it).
  18. set -euo pipefail
  19. # ---- the app ------------------------------------------------------------------------------
  20. APP=gitoria.worldapi.org
  21. CONTAINER=gitoria.worldapi.org
  22. [email protected]:/CONTAINERS/projects/gitoria.worldapi.org
  23. DEFAULT_URL=https://gitoria.worldapi.org/
  24. GATES=(
  25. "GITORIA_PA_PORT=${GITORIA_PA_PORT:-8720} GITORIA_GATE_CHROME=${GITORIA_GATE_CHROME:-8725-8729} node tests/person-approval.mjs"
  26. "GITORIA_CREATE_PORT=${GITORIA_CREATE_PORT:-8720} GITORIA_CREATE_IDENT_PORT=${GITORIA_CREATE_IDENT_PORT:-8721} node tests/create-api.mjs" # gitoria#39: user-token repository creation
  27. "GITORIA_SIGNIN_PORT=${GITORIA_SIGNIN_PORT:-8720} GITORIA_SIGNIN_CHROME=${GITORIA_SIGNIN_CHROME:-8723-8729} node tests/signin-return.mjs" # ident#31: sign in through the selector panel, back on the same page
  28. "node theme/check-theme.mjs ."
  29. "GITORIA_GATE_PORT=${GITORIA_GATE_PORT:-8720} GITORIA_GATE_IDENT_PORT=${GITORIA_GATE_IDENT_PORT:-8721} GITORIA_GATE_TICKETS_PORT=${GITORIA_GATE_TICKETS_PORT:-8722} GITORIA_GATE_FIREFOX=${GITORIA_GATE_FIREFOX:-8730} GITORIA_GATE_CHROME=${GITORIA_GATE_CHROME:-8723-8729} node tests/browser.mjs"
  30. "GITORIA_SEC_PORT=${GITORIA_SEC_PORT:-8720} GITORIA_SEC_PORT2=${GITORIA_SEC_PORT2:-8721} GITORIA_SEC_IDENT_PORT=${GITORIA_SEC_IDENT_PORT:-8722} node tests/security.mjs"
  31. "GITORIA_PRIV_PORT=${GITORIA_PRIV_PORT:-8720} GITORIA_PRIV_IDENT_PORT=${GITORIA_PRIV_IDENT_PORT:-8721} node tests/private.mjs" # go34: private repos, organizations (158 checks)
  32. "GITORIA_IDA_PORT=${GITORIA_IDA_PORT:-8738} GITORIA_IDA_IDENT_PORT=${GITORIA_IDA_IDENT_PORT:-8739} node tests/ident-access-gitoria.mjs" # ident#27: an idt_ access key as the git password
  33. "GITORIA_APPS_PORT=${GITORIA_APPS_PORT:-8720} GITORIA_APPS_IDENT_PORT=${GITORIA_APPS_IDENT_PORT:-8721} node tests/apps.mjs" # gitoria#41: apps connected to a repo (URL allow-list, connect flow, add/remove/rotate)
  34. "GITORIA_PULLS_PORT=${GITORIA_PULLS_PORT:-8720} node tests/pull-numbers.mjs" # gitoria#40: PR numbers, refs/pull/N/head, the changes of syncPulls, wasHeadOf
  35. "GITORIA_PULLSSH_PORT=${GITORIA_PULLSSH_PORT:-8720} GITORIA_PULLSSH_SSH_PORT=${GITORIA_PULLSSH_SSH_PORT:-8721} node tests/pull-ssh.mjs" # gitoria#40: the same over the sshd door (docker)
  36. "GITORIA_TOKEN_PORT=${GITORIA_TOKEN_PORT:-8720} GITORIA_TOKEN_IDENT_PORT=${GITORIA_TOKEN_IDENT_PORT:-8721} node tests/app-token.mjs" # gitoria#42: an app trades its key for a one-hour token; git read with it, no push
  37. "GITORIA_REVIEWS_PORT=${GITORIA_REVIEWS_PORT:-8720} node tests/reviews.mjs" # gitoria#44: reviews with inline threads, replies, resolve, conversation (409/422/404, earlier head, paging, seq)
  38. "GITORIA_EVENTS_PORT=${GITORIA_EVENTS_PORT:-8720} node tests/events.mjs" # gitoria#43: signed events to apps (HMAC, retries, Merge button, ping, delivery log, two processes, retention)
  39. "GITORIA_PRPAGE_PORT=${GITORIA_PRPAGE_PORT:-8720} node tests/pr-page.mjs" # gitoria#45: the PR page (comments, threads, Review again, who hears of it, escaping, read-only for others)
  40. "GITORIA_STATUS_PORT=${GITORIA_STATUS_PORT:-8720} GITORIA_STATUS_IDENT_PORT=${GITORIA_STATUS_IDENT_PORT:-8721} node tests/status.mjs" # gitoria#46: statuses an app sets on a commit, required before merge, badges on /pulls
  41. "GITORIA_LIMITS_PORT=${GITORIA_LIMITS_PORT:-8720} GITORIA_LIMITS_IDENT_PORT=${GITORIA_LIMITS_IDENT_PORT:-8721} node tests/limits.mjs" # gitoria#47: status read route, pull.statuses/required, tickets list, 413/400, rate limits (429 + Retry-After)
  42. "GITORIA_KEYED_PORT=${GITORIA_KEYED_PORT:-8720} GITORIA_KEYED_IDENT_PORT=${GITORIA_KEYED_IDENT_PORT:-8721} node tests/status-keyed.mjs" # gitoria#46 v1.4: statuses keyed by app + context; an old-shape row (the old code on the same storage) is read and replaced
  43. "GITORIA_MM_PORT=${GITORIA_MM_PORT:-8720} GITORIA_GATE_CHROME=${GITORIA_GATE_CHROME:-8725-8729} node tests/member-merge.mjs" # gitoria#48: a member merges a PR with a gtr_ token once the required checks pass (API + button, apps never)
  44. "GITORIA_PM_PORT=${GITORIA_PM_PORT:-8720} node tests/protect-main.mjs" # gitoria#50: refuse direct pushes to the main branch (owner setting; https + ssh; branches, tags, merges stay)
  45. )
  46. # NEVER SENT (rsync patterns; a leading / anchors at the app folder)
  47. EXCLUDES=(
  48. /.git/ /.gitignore
  49. /storage/ /.sessions/ /.env /.env.* /.scratch/ /server.* /testapp/
  50. '*.log' '*.pid' node_modules/
  51. )
  52. # ---------------------------------------------------------------------------------------------
  53. DRY=0
  54. SKIP=0
  55. TARGET=${DEPLOY_TARGET:-$DEFAULT_TARGET}
  56. URL=${DEPLOY_URL:-$DEFAULT_URL}
  57. # how long the URL may take after the restart (seconds); a cold start compiles first (hybriel#148)
  58. URL_WAIT=${DEPLOY_URL_WAIT:-120}
  59. # Loreana's ssh config may not apply to Byrodin: -F /dev/null (ident STATUS)
  60. SSH=${DEPLOY_SSH:-ssh -F /dev/null -o BatchMode=yes -o ConnectTimeout=15}
  61. usage() { sed -n '2,15p' "$0" | sed 's/^# \{0,1\}//'; }
  62. while [ $# -gt 0 ]; do
  63. case "$1" in
  64. --dry-run) DRY=1 ;;
  65. --skip-tests) SKIP=1 ;;
  66. --target) TARGET=${2:?--target needs a value}; shift ;;
  67. --target=*) TARGET=${1#--target=} ;;
  68. --url) URL=${2:?--url needs a value}; shift ;;
  69. --url=*) URL=${1#--url=} ;;
  70. -h|--help) usage; exit 0 ;;
  71. *) echo "deploy: unknown argument: $1" >&2; usage >&2; exit 2 ;;
  72. esac
  73. shift
  74. done
  75. HERE=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
  76. cd "$HERE"
  77. step() { printf '\n==> %s\n' "$*"; }
  78. run() { printf ' $ %s\n' "$*" >&2; "$@"; }
  79. die() { printf '\ndeploy: REFUSED — %s\n' "$*" >&2; exit 1; }
  80. # a target `host:dir` is remote, a plain path is local
  81. if [[ "$TARGET" == *:* ]]; then
  82. REMOTE_HOST=${TARGET%%:*}
  83. REMOTE_DIR=${TARGET#*:}
  84. else
  85. REMOTE_HOST=
  86. REMOTE_DIR=$TARGET
  87. fi
  88. step "[0/5] $APP → $TARGET (dry run: $DRY, skip tests: $SKIP)"
  89. echo " from $HERE"
  90. echo " url $URL"
  91. [ -x bin/hybriel ] || die "bin/hybriel is missing here"
  92. [ -f docker-compose.yml ] || die "docker-compose.yml is missing here"
  93. [ -f project.hl ] || die "project.hl is missing here"
  94. command -v rsync >/dev/null || die "rsync is not installed"
  95. # ---- 1. the gates ---------------------------------------------------------------------------
  96. if [ "$SKIP" = 1 ]; then
  97. step "[1/5] GATES SKIPPED"
  98. printf ' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n'
  99. printf ' !! --skip-tests: NOTHING WAS TESTED. You deploy untested code. !!\n'
  100. printf ' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n'
  101. else
  102. step "[1/5] gates (${#GATES[@]})"
  103. # headless Chromes that exist BEFORE the gates are not ours (other sessions' test runs, e.g. Anton's)
  104. chromes() { ps -eo pid=,ppid=,args= | awk '/[h]l-browser-tier/ && /remote-debugging-port/ && !/--type=/ {print $1, $2}'; }
  105. before=" $(chromes | awk '{print $1}' | tr '\n' ' ') "
  106. for g in "${GATES[@]}"; do
  107. printf ' $ %s\n' "$g"
  108. out=$(mktemp)
  109. if ! env $g > "$out" 2>&1; then
  110. grep -E '^FAIL|passed,' "$out" | sed 's/^/ /' || true
  111. echo " (full output: $out)"
  112. die "gate failed: $g"
  113. fi
  114. grep -E 'passed,|^check-theme:' "$out" | tail -1 | sed 's/^/ /' || true
  115. rm -f "$out"
  116. done
  117. # a Chrome our gates LEFT: new since the gates began AND no longer owned by a running node test
  118. # (a Chrome whose parent is a live node process belongs to another session's test run right now)
  119. leaked=""
  120. while read -r pid ppid; do
  121. [ -z "$pid" ] && continue
  122. case "$before" in *" $pid "*) continue ;; esac
  123. ps -o args= -p "$ppid" 2>/dev/null | grep -q '^node\|/node ' && continue
  124. leaked="$leaked $pid"
  125. done < <(chromes)
  126. if [ -n "$leaked" ]; then
  127. die "a gate left a headless Chrome (pids:$leaked; ps -eo pid,args | grep hl-browser-tier)"
  128. fi
  129. fi
  130. # ---- 2. pre-deploy backup of the LIVE data (before anything is sent) ------------------------
  131. BACKUP_ROOT=${DEPLOY_BACKUP_ROOT:-/media/SLOW1TB2/deploy-backups}
  132. BACKUP_DIR="$BACKUP_ROOT/$APP"
  133. BACKUP_FILE="$BACKUP_DIR/$APP-$(date +%Y%m%d-%H%M).tgz"
  134. if [ "$DRY" = 1 ]; then
  135. step "[2/5] DRY RUN: backup skipped"
  136. else
  137. step "[2/5] backup live data ($APP) → $BACKUP_FILE"
  138. mkdir -p "$BACKUP_DIR"
  139. if [ -n "$REMOTE_HOST" ]; then
  140. present=$($SSH "$REMOTE_HOST" "cd '$REMOTE_DIR' 2>/dev/null && for p in storage .sessions .env; do [ -e \"\$p\" ] && echo \"\$p\"; done; true")
  141. else
  142. present=$(cd "$REMOTE_DIR" 2>/dev/null && for p in storage .sessions .env; do [ -e "$p" ] && echo "$p"; done; true)
  143. fi
  144. present=$(printf '%s' "$present" | tr '\n' ' ' | sed 's/ *$//')
  145. if [ -z "$present" ]; then
  146. echo " nothing to back up yet (no storage/.sessions/.env on the target)"
  147. else
  148. echo " taring: $present"
  149. if [ -n "$REMOTE_HOST" ]; then
  150. # Order (Anton #203): directories, then every file except *.mpack (indexes, idxstate, sessions, .env), then the *.mpack
  151. # data last — a hot copy then never holds index offsets past the data it copied. tar exit 1 = "file changed as we
  152. # read it" / a file gone between find and tar (--ignore-failed-read) — a warning; the archive is checked with gzip -t.
  153. run $SSH "$REMOTE_HOST" "cd '$REMOTE_DIR' && { find $present -type d; find $present -type f ! -name '*.mpack' | LC_ALL=C sort; find $present -type f -name '*.mpack' | LC_ALL=C sort; } | tar czf - --hard-dereference --warning=no-file-changed --ignore-failed-read --no-recursion -T -; r=\$?; [ \$r -le 1 ]" > "$BACKUP_FILE" \
  154. || { rm -f "$BACKUP_FILE"; die "backup failed (tar/ssh error) — refusing to deploy"; }
  155. else
  156. run tar czf "$BACKUP_FILE" --hard-dereference -C "$REMOTE_DIR" $present \
  157. || { rm -f "$BACKUP_FILE"; die "backup failed (tar error) — refusing to deploy"; }
  158. fi
  159. [ -s "$BACKUP_FILE" ] || { rm -f "$BACKUP_FILE"; die "backup is empty — refusing to deploy"; }
  160. echo " $(du -h "$BACKUP_FILE" | cut -f1) $BACKUP_FILE"
  161. ls -1t "$BACKUP_DIR/$APP"-*.tgz 2>/dev/null | tail -n +6 | xargs -r rm -f --
  162. echo " keeping $(ls -1 "$BACKUP_DIR/$APP"-*.tgz 2>/dev/null | wc -l) archive(s) of $APP"
  163. fi
  164. fi
  165. # ---- 3. rsync the code ----------------------------------------------------------------------
  166. RSYNC=(rsync -az --no-owner --no-group --itemize-changes)
  167. for e in "${EXCLUDES[@]}"; do RSYNC+=("--exclude=$e"); done
  168. if [ -n "$REMOTE_HOST" ]; then
  169. RSYNC+=(-e "$SSH")
  170. else
  171. mkdir -p "$REMOTE_DIR"
  172. fi
  173. # the preview is ALWAYS made first (rsync -n): nothing that must stay on Byrodin may be in it
  174. step "[3/5] rsync preview (what would be sent)"
  175. preview=$(mktemp)
  176. run "${RSYNC[@]}" -n ./ "$TARGET/" > "$preview"
  177. sed 's/^/ /' "$preview"
  178. echo " ($(grep -c . "$preview" || true) lines)"
  179. if awk '{print $2}' "$preview" | grep -E '^(storage/|\.sessions/|\.env|\.scratch/|server\.|testapp/)|\.log$|\.pid$' ; then
  180. die "the preview holds a path that must never be sent (see above)"
  181. fi
  182. rm -f "$preview"
  183. if [ "$DRY" = 1 ]; then
  184. step "[3/5] DRY RUN: nothing sent"
  185. else
  186. step "[3/5] rsync"
  187. run "${RSYNC[@]}" ./ "$TARGET/" | sed 's/^/ /'
  188. fi
  189. # ---- 4. restart the container, without a gap ------------------------------------------------
  190. # Apollo 2026-10-25: the main container is never restarted before the standby (port 45014, compose profile "standby") answers 200.
  191. # The shared helper (worldapi-conductor/standby-swap.sh) is piped to Byrodin: it starts the standby with the new code, waits for 200 on
  192. # /api/repos, restarts the main container, waits for 200 on 45004 and stops the standby. nginx serves from the standby meanwhile. If the
  193. # standby never comes up, nothing live was touched and the deploy stops here.
  194. # Apollo 2026-11-02 mpackdb freeze: DEPLOY_STOP_START=1 replaces ONLY this step with stop-then-start. Two gitoria processes must never
  195. # have the same mpackdb files open at once (the standby swap runs the old and the new process side by side); so the standby is made sure
  196. # to be down, the main container is stopped, and it is started again only after the old process is really gone (container not running AND
  197. # its old pid no longer exists). Without the variable the standby swap below stays the default (deploy-init.sh relies on the string
  198. # standby-swap.sh in this file to skip a second restart).
  199. SWAP=${DEPLOY_STANDBY_SWAP:-/media/STORAGE/projects/WorldAPI/worldapi-conductor/standby-swap.sh}
  200. SWAP_ARGS="gitoria gitoria gitoria-standby /api/repos 45004"
  201. STOP_WAIT=${DEPLOY_STOP_WAIT:-60}
  202. # runs on the target (as one script, so a failure before the start leaves the container stopped and the deploy fails): $1 = app dir
  203. stop_start_script() {
  204. cat <<'EOS'
  205. set -u
  206. cd "$APP_DIR" || exit 1
  207. echo " standby: making sure gitoria-standby is not running"
  208. docker compose --profile standby stop gitoria-standby || true
  209. cid=$(docker compose ps -a -q gitoria)
  210. oldpid=0
  211. if [ -n "$cid" ]; then oldpid=$(docker inspect -f '{{.State.Pid}}' "$cid" 2>/dev/null || echo 0); fi
  212. echo " old container ${cid:-none} pid $oldpid"
  213. echo " docker compose stop gitoria"
  214. docker compose stop gitoria || { echo " stop failed - NOT starting" >&2; exit 1; }
  215. i=0
  216. while :; do
  217. st=$(docker inspect -f '{{.State.Running}} {{.State.Pid}}' "$cid" 2>/dev/null) || st="gone 0"
  218. running=${st%% *}; pid=${st##* }
  219. alive=no
  220. # the pid docker shows now (0 once stopped) and the pid it had before the stop: neither may still exist
  221. for q in "$pid" "$oldpid"; do
  222. if [ -n "$q" ] && [ "$q" != 0 ] && [ -d "/proc/$q" ]; then alive=yes; fi
  223. done
  224. echo " wait ${i}s: running=$running pid=$pid oldpid=$oldpid still-there=$alive"
  225. if [ "$running" != true ] && [ "$alive" = no ]; then break; fi
  226. i=$((i + 1))
  227. if [ "$i" -gt "$STOP_WAIT" ]; then echo " the old gitoria process is still there after ${STOP_WAIT}s - NOT starting" >&2; exit 1; fi
  228. sleep 1
  229. done
  230. echo " old process gone: docker compose up -d gitoria"
  231. docker compose up -d gitoria
  232. EOS
  233. }
  234. [ -f "$SWAP" ] || die "the hand-over helper is missing: $SWAP"
  235. if [ "${DEPLOY_STOP_START:-}" = 1 ]; then
  236. if [ "$DRY" = 1 ]; then
  237. step "[4/5] DRY RUN: would stop $CONTAINER, wait until its old process is gone, then start it (DEPLOY_STOP_START=1, mpackdb freeze: no standby swap)"
  238. echo " would run on $TARGET: docker compose --profile standby stop gitoria-standby; docker compose stop gitoria; wait up to ${STOP_WAIT}s until docker inspect -f '{{.State.Running}} {{.State.Pid}}' shows not running AND the pid is gone (otherwise fail, do NOT start); docker compose up -d gitoria"
  239. else
  240. step "[4/5] stop $CONTAINER, wait until its old process is gone, start it (DEPLOY_STOP_START=1, mpackdb freeze: no standby swap)"
  241. if [ -n "$REMOTE_HOST" ]; then
  242. printf ' $ %s %s "APP_DIR=%s STOP_WAIT=%s bash -s" (stop-then-start script)\n' "$SSH" "$REMOTE_HOST" "$REMOTE_DIR" "$STOP_WAIT" >&2
  243. stop_start_script | $SSH "$REMOTE_HOST" "APP_DIR='$REMOTE_DIR' STOP_WAIT='$STOP_WAIT' bash -s" || die "stop-then-start failed - the container may be stopped, look: $SSH $REMOTE_HOST docker ps -a"
  244. else
  245. stop_start_script | APP_DIR="$REMOTE_DIR" STOP_WAIT="$STOP_WAIT" bash -s || die "stop-then-start failed - the container may be stopped"
  246. fi
  247. fi
  248. elif [ "$DRY" = 1 ]; then
  249. step "[4/5] DRY RUN: would hand over $CONTAINER through its standby (no gap)"
  250. echo " would run: $SWAP_ARGS with $SWAP on $TARGET"
  251. DRY_RUN=1 APP_DIR="$REMOTE_DIR" bash "$SWAP" $SWAP_ARGS 2>&1 | sed 's/^/ /' || true
  252. else
  253. step "[4/5] hand over $CONTAINER through its standby (no gap)"
  254. if [ -n "$REMOTE_HOST" ]; then
  255. printf ' $ %s %s "APP_DIR=%s bash -s -- %s" < %s\n' "$SSH" "$REMOTE_HOST" "$REMOTE_DIR" "$SWAP_ARGS" "$SWAP" >&2
  256. $SSH "$REMOTE_HOST" "APP_DIR='$REMOTE_DIR' bash -s -- $SWAP_ARGS" < "$SWAP" || die "the hand-over failed — see the log above (the standby keeps serving if the main container did not come back)"
  257. else
  258. APP_DIR="$REMOTE_DIR" bash "$SWAP" $SWAP_ARGS || die "the hand-over failed — see the log above"
  259. fi
  260. fi
  261. # the helper only restarts the app container: bring the other service (the git-over-SSH sshd) up to date too, without restarting it when nothing changed
  262. if [ "$DRY" != 1 ]; then
  263. # the sshd image COPIES gitoria-shell / gitoria-keys / sshd_config: rebuild it first (cached when nothing changed), then `up -d` recreates the container only if its image changed (GO34c)
  264. CHANGED="cd '$REMOTE_DIR' && docker compose build gitoria-sshd && docker compose up -d"
  265. if [ -n "$REMOTE_HOST" ]; then run $SSH "$REMOTE_HOST" "$CHANGED"; else run bash -c "$CHANGED"; fi
  266. fi
  267. # ---- 5. the URL answers 200 -----------------------------------------------------------------
  268. if [ "$DRY" = 1 ]; then
  269. step "[5/5] DRY RUN: would check $URL answers 200"
  270. step "dry run done — nothing was sent, nothing restarted"
  271. exit 0
  272. fi
  273. step "[5/5] $URL must answer 200 (up to ${URL_WAIT}s: a new Hybriel compiles the app at its first start, ~20 s, hybriel#148)"
  274. code=000
  275. start=$SECONDS
  276. i=0
  277. while :; do
  278. i=$((i + 1))
  279. code=$(curl -s -o /dev/null -w '%{http_code}' --max-time 10 "$URL" || true)
  280. echo " try $i ($((SECONDS - start)) s): $code"
  281. [ "$code" = 200 ] && break
  282. [ $((SECONDS - start)) -ge "$URL_WAIT" ] && break
  283. sleep 2
  284. done
  285. if [ "$code" != 200 ]; then
  286. if [ -n "$REMOTE_HOST" ]; then die "$URL answered $code, not 200 — look: $SSH $REMOTE_HOST docker logs --tail 50 $CONTAINER"; fi
  287. die "$URL answered $code, not 200 — look: docker logs --tail 50 $CONTAINER"
  288. fi
  289. step "deployed $APP → $TARGET, $URL answers 200"

Branches

Latest commits

  • ce08920dMerge branch 'w52c-header-phone' into mainGitoria
  • 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
  • e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
  • c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
  • 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
  • 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
  • 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
  • 155861f6Merge branch 'w52-person-approval' into mainGitoria
  • b5435de8|||PR person approvals: second Kunibert round (#52)mre
  • 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre
  • 2a89d8d0|||PR person approvals: Approve button for people; merge needs the required checks or a listed person's approval (#52)mre
  • 83f0c953Report person approval verificationmre
  • 3ae94b86Record browser failures and verify owned tab cleanupmre
  • 54eec687Gate person approvals and merge alternativesmre
  • 12b08829Add person approvals for pull request headsmre
  • 55c84779Merge branch 'gp-gate-ports' into mainGitoria
  • 57af42bbREADME: point to deploy.sh for the port listmre
  • d63375d2README: gate commands with explicit portsmre
  • feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre
  • 6cc1f943Merge branch 'records-1112' into mainGitoria