From 0c1d077a9d07d3e34aed9aca52cb6eaf53c848a2 Mon Sep 17 00:00:00 2001 From: Hoang Snowy Date: Wed, 4 Nov 2026 00:01:14 +0700 Subject: [PATCH] fix(lab): lab test points the API-token E2E at the lab Api and gives the live Workflow run its time lab.ps1 test left AGENTOS_API_URL unset, so ApiTokensRealAuthTests called the dev Api on :5080 and was refused, and the live 5-agent Workflow test kept its 90 s default although a real pipeline on the paired runner takes minutes. Both failed on the 2026-11-04 lab run after an update. lab.ps1 now sets the lab Api (:6080) and a 1200 s live-run budget (an explicit AGENTOS_E2E_RUN_TIMEOUT_SECONDS still wins). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB --- docs/LAB.md | 3 ++- infra/lab/lab.ps1 | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/LAB.md b/docs/LAB.md index 783c6a1b..f5b7104b 100644 --- a/docs/LAB.md +++ b/docs/LAB.md @@ -191,7 +191,8 @@ real data when it is there shows it. ## Run the lab tests ```powershell -pwsh infra/lab/lab.ps1 test # lab integration tests + the real-auth UI E2E, wired to the lab ports +pwsh infra/lab/lab.ps1 test # lab integration tests + the real-auth UI E2E, wired to the lab ports (Web, Api :6080, + # Keycloak, MailHog, Postgres) with a 20-min live-run budget for the Workflow test ``` Without `RUN_AGENTOS_LAB=true` (CI, other machines) every lab test skips with a precise reason. Each test diff --git a/infra/lab/lab.ps1 b/infra/lab/lab.ps1 index bbc0cf69..3d78ef2e 100644 --- a/infra/lab/lab.ps1 +++ b/infra/lab/lab.ps1 @@ -227,6 +227,10 @@ switch ($Command) { $env:AGENTOS_REAL_URL = $WebUrl $env:MAILHOG_URL = 'http://localhost:9025' $env:AGENTOS_KC_URL = 'https://localhost:9080' # Keycloak admin API, for tests that clean up users they create + # The lab's Api (the API-token test otherwise defaults to the dev Api on :5080 and is refused), and a live-run + # budget for the Workflow test: a real 5-agent pipeline on the paired runner takes minutes, not the 90 s default. + $env:AGENTOS_API_URL = 'https://localhost:6080' + if (-not $env:AGENTOS_E2E_RUN_TIMEOUT_SECONDS) { $env:AGENTOS_E2E_RUN_TIMEOUT_SECONDS = '1200' } if ($pgPort) { $env:AGENTOS_PG_CONN = "Host=localhost;Port=$pgPort;Database=agentos;Username=postgres;Password=postgres" } Write-Host '== Lab integration tests (real GitHub / Azure DevOps)' # Tests run from the lab worktree: same code as the running lab, own build output (no dev-checkout locks).