33# CI groups, which reuse the production build from `e2e-build`.
44# The job extracts it into apps/sim/.next before running these suites.
55#
6- # Usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|assistant-actions|organization-search|browser-extension|browser-extension-native|browser-extension-navigation|browser-extension-composer|browser-extension-access|project-files|markdown-viewer|workflow-code-ui|mobile|seo> (run from apps/sim)
6+ # Usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|assistant-actions|organization-search|search-permissions| browser-extension|browser-extension-native|browser-extension-navigation|browser-extension-composer|browser-extension-access|project-files|markdown-viewer|workflow-code-ui|mobile|seo> (run from apps/sim)
77#
88# The job provides DATABASE_URL, BETTER_AUTH_SECRET and ENCRYPTION_KEY; each group sets the rest of
99# its app's environment here. Reports and server logs land in $RUNNER_TEMP/e2e.
2020# telemetry flush runs detached and still writes .next/dev).
2121set -euo pipefail
2222
23- group=${1:? usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|assistant-actions|organization-search|browser-extension|browser-extension-native|browser-extension-navigation|browser-extension-composer|browser-extension-access|project-files|markdown-viewer|workflow-code-ui|mobile|seo>}
23+ group=${1:? usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|assistant-actions|organization-search|search-permissions| browser-extension|browser-extension-native|browser-extension-navigation|browser-extension-composer|browser-extension-access|project-files|markdown-viewer|workflow-code-ui|mobile|seo>}
2424report_dir=" $RUNNER_TEMP /e2e"
2525ready_timeout_seconds=600
2626mkdir -p " $report_dir "
@@ -276,17 +276,18 @@ case "$group" in
276276 bun run test:workflow-stop-after:e2e
277277 ;;
278278
279- desktop-inbox|assistant-actions|organization-search)
279+ desktop-inbox|assistant-actions|organization-search|search-permissions )
280280 export REDIS_URL=redis://127.0.0.1:6379
281281 export NEXT_PUBLIC_FORCE_HOSTED=false
282282 export COPILOT_TOOL_PERMISSIONS_ENABLED=true
283283 export KNOWLEDGE_MEMBER_ACCESS=true CREDENTIAL_GROUPS=true ACCESS_CONTROL_ENABLED=true
284284 export NEXT_PUBLIC_ACCESS_CONTROL_ENABLED=true NEXT_PUBLIC_ORGANIZATIONS_ENABLED=true
285- if [ " $group " != desktop-inbox ]; then start_browser_install " $group " --only-shell chromium; fi
285+ case " $group " in assistant-actions|organization-search) needs_browser=true ;; * ) needs_browser=false ;; esac
286+ if [ " $needs_browser " = true ]; then start_browser_install " $group " --only-shell chromium; fi
286287 export INTERNAL_API_SECRET=desktop-inbox-http-ci-local-secret-at-least-32-characters
287288 export DB_TX_TRIPWIRE=throw
288289 start_app " $group " 3019 " $group " record-http-status
289- if [ " $group " != desktop-inbox ]; then wait_for_browsers; fi
290+ if [ " $needs_browser " = true ]; then wait_for_browsers; fi
290291 case " $group " in
291292 desktop-inbox)
292293 DESKTOP_INBOX_E2E_BASE_URL=" $NEXT_PUBLIC_APP_URL " \
@@ -303,11 +304,15 @@ case "$group" in
303304 ASSISTANT_ACTIONS_E2E_REPORT_PATH=" $report_dir /assistant-actions-ui-report.json" \
304305 bun --no-env-file scripts/test-assistant-actions-e2e.ts
305306 ;;
306- organization-search)
307+ # The 500,000-identity import uploads 700 parts in order, so it runs beside the browser
308+ # suite rather than ahead of it.
309+ search-permissions)
307310 GITLAB_CSV_E2E_BASE_URL=" $local_app_url " \
308311 GITLAB_CSV_E2E_LARGE_IMPORT=1 \
309312 GITLAB_CSV_E2E_REPORT_PATH=" $report_dir /gitlab-csv-permissions-http-report.json" \
310313 bun --no-env-file scripts/test-gitlab-csv-permissions-e2e.ts
314+ ;;
315+ organization-search)
311316 ORGANIZATION_SEARCH_E2E_BASE_URL=" $local_app_url " \
312317 ORGANIZATION_SEARCH_E2E_DATABASE_URL=" $DATABASE_URL " \
313318 ORGANIZATION_SEARCH_E2E_AUTH_SECRET=" $BETTER_AUTH_SECRET " \
0 commit comments