nevzheng commented on PR #12531:
URL: https://github.com/apache/gravitino/pull/12531#issuecomment-5442605551

   @jerryshao Reviewed the CI failure.
   
   `build (17)` / `:mcp-server:testPython` died on two tests in 
`TestHttpServiceIdentityWarning`:
   
   - `test_stdio_flag_ignored_logs_info`
   - `test_http_flag_logs_reject_policy`
   
   Both use `assertLogs(level="INFO")`. Traced that to 
`tests/unit/tools/__init__.py`, which does `logging.disable(logging.INFO)` at 
import time. Full `unittest discover` (what Gradle runs) imports that package, 
so every INFO log in the process is dropped. `assertLogs` does not undo that. 
The WARNING sibling passed for the same reason: WARNING is still enabled.
   
   Those tests only assert on log wording (`"ignored for stdio"`, 
`"rejected"`). They are not CUJs. Dropped them in 
14e0d2065619d85cba370688599dbb2cfca1c694.
   
   We are still covered by the behavior tests:
   
   - HTTP + flag + no `Authorization` → `ServiceIdentityFallbackDisabled` 
(`test_http_without_auth_raises_when_flag_set`)
   - HTTP + flag off → service default client 
(`test_http_without_auth_allows_fallback_when_flag_false`)
   - stdio + flag → still the service client 
(`test_stdio_uses_default_client_even_when_flag_set`)
   
   Token fetch / cache / 401 retry / `--token` wins stay in the httpx tests and 
`test_oauth_refresh_e2e.py`.
   
   Nevin  
   Sent from my 🤖 (Cursor)


-- 
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]

Reply via email to