From 3988d1f3cb64adf0ec7ee32a546906fc9d403b6e Mon Sep 17 00:00:00 2001 From: Cameron Cordes Date: Mon, 2 Nov 2026 09:35:15 -0500 Subject: [PATCH] e2e server: default port 8093 8090 is held by a long-running service on the dev box, so the e2e server (and the app's drive-app / Detox, which read E2E_PORT too) move to 8093. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- dev/e2e/README.md | 13 +++++++------ dev/e2e/e2e.sh | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index b331de3..28fcc5b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -66,7 +66,7 @@ cargo fix ``` ### E2E dev server -`dev/e2e/e2e.sh up` starts an isolated instance (port 8090, own build dir, db and +`dev/e2e/e2e.sh up` starts an isolated instance (port 8093, own build dir, db and synthetic fixture library) alongside any real server, for app e2e / agent UI testing. `reset` restores the baseline. See `dev/e2e/README.md`. diff --git a/dev/e2e/README.md b/dev/e2e/README.md index 63804aa..59b153a 100644 --- a/dev/e2e/README.md +++ b/dev/e2e/README.md @@ -10,14 +10,15 @@ dev/e2e/e2e.sh stop dev/e2e/e2e.sh check # every fixture's wall_clock + true_instant vs the manifest, /photos/exif range edges, photo versions ``` -Log in from the app with **server** `http://10.0.2.2:8090` (Android -emulator) or `http://127.0.0.1:8090` (Expo web / `adb reverse tcp:8090 tcp:8090`), +Log in from the app with **server** `http://10.0.2.2:8093` (Android +emulator) or `http://127.0.0.1:8093` (Expo web / `adb reverse tcp:8093 tcp:8093`), **user** `e2e`, **password** `E2eTest#2026pass`. Runs on native Linux (cargo, curl, ffmpeg with `drawtext`, exiftool) or in -WSL driving the Windows toolchain; the script detects which. If port 8090 is -taken, pick another with `E2E_PORT=8091` (the app's `drive-app` skill reads -the same variable). +WSL driving the Windows toolchain; the script detects which. The port is 8093 +(8090, the old default, is taken by another long-running service on the dev +box). If 8093 is taken too, pick another with `E2E_PORT=...`; the app's +`drive-app` skill and Detox config read the same variable. ## Isolation @@ -26,7 +27,7 @@ It runs next to a real local server without touching it: | | real server | e2e server | |---|---|---| | exe | `target/debug/image-api.exe` | `dev/e2e/.work/bin/image-api-e2e.exe` (built in `target/e2e`) | -| port | `BIND_URL` + `localhost:8088` | `127.0.0.1:8090` only (`LOCAL_BIND_URL=` disables the 8088 bind) | +| port | `BIND_URL` + `localhost:8088` | `127.0.0.1:8093` only (`LOCAL_BIND_URL=` disables the 8088 bind) | | data | your `.env` | `dev/e2e/.work/state/` (db, thumbs, hls, gifs, previews, media) | | AI | configured | off — Ollama points at a closed port | diff --git a/dev/e2e/e2e.sh b/dev/e2e/e2e.sh index 1e85bc0..c67aec8 100755 --- a/dev/e2e/e2e.sh +++ b/dev/e2e/e2e.sh @@ -31,7 +31,7 @@ fi EXE_NAME="image-api-e2e$EXT" LOG="$WORK/server.log" -E2E_PORT="${E2E_PORT:-8090}" +E2E_PORT="${E2E_PORT:-8093}" # 127.0.0.1 is reachable from the Windows browser (Expo web), the Android # emulator (as 10.0.2.2) and USB devices via `adb reverse`. Set # E2E_BIND=0.0.0.0 for a physical device over Wi-Fi. @@ -258,7 +258,7 @@ Usage: dev/e2e/e2e.sh logs tail -f the server log info connection details -Env: E2E_PORT (8090), E2E_BIND (127.0.0.1), E2E_USER, E2E_PASS. +Env: E2E_PORT (8093), E2E_BIND (127.0.0.1), E2E_USER, E2E_PASS. Extra server env: dev/e2e/env.local (appended to the generated .env on reset). EOF }