gavinchou opened a new pull request, #65749:
URL: https://github.com/apache/doris/pull/65749
## Proposed changes
Cloud UTs can fail at process exit with an existing ASAN crash in
`libfdb_c.so`, while the gtest cases themselves have already run. The runner
should not skip affected tests.
This changes `cloud/script/run_all_tests.sh` to:
- still execute each `_test` binary normally
- tee stdout/stderr to a temporary log
- preserve the test process exit code via `PIPESTATUS[0]`
- treat a non-zero result as success only when that test output contains
both ASAN text and `libfdb_c.so`
A tiny blank-line-only change in `cloud/test/stopwatch_test.cpp` is included
to trigger cloud UT checks.
Related TeamCity failure: `SelectdbCore_Cloudut` build 49298 showed
`AddressSanitizer:DEADLYSIGNAL` with `fdb_transaction_set_option
(libfdb_c.so+0xd889c5)`.
## Testing
```bash
bash -n cloud/script/run_all_tests.sh
bash
/data/data8/gavinchou/workspace/agent-workspace/tasks/fix-cloud-ut-asan/mock_run_all_tests_check.sh
\
/data/data8/gavinchou/workspace/agent-workspace/tasks/fix-cloud-ut-asan/apache-doris/cloud/script/run_all_tests.sh
sh format_code.sh cloud/test/stopwatch_test.cpp
```
--
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]