Skip to content

Add ubsan test#3322

Merged
yuzhichang merged 6 commits intoinfiniflow:mainfrom
zpf121:add_ubsan_test
Mar 17, 2026
Merged

Add ubsan test#3322
yuzhichang merged 6 commits intoinfiniflow:mainfrom
zpf121:add_ubsan_test

Conversation

@zpf121
Copy link
Contributor

@zpf121 zpf121 commented Mar 17, 2026

Summary
Add UBSAN (Undefined Behavior Sanitizer) support for restart tests in slow test workflow.

Changes

CMakeLists.txt
Added ENABLE_SANITIZER_UNDEFINED CMake option (existing: ENABLE_SANITIZER_THREAD)
When enabled, compiles with -fsanitize=undefined flag

tools/run_restart_test.py
Added --marker parameter to support filtering tests by pytest markers
Default marker is "not slow" to exclude slow tests (same as before)

pytest.ini
Added ubsan marker definition

python/restart_test/conftest.py
Registered ubsan marker for pytest

.github/workflows/slow_tests.yml
Added debug-ubsan build step with -DENABLE_SANITIZER_UNDEFINED=ON
Added debug_ubsan_restart_test job to run UBSAN tests

@zpf121 zpf121 added the slow-test To trigger slow test label Mar 17, 2026
@zpf121 zpf121 marked this pull request as draft March 17, 2026 07:19
@zpf121 zpf121 marked this pull request as ready for review March 17, 2026 07:19
@zpf121 zpf121 marked this pull request as draft March 17, 2026 08:35
@zpf121 zpf121 added slow-test To trigger slow test and removed slow-test To trigger slow test labels Mar 17, 2026
@zpf121 zpf121 marked this pull request as ready for review March 17, 2026 08:35
@zpf121 zpf121 removed slow-test To trigger slow test labels Mar 17, 2026
@zpf121 zpf121 marked this pull request as draft March 17, 2026 09:44
@zpf121 zpf121 added slow-test To trigger slow test labels Mar 17, 2026
@zpf121 zpf121 marked this pull request as ready for review March 17, 2026 09:44
@zpf121 zpf121 marked this pull request as draft March 17, 2026 09:45
@zpf121 zpf121 added slow-test To trigger slow test and removed slow-test To trigger slow test labels Mar 17, 2026
@zpf121 zpf121 marked this pull request as ready for review March 17, 2026 09:45
@zpf121 zpf121 marked this pull request as draft March 17, 2026 09:45
@zpf121 zpf121 added slow-test To trigger slow test and removed slow-test To trigger slow test labels Mar 17, 2026
@zpf121 zpf121 marked this pull request as ready for review March 17, 2026 09:46
@zpf121 zpf121 marked this pull request as draft March 17, 2026 09:46
@zpf121 zpf121 marked this pull request as ready for review March 17, 2026 09:46
@zpf121 zpf121 marked this pull request as draft March 17, 2026 09:48
@zpf121 zpf121 added slow-test To trigger slow test and removed slow-test To trigger slow test labels Mar 17, 2026
@zpf121 zpf121 marked this pull request as ready for review March 17, 2026 09:48
Copy link
Member

@yuzhichang yuzhichang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yuzhichang yuzhichang merged commit 25872b9 into infiniflow:main Mar 17, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

slow-test To trigger slow test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants