FreeOnePlus opened a new pull request, #97: URL: https://github.com/apache/doris-mcp-server/pull/97
## Summary - bind the current authentication context before every SQL Profile branch - cover both the no-database and database-only paths that previously raised an unbound-local error - pass the same context through database switching, trace setup, profile enablement, and SQL execution - exercise the production analyzer over Streamable HTTP and actual STDIO, including legacy compatibility ## Stack - Depends on #96 - Incremental commit: `e2e90e0` - This PR is intentionally stacked so `CORE-010` remains independently reviewable ## Verification - red tests reproduced the unbound `auth_context` failure before the fix - targeted analyzer, Streamable HTTP, and actual STDIO tests pass - full pytest: 347 passed, 57 skipped - `uv lock --check` - Ruff on all changed tests and `F821/F823` on the legacy implementation file - `compileall` - `uv build` ## Real Doris verification Environment: `192.168.31.63`, database `hhm_dt_sim`. - Streamable HTTP modern and legacy both executed the Profile SQL without an `auth_context` failure - actual STDIO modern and legacy both executed the same production path - all four paths recovered with a real query returning `org_tenant=47040` - FE HTTP Profile retrieval remains unavailable through the current tunnel topology and is separately tracked by `COMPAT-002`; SQL execution and process recovery were verified here - credentials were not stored in the repository or test assets -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
