tracker
All repositories: gitoria
1.8 KB
#!/bin/bash# tests/realdata-060-backfill.sh — mission 060 (tracker#27), NOT the gate: starts the app on the COPY in .scratch/realdata (:8730,# no TMDB sync, no adult backfill) and times 4 pages with curl, back to back, until the short-id backfill says done (or MAX s).# The server keeps running (its pid in $OUT/real.pid) — stop it yourself. STATUS.md mission 060 has the whole procedure.# tests/realdata-060-backfill.sh <run name> [MAX seconds, 500] [full = time until MAX even when done] [VAR=value …]# → $OUT/real-<run>.log (the app's log), $OUT/times-<run>.txt (path seconds), a summary per page (avg, max, answers over 1 s)cd "$(dirname "$0")/.."N=$1; MAX=${2:-500}; FULL=$3; shift 3OUT=${OUT:-/tmp/w060}RP=${REAL_PORT:-8730} # the app's portmkdir -p .scratch/realdata-sessions "$OUT"env TRACKER_PORT=$RP TRACKER_SYNC=0 TRACKER_WATCH=0 TRACKER_BACKFILL=0 TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb TRACKER_SESSIONS=$PWD/.scratch/realdata-sessions/ TRACKER_URL=http://127.0.0.1:$RP HL_HOST=127.0.0.1 "$@" setsid nohup ./bin/hybriel project.hl > "$OUT/real-$N.log" 2>&1 < /dev/null & echo $! > "$OUT/real.pid"for i in $(seq 1 400); do curl -s -o /dev/null http://127.0.0.1:$RP/ && break; sleep 0.05; done: > "$OUT/times-$N.txt"END=$(( $(date +%s) + MAX ))while { [ -n "$FULL" ] || ! grep -q "short ids done\|short ids: nothing\|backfill off" "$OUT/real-$N.log"; } && [ $(date +%s) -lt $END ]; dofor p in /shows/Foundation / /person/Jared-Harris /movies; doecho "$p $(curl -s -m 20 -o /dev/null -w '%{time_total}' http://127.0.0.1:$RP$p)" >> "$OUT/times-$N.txt"donekill -0 $(cat "$OUT/real.pid") 2>/dev/null || { echo DIED; break; }donegrep -v "^$" "$OUT/real-$N.log" | head -40awk '{n[$1]++; s[$1]+=$2; if($2>m[$1])m[$1]=$2; if($2>1)o[$1]++} END{for(k in n) printf "%s n=%d avg=%.3f max=%.3f over1s=%d\n",k,n[k],s[k]/n[k],m[k],o[k]}' "$OUT/times-$N.txt"
Branches
Latest commits
- 6bb7c20estatus: window 2026-11-09mre
- 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
- e84586a7Mission AP56bmre
- 15917f03Record PR workflow rule (gitoria#50)mre
- 942ac995status: paused workers statemre
- 44b934e5log: respawn cleanupmre
- 03a80097Log: Anton GC A/Bmre
- c7cdef62Log: Apollo STOP, workers pausedmre
- d0c083fbLog: usage stopmre
- c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
- 1eb6f1a1Missions AP56, BS1mre
- 4871f8adLog: AP52 live on day52, browser gate greenmre
- d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
- c4a60ef2Log: RT52 retest passed, AP52 startedmre
- 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre
- 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre
- 3bb4ccddAP52: modal close button refers to its nested rule with Style.buttonModalX (tracker#51, hybriel#333)mre
- ba16933fAP52: login callback and title route are static handlers taking the server as third argument (tracker#58, hybriel#332)mre
- 85153900AP52: re-vendor Hybriel set day52 (source 77cfca31, bin 0a8ed496)mre
- 7c051eddLog: hybriel#338 answermre