gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite5c9b659e5c9b659Pack retained search IDs into UTF-8 bytesmree5c9b659/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

  • e5c9b659Pack retained search IDs into UTF-8 bytesmre
  • 62a5f6c7HM67 brief, HM66 mergedmre
  • b32b8440Merge hm66-catalogindex: packed catalog indexmre
  • 2db0f7adReport HM66 heap measurements and validationmre
  • 6ce15623Pack catalog lists and membership maps in UTF-8 bytesmre
  • 71134e21HM66 briefmre
  • ed4cbab2status timemre
  • e982c26dlog: HM65 mergedmre
  • 6e72f9d1Merge hm65-fields: episode boot scan reads three fieldsmre
  • 07a5c883HM65 report measured field projection and complete validationmre
  • 0eab858fRead only catalog date fields during the episode boot scanmre
  • d3179273log: HM65 hl:heap vendoringmre
  • cb78a1a0HM65 report missing heap diagnostic package with repromre
  • 89606a5cHM65 briefmre
  • 096ce0d4log: DP69 live on day48mre
  • b3d8a80bDP69 brief, RV48 mergedmre
  • ce6d7d32Merge rv48: Hybriel day48mre
  • 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
  • 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
  • 4a802ae7status: RV48 runningmre