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

   ### Background
   
   BE unit tests share a process-wide configuration registry. The listener from 
#71446 applies declared settings before each suite or fixture starts and 
restores the registry at test boundaries. The parallel runner records the 
writes that a test leaves outside those declarations.
   
   ### What problem does this PR solve?
   
   Issue Number: #71314
   Related PR: #71446 (config isolation framework), #71419 (parallel test 
runner)
   PR Type: Test
   
   Problem Summary:
   
   Many BE fixtures still set and restore global config by hand. This change 
gives the remaining non-storage suites explicit starting values and routes 
mid-test changes through the listener. It also migrates the row-ID conversion 
cases and preserves the checks that exercise the production config APIs.
   
   ### Details
   
   - **Change map:** All 134 files are BE tests (+1,679/-2,291). The first 
commit migrates the original suites and shared fixture helpers (+1,620/-2,227). 
The second seeds the peer-read throttle just before timing the read (+5/-13). 
The third migrates Paimon writer, quantile state, and Lance scalar-index tests 
from the updated base (+54/-51).
   - **Scenarios:** File-cache startup and FD-cache validation, remote spill, 
parameterized point queries, JNI death tests, and RPC TLS fixtures. The added 
migrations preserve the Paimon admission and retry checks, the quantile 
compression gate, and reads across indexed and uncovered Lance fragments.
   - **What existing tests miss:** A passing test can leave a config value 
behind. The runner's per-batch reports check for residual writes in the same 
cases.
   - **Fails when broken:** Before the rebase, PR6 reported 124 residual writes 
in the original selected suites. The migrated suites reported zero with the 
same selection.
   - **Failure:** A shuffled peer-read test measured 4 ms against its required 
400 ms wait. The original peer case missed the bound in three fresh PR6 
processes.
   - **Cause:** The 500 ms of seeded throttle debt could expire while the RPC 
server was starting. Both throttle cases now seed the debt immediately before 
the timed read.
   - **Stability evidence:** Before the rebase, both revised throttle cases 
passed three fresh-process runs and the full affected selection passed with the 
same shuffle seed.
   
   ### Testing
   
   - On the rebased macOS ARM64 ASAN build, registration order and shuffle seed 
48256 each passed 3,171 tests and skipped six across 217 suites, with zero 
config diagnostics. The XML reports cover all 3,137 cases from the original 
selection and 40 additional cases.
   
   ### Notes for Reviewers
   
   - The listener owns fixture-level restoration. Scoped overrides that end 
within a test and calls to production config APIs under test keep their 
existing lifetimes.
   - A pre-rebase batch containing TLS and peer-cache tests once aborted after 
all 39 cases passed. The same batch then exited normally in 12 fresh processes 
per revision on PR6 and on the initial migration candidate. The cause remains 
unconfirmed.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Behavior changed: No
   - Does this need documentation: No
   - Pre-submission status: Ready
   
   ### AI Disclosure
   
   - Tool: OpenAI Codex (GPT-6)
   - Generated: The migration port, fixture timing fix, follow-up migrations, 
verification, and PR description.
   - Human review: not stated
   


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