Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run asan in CI and stabilize write barrier test #120

Merged
merged 10 commits into from
Oct 20, 2021
Merged

Conversation

tabokie
Copy link
Member

@tabokie tabokie commented Oct 19, 2021

Signed-off-by: tabokie xy.tao@outlook.com

Run ASAN in linux CI pipeline. The write barrier test is unstable when ran under asan/miri, fixing it. Also some housekeeping work: remove build step in CI, remove useless code.

TSAN still can't run because we use crossbeam channel for parallel recovery.

@skyzh
Copy link
Member

skyzh commented Oct 19, 2021

Crossbeam channel will definitely cause race condition, as a feature. So this won’t work.

@tabokie tabokie changed the title Run sanitizer in CI stabilize write barrier test Oct 19, 2021
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
@skyzh
Copy link
Member

skyzh commented Oct 19, 2021

Crossbeam channel will definitely cause race condition, as a feature. So this won’t work.

FYI tikv/agatedb#51

@tabokie
Copy link
Member Author

tabokie commented Oct 19, 2021

Crossbeam channel will definitely cause race condition, as a feature. So this won’t work.

FYI tikv/agatedb#51

Thanks for the pointer, but crossbeam is actually not needed anymore after #77.

Anyhow, sanitizer currently can't build, seemingly caused by https://github.com/HdrHistogram/HdrHistogram_rust. I might look into that later.

Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
@skyzh
Copy link
Member

skyzh commented Oct 19, 2021

BTW, running ASAN also requires -Zbuild-std --target x86_64-unknown-linux-gnu.

Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
@tabokie tabokie changed the title stabilize write barrier test run asan in CI and stabilize write barrier test Oct 20, 2021
@tabokie tabokie merged commit 7860037 into tikv:master Oct 20, 2021
@tabokie tabokie deleted the san branch October 20, 2021 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants