Chore Type
CI/CD Configuration (GitHub Actions)
Task Description
I believe that AddressSanitizer and ThreadSanitizer need to be enabled when running Unit Test in CI.
Motivation / Benefit
AddressSanitizer and ThreadSanitizer can help uncover some potential, hard-to-detect memory safety or thread safety issues.
Related Files (Optional)
No response
Implementation Plan (Optional)
- In our current build scripts, there is already a switch to enable AddressSanitizer, just turn on this switch.
- It may be necessary to introduce a new build option like
-fsanitize=thread to enable ThreadSanitizer functionality.
- If the time cost and machine overhead of running AddressSanitizer and ThreadSanitizer for each PR are significant, it can be set to run once a day. You can refer to https://github.com/bytedance/bolt/blob/4a3764b694071db6d82cfbb53835769a019bbe6b/.github/workflows/setup-env.yml.
Additional Context
No response
Chore Type
CI/CD Configuration (GitHub Actions)
Task Description
I believe that AddressSanitizer and ThreadSanitizer need to be enabled when running Unit Test in CI.
Motivation / Benefit
AddressSanitizer and ThreadSanitizer can help uncover some potential, hard-to-detect memory safety or thread safety issues.
Related Files (Optional)
No response
Implementation Plan (Optional)
bolt/conanfile.py
Line 106 in f62e774
-fsanitize=threadto enable ThreadSanitizer functionality.Additional Context
No response