@@ -170,7 +170,9 @@ start_platform() {
170170# platform_live_environment: one hosted Enterprise organization, the deterministic seed its specs
171171# read, and a scripted worker in place of the model. Hosted is decided by the app's hostname, which
172172# the job maps to loopback. Google and Microsoft answer only to real credentials, so those clients
173- # are fixtures, and what no fixture can reach is reported by the specs as a skip.
173+ # are fixtures, and what no fixture can reach is reported by the specs as a skip. Each group starts
174+ # the realtime server after its app, as org-redesign does, and holds the same tripwire and tool
175+ # permissions, so a route that passes one suite cannot fail on the same stack in the other.
174176platform_live_environment () {
175177 app_server=start
176178 export REDIS_URL=redis://127.0.0.1:6379
@@ -186,6 +188,9 @@ platform_live_environment() {
186188 export NEXT_PUBLIC_ACCESS_CONTROL_ENABLED=true
187189 export SIM_LINKS=true PEOPLE=true
188190 export INTERNAL_API_SECRET=platform-live-ci-local-secret-at-least-32-characters
191+ export COPILOT_TOOL_PERMISSIONS_ENABLED=true
192+ export DB_TX_TRIPWIRE=throw
193+ export NEXT_PUBLIC_SOCKET_URL=http://127.0.0.1:3030 SOCKET_SERVER_URL=http://127.0.0.1:3030
189194 export COPILOT_API_KEY=platform-live-ci-local-copilot-key MOTHERSHIP_SIM_TRANSPORT=direct
190195 export SIM_AGENT_API_URL=http://127.0.0.1:3029
191196 export GOOGLE_CLIENT_ID=platform-live-google-client GOOGLE_CLIENT_SECRET=platform-live-google-secret
491496 export SIM_PLATFORM_ORIGIN=http://127.0.0.1:3028
492497 start_browser_install platform-live --only-shell chromium
493498 PLATFORM_ORG_UI=true start_app platform-live 3027 ' Platform main' record-http-status
499+ start_realtime platform-live 3030
494500 start_platform 3028
495501 bun --no-env-file platform/checks/live/support/scripted-agent.ts 3029 \
496502 > " $report_dir /platform-live-agent.log" 2>&1 &
510516 export PLATFORM_ORG_UI=true
511517 start_browser_install platform-live --only-shell chromium
512518 start_app platform-live-flag-off 3027 ' Main, no zone' record-http-status
519+ start_realtime platform-live-flag-off 3030
513520 wait_for_browsers
514521 run_platform_live flag-off platform-live-flag-off
515522 ;;
0 commit comments