diff --git a/.github/ci-suites.json b/.github/ci-suites.json index d8f1e3953fd..787003ff190 100644 --- a/.github/ci-suites.json +++ b/.github/ci-suites.json @@ -47,6 +47,10 @@ { "group": "markdown-viewer", "task": "ci:e2e-markdown-viewer" + }, + { + "group": "workflow-code-ui", + "task": "ci:e2e-workflow-code-ui" } ], "production": [ diff --git a/.github/scripts/ci-plan.gql b/.github/scripts/ci-plan.gql index f393f1a0aed..0198e02d1a0 100644 --- a/.github/scripts/ci-plan.gql +++ b/.github/scripts/ci-plan.gql @@ -6,7 +6,7 @@ query($base: String!, $head: String!) { "ci:e2e-assistant-actions", "ci:e2e-organization-search", "ci:e2e-docs-platform", "ci:e2e-browser-extension", "ci:e2e-project-files", "ci:e2e-mobile", "ci:e2e-seo", - "ci:e2e-markdown-viewer" + "ci:e2e-markdown-viewer", "ci:e2e-workflow-code-ui" ]) { items { name diff --git a/.github/scripts/http-e2e.sh b/.github/scripts/http-e2e.sh index 045fe4f7ca2..df3ab293ecf 100755 --- a/.github/scripts/http-e2e.sh +++ b/.github/scripts/http-e2e.sh @@ -3,7 +3,7 @@ # CI groups, which reuse the production build from `e2e-build`. # The job extracts it into apps/sim/.next before running these suites. # -# Usage: http-e2e.sh (run from apps/sim) +# Usage: http-e2e.sh (run from apps/sim) # # The job provides DATABASE_URL, BETTER_AUTH_SECRET and ENCRYPTION_KEY; each group sets the rest of # its app's environment here. Reports and server logs land in $RUNNER_TEMP/e2e. @@ -20,7 +20,7 @@ # telemetry flush runs detached and still writes .next/dev). set -euo pipefail -group=${1:?usage: http-e2e.sh } +group=${1:?usage: http-e2e.sh } report_dir="$RUNNER_TEMP/e2e" ready_timeout_seconds=600 mkdir -p "$report_dir" @@ -34,6 +34,9 @@ realtime_tag='' realtime_log='' browsers_pid='' local_app_url='' +extra_pids=() +extra_tags=() +extra_logs=() # `dev` or `start`; a group sets it before start_app. app_server=${E2E_APP_SERVER:-dev} @@ -56,6 +59,13 @@ finish() { tail -n 200 "$server_log" fi fi + for i in "${!extra_pids[@]}"; do + bash "$GITHUB_WORKSPACE/.github/scripts/stop-session.sh" "${extra_pids[$i]}" "${extra_tags[$i]}" || status=1 + wait "${extra_pids[$i]}" 2>/dev/null || true + if [ "$status" -ne 0 ]; then + tail -n 100 "${extra_logs[$i]}" + fi + done if [ -n "$realtime_pid" ]; then bash "$GITHUB_WORKSPACE/.github/scripts/stop-session.sh" "$realtime_pid" "$realtime_tag" || status=1 wait "$realtime_pid" 2>/dev/null || true @@ -119,6 +129,27 @@ start_app() { wait_ready "$server_pid" "$local_app_url/api/health" "$label app" } +# start_extra_app