diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index c564cfce7..385488421 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -15,14 +15,30 @@ jobs: node-version: 22 cache: npm + - name: Install uv + uses: astral-sh/setup-uv@v8.0.0 + with: + python-version: "3.12" + - name: Install npm dependencies run: npm ci + - name: Install Python dependencies + working-directory: cockpit/langgraph/streaming/python + run: uv sync + - name: Install Playwright browsers run: npx playwright install --with-deps chromium - - name: Run cockpit e2e tests - run: npx nx e2e cockpit --skip-nx-cache + - name: Run cockpit example aimock e2e suites + run: | + set -e + for proj in cockpit-langgraph-streaming-angular cockpit-chat-tool-calls-angular cockpit-chat-subagents-angular; do + echo "::group::nx e2e $proj" + npx nx e2e "$proj" --skip-nx-cache + echo "::endgroup::" + sleep 5 + done e2e: runs-on: ubuntu-latest diff --git a/cockpit/chat/subagents/angular/tsconfig.app.json b/cockpit/chat/subagents/angular/tsconfig.app.json index 0a18dee76..00079f38a 100644 --- a/cockpit/chat/subagents/angular/tsconfig.app.json +++ b/cockpit/chat/subagents/angular/tsconfig.app.json @@ -18,9 +18,6 @@ }, { "path": "../../../../libs/langgraph" - }, - { - "path": "../../../../libs/internal/aimock-harness" } ] } diff --git a/cockpit/chat/tool-calls/angular/tsconfig.app.json b/cockpit/chat/tool-calls/angular/tsconfig.app.json index 0a18dee76..00079f38a 100644 --- a/cockpit/chat/tool-calls/angular/tsconfig.app.json +++ b/cockpit/chat/tool-calls/angular/tsconfig.app.json @@ -18,9 +18,6 @@ }, { "path": "../../../../libs/langgraph" - }, - { - "path": "../../../../libs/internal/aimock-harness" } ] } diff --git a/cockpit/langgraph/streaming/angular/e2e/scripts/record-streaming.py b/cockpit/langgraph/streaming/angular/e2e/scripts/record-streaming.py index 3a9228085..a77e9910d 100644 --- a/cockpit/langgraph/streaming/angular/e2e/scripts/record-streaming.py +++ b/cockpit/langgraph/streaming/angular/e2e/scripts/record-streaming.py @@ -6,7 +6,7 @@ Run from repo root: OPENAI_API_KEY=sk-... uv run --project cockpit/langgraph/streaming/python \ - python apps/cockpit/e2e/scripts/record-streaming.py + python cockpit/langgraph/streaming/angular/e2e/scripts/record-streaming.py """ import json import os @@ -52,7 +52,7 @@ ] } -out_path = Path("apps/cockpit/e2e/fixtures/streaming.json") +out_path = Path("cockpit/langgraph/streaming/angular/e2e/fixtures/streaming.json") out_path.parent.mkdir(parents=True, exist_ok=True) out_path.write_text(json.dumps(fixture, indent=2) + "\n") print(f"\nWrote fixture to {out_path}") diff --git a/cockpit/langgraph/streaming/angular/tsconfig.app.json b/cockpit/langgraph/streaming/angular/tsconfig.app.json index 872f30fc9..925942d5d 100644 --- a/cockpit/langgraph/streaming/angular/tsconfig.app.json +++ b/cockpit/langgraph/streaming/angular/tsconfig.app.json @@ -20,9 +20,6 @@ }, { "path": "../../../../libs/langgraph" - }, - { - "path": "../../../../libs/internal/aimock-harness" } ] }