Skip to content

[Chore] Enable AddressSanitizer and ThreadSanitizer in CI #394

@wangxinshuo-bolt

Description

@wangxinshuo-bolt

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)

  1. In our current build scripts, there is already a switch to enable AddressSanitizer, just turn on this switch.
    "enable_asan": False,
  2. It may be necessary to introduce a new build option like -fsanitize=thread to enable ThreadSanitizer functionality.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TestIssue related with unit test / fuzzer test / quality tool & test coverageciPipeline & resource management for continuous integrationgood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions