linrrzqqq opened a new pull request, #70978:
URL: https://github.com/apache/doris/pull/70978

   ### Background
   
   `PythonServerManager` uses shortened `#ifdef BE_TEST` timeout constants in 
BE unit tests to speed up failure-path tests; production timeouts are separate 
(`5s` start / `20s` pool init).
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: #67352 (updated PythonServerTest), #64039 (added BE_TEST 
timeouts)
   PR Type: Test
   
   Problem Summary:
   
   
`PythonServerTest.EnsurePoolInitializedSucceedsWithOneStuckWorkerAndOneUsableWorker`
 was flaky in `Doris_BEUT` (8/526 failures, ~1.52%, auto-muted) because the 
`BE_TEST` timeouts (`500ms` start / `1000ms` pool init) were too tight under CI 
load and ASAN. This PR relaxes all `BE_TEST`-only timeout constants in 
`PythonServerManager` and updates the dependent test wait bounds; production 
code is unchanged.
   
   ### Details
   
   - **Failure:** Failed at `python_server_test.cpp:646` (`no process became 
available within 1000 ms`) across 8 runs in `Doris_BEUT`, all timing out at `1s 
001ms–1s 002ms`.
   - **Cause:** Under CI contention and ASAN overhead, the usable fake bash 
worker (`bash` -> `mkdir` -> `touch`) occasionally exceeded the `500ms` 
`PROCESS_START_TIMEOUT` and was killed before creating its socket.
   - **Stability evidence:** Relaxed `BE_TEST` timeouts (`start` 500→2000ms, 
`terminate` 100→300ms, `pool init` 1000→4000ms, `repair wait` 200→500ms), 
replaced `touch` with `: >` in the mixed fake script, and raised the affected 
test wait bounds (`2s→8s`, `5s→10s`). Audited TeamCity `Doris_BEUT` across all 
124 Python-related BE UTs (`PythonEnvTest`, `PythonServerTest`, 
`PythonUDAFClientTest`, `PythonUDFMetaTest`, `PythonUDFRuntimeTest`, 
`ArrowBlockConvertorTest`, `UserFunctionCacheTest`) and confirmed no other 
Python UDF UT has instability, mute, or flaky issues.
   
   ### Testing
   
   - Verified in CI (`Doris_BEUT`).
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Behavior changed: No
   - Does this need documentation: No
   - Pre-submission status: Partially verified: BE UT to be verified by CI 
(`Doris_BEUT`).
   
   ### AI Disclosure
   
   - Tool: Antigravity
   - Generated: code, tests, this description
   - Human review: Reviewed before submission.


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

Reply via email to