gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3945eb813945eb81ST1: stall diagnosis reportmre3945eb81/tests/realdata-m034.sh

2.0 KB

  1. #!/bin/bash
  2. # realdata-m034.sh <start|stop> <tree> <copy> <port> — mission 034 (tracker#40, the curated franchise seed), NOT the gate. Starts an
  3. # app tree on a COPY of live `storage/` (<copy>/storage, STATUS "How to repeat") with every background job OFF but the franchise
  4. # seed (TRACKER_COLLECTIONS=1 in the caller's env: the collection seed too). With a `.env` link in <tree> (real TMDB token, never read) the seed imports what is missing; without one it only builds.
  5. # Writes a session for the creator (az5b2 = user 0mujqspn0aqb) → <copy>/sid; log <copy>/server.log, RSS every 10 s <copy>/rss.log;
  6. # stop kills the PID in <copy>/server.pid.
  7. mode=$1; tree=$2; R=$3; port=$4
  8. if [ "$mode" = stop ]; then pid=$(cat $R/server.pid); kill $pid; while kill -0 $pid 2>/dev/null; do sleep 1; done; echo "stopped $pid"; exit 0; fi
  9. mkdir -p $R/sessions
  10. sid=$(head -c 16 /dev/urandom | xxd -p); now=$(date +%s%3N)
  11. echo "{\"created\":$now,\"data\":{\"tag\":\"t\"},\"id\":\"$sid\",\"seen\":$now,\"user\":{\"id\":\"0mujqspn0aqb\"}}" > $R/sessions/$(printf %s "$sid" | sha256sum | cut -d' ' -f1)
  12. echo $sid > $R/sid
  13. cd $tree
  14. env TRACKER_SYNC=0 TRACKER_ART=0 TRACKER_PHOTOS=0 TRACKER_BACKFILL=0 TRACKER_REPAIR=0 TRACKER_KINDS=0 TRACKER_CREDITS=0 TRACKER_COLLECTIONS=${TRACKER_COLLECTIONS:-0} TRACKER_MERGE=0 TRACKER_SHORTIDS=0 \
  15. TRACKER_PORT=$port TRACKER_URL=http://127.0.0.1:$port HL_HOST=127.0.0.1 TRACKER_WATCH=0 \
  16. TRACKER_STORAGE=$R/storage/mpackdb TRACKER_SESSIONS=$R/sessions/ TRACKER_OLD_SHORT_IDS=$tree/data/old-short-ids.json \
  17. setsid ./bin/hybriel project.hl >> $R/server.log 2>&1 < /dev/null &
  18. pid=$!; echo $pid > $R/server.pid
  19. ( t0=$(date +%s); while kill -0 $pid 2>/dev/null; do echo "$(( $(date +%s) - t0 )) $(date +%T) $(awk '/VmRSS/{print $2}' /proc/$pid/status 2>/dev/null)" >> $R/rss.log; sleep 10; done ) > /dev/null 2>&1 < /dev/null &
  20. t0=$(date +%s)
  21. until curl -s -o /dev/null http://127.0.0.1:$port/; do sleep 1; kill -0 $pid 2>/dev/null || { echo "server died"; tail -20 $R/server.log; exit 1; }; done
  22. echo "pid $pid listening after $(( $(date +%s) - t0 )) s"

Branches

Latest commits

  • 3945eb81ST1: stall diagnosis reportmre
  • 404733aclog: ST1 startedmre
  • 3e3d5a55mission ST1: stall diagnosismre
  • 9c3180eblog+status: RV28d measured after deploymre
  • fdf10b1alog: RV28d deployed on day38bmre
  • 320005e9log: RV28d merged, deploy runningmre
  • a8fef27dRV28d: reportmre
  • 2bae8373RV28d: re-vendor Hybriel set day38b (source 1e554d75, bin 5ff2a46d)mre
  • 16b3354aMerge branch 'main' into rv28cmre
  • 6f4f27d8log: RV28d started (day38b)mre
  • e6cf03ffmission RV28d: rv28c onto day38bmre
  • 3ccaee19status: live sweep freeze, waiting for Apollomre
  • 49f76ecblog: watch toggle slowness = session sweep freeze (tracker#50)mre
  • 3daf6eddlog: day37 live, still waiting for day39mre
  • 796ba672records: #277 slips to day39mre
  • a9eb9827records: mpackdb integrity clean, all 12 tablesmre
  • 6cf40dbdrecords: mpackdb integrity check, shows uncheckedmre
  • 1880f42arecords: day38 deploy may swap normallymre
  • 9d806e35records: mpackdb freeze until day38mre
  • a660239drecords: day37 lacks #277, wait for day38mre