Skip to content

Commit 36a15e7

Browse files
committed
ci: exclude tests requiring API_KEY from e2e workflow
Tests that need a real DashScope API_KEY for LLM invocation cannot run in CI with OIDC-only credentials. Exclude them via --ignore and -k: - test_agent_ruintime.py: AgentRuntime lifecycle needs OSS bucket access - test_workspace_id.py: requires AGENTRUN_TEST_WORKSPACE_ID - invoke/with_credential/model_proxy: require real API_KEY for LLM calls Remaining tests (credential CRUD, model_service lifecycle, all sandbox tests) run with OIDC temporary credentials only. Change-Id: Ic8da4460f6f4942d8afd89c4da2bd344acfc2532 Co-developed-by: Claude <noreply@anthropic.com>
1 parent 83cc8f9 commit 36a15e7

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,14 @@ jobs:
6464
AGENTRUN_REGION: ${{ secrets.AGENTRUN_REGION }}
6565
AGENTRUN_CONTROL_ENDPOINT: ${{ secrets.AGENTRUN_CONTROL_ENDPOINT }}
6666
AGENTRUN_DATA_ENDPOINT: ${{ secrets.AGENTRUN_DATA_ENDPOINT }}
67-
# API_KEY and AGENTRUN_TEST_WORKSPACE_ID are intentionally NOT set
68-
# so tests requiring them are automatically skipped via skipif markers.
67+
# API_KEY and AGENTRUN_TEST_WORKSPACE_ID are intentionally NOT set.
68+
# Tests requiring them are excluded via --ignore and -k filters below.
6969
run: |
70-
uv run pytest tests/e2e/ -v --tb=short --ignore=tests/e2e/integration
70+
uv run pytest tests/e2e/ -v --tb=short \
71+
--ignore=tests/e2e/integration \
72+
--ignore=tests/e2e/test_agent_ruintime.py \
73+
--ignore=tests/e2e/test_workspace_id.py \
74+
-k "not (invoke or with_credential or model_proxy)"
7175
7276
- name: E2E Summary
7377
if: always()

0 commit comments

Comments
 (0)