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

   ### Background
   
   BE unit tests and the code they exercise read the same process-wide config 
registry. The parallel runner from #71419 runs suites in batches, so two tests 
that share a process may run in different orders or alongside different suites.
   
   ### What problem does this PR solve?
   
   Issue Number: #71314
   Related PR: #71419 (parallel runner)
   PR Type: Test
   
   Problem Summary:
   
   A config value left by one test can change how a later fixture is built. The 
test binary snapshots the registry after global setup, applies declared 
overrides before suite setup and fixture construction, and restores the 
appropriate baseline at each boundary. Fixtures that rely on cache, storage, or 
compaction settings declare them at the scope that needs them. Undeclared 
writes are reported during the migration.
   
   ### Details
   
   - **Change map:** Tests and test infrastructure account for +2,054/-731 
lines. The framework and its self-tests add 1,482 lines. Fixture migrations 
account for the rest of that group. The runner and its self-test contribute 
+7/-1 lines for per-batch diagnostics.
   - **Scenarios:** Suite and case setup order, reset callbacks, expected 
writes, validator failures, typed and parameterized tests, and re-executed 
death-test children.
   - **What existing tests miss:** The existing parallel-runner self-test 
covers worker isolation. The new tests check that two cases in the same process 
see their own settings, and that restoring values also restores 
callback-managed state.
   - **Fails when broken:** Removing the diagnostic path assignment from an 
isolated copy of the runner makes its per-batch report check fail. The config 
self-tests assert the values observed during fixture setup and the values and 
callbacks after reset.
   
   ### Testing
   
   - On the rebased macOS ARM64 ASAN candidate, registration order and shuffle 
seed 48256 each passed 837 tests and skipped 37. Both runs passed all 25 
framework cases and included the 740 previously selected cases plus 134 
additional cases. The two runs produced the same 21 config diagnostics as the 
pre-rebase ordered run.
   - Before rebasing onto the #71419 merge commit, macOS and Linux ARM64 ASAN 
each passed 703 affected tests and skipped 37 in both registration order and 
shuffle seed 48256. All 25 config framework cases passed.
   - On that same revision, both macOS full runs passed 17,831 tests and 
skipped 78, with two existing VGeo failures. Both Linux ARM64 full runs passed 
17,843 and skipped 70, with four existing storage byte-baseline failures. All 
four runs reported the same 922 undeclared writes.
   - The 51-check parallel-runner self-test passed on both platforms before the 
rebase and on macOS after it.
   
   ### Notes for Reviewers
   
   - The listener captures suite declarations before `SetUpTestSuite()`, so 
fixtures can consume values during construction. The re-executed GoogleTest 
death-test child applies the same declarations in its final global test 
environment.
   - Installation starts in `be/test/testutil/run_all_tests.cpp`. The listener 
and fixtures use the same code path whether the runner uses one process or 
several.
   
   ### 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 port, conflict resolutions, 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