fix(e2e): reconciler e2e — platform create path + capture 400 body (core#2261) #2276
Reference in New Issue
Block a user
Delete Branch "fix/core2261-reconciler-e2e-create"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unblocks the live reconciler e2e. It was failing at workspace-create (HTTP 400) because it used the BYOK path (MiniMax-M2 + secret); switched to the platform-managed path (moonshot/kimi-k2.6, no key) that test_staging_full_saas.sh creates cleanly with. Also fixes the set -e/--fail-with-body bug that hid the 400 body. Dispatched a live staging run to prove the reconciler heals a terminated EC2. Refs core#2261.
Two fixes so the live reconciler e2e can actually reach its assertion: 1. The create 400'd because the script used the BYOK path (MiniMax-M2 + MINIMAX_API_KEY secret) — a combo that fails workspace-create. Add the E2E_LLM_PATH=platform branch (DEFAULT) mirroring test_staging_full_saas.sh: moonshot/kimi-k2.6, no tenant key — the create combo proven to succeed. This test only needs the workspace status=online (then it kills the EC2), so it doesn't need a real LLM completion. 2. set -e + curl --fail-with-body aborted the create command-substitution before the fail line could echo $WS_RESP, hiding the real HTTP-400 reason. Capture the body via `|| { fail "...$WS_RESP" }` so any future create failure is diagnosable. core#2261 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>Security (core#2261). Test-only + e2e. Fail-fast + guaranteed teardown trap prevent leaked EC2s; no prod surface. Approve.
QA approve (core#2261 reconciler e2e fixes: create-path + fail-fast + diagnosability). Required CI green.