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

CI: Enable ASAN testing #9537

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

ivankochin
Copy link
Contributor

What

Add Address Sanitizer check job to CI

@ivankochin ivankochin self-assigned this Dec 7, 2023
test/gtest/Makefile.am Outdated Show resolved Hide resolved
contrib/test_jenkins.sh Show resolved Hide resolved
config/m4/compiler.m4 Show resolved Hide resolved
buildlib/pr/main.yml Show resolved Hide resolved
contrib/test_jenkins.sh Outdated Show resolved Hide resolved
test/gtest/Makefile.am Outdated Show resolved Hide resolved
test/gtest/Makefile.am Outdated Show resolved Hide resolved
buildlib/pr/main.yml Outdated Show resolved Hide resolved
contrib/configure-devel Outdated Show resolved Hide resolved
config/m4/compiler.m4 Outdated Show resolved Hide resolved
configure.ac Outdated Show resolved Hide resolved
test/gtest/Makefile.am Outdated Show resolved Hide resolved
test/gtest/Makefile.am Outdated Show resolved Hide resolved
yosefe
yosefe previously approved these changes Dec 12, 2023
@yosefe
Copy link
Contributor

yosefe commented Dec 17, 2023

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@ivankochin
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@ivankochin ivankochin requested a review from yosefe December 28, 2023 11:41
yosefe
yosefe previously approved these changes Dec 28, 2023
@ivankochin ivankochin force-pushed the build/enable-asan-ci-testing branch from adc3370 to 70ffe65 Compare December 28, 2023 13:16
@ivankochin
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@ivankochin
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@@ -170,7 +170,7 @@ resources:
options: $(DOCKER_OPT_ARGS) $(DOCKER_OPT_VOLUMES)
- container: ubuntu22_cuda12
image: rdmz-harbor.rdmz.labs.mlnx/ucx/x86_64/ubuntu22.04-mofed5-cuda12:3
options: $(DOCKER_OPT_ARGS) $(DOCKER_OPT_VOLUMES) $(DOCKER_OPT_GPU)
options: $(DOCKER_OPT_ARGS) --net=host $(DOCKER_OPT_VOLUMES) $(DOCKER_OPT_GPU)
Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIK out dockers should already run with "--net host" by using a wrapper script
Right, @Alexey-Rivkin @artemry-nv ?

Copy link
Contributor

Choose a reason for hiding this comment

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

We have 2 Docker containers with the "host" network mode:
centos7_ib
centos7_cuda11
https://github.com/openucx/ucx/blob/master/buildlib/pr/main.yml#L12-L17
Others default to the "bridge" network mode.

Copy link
Contributor

@yosefe yosefe Jan 7, 2024

Choose a reason for hiding this comment

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

@Alexey-Rivkin thanks. Basically, all dockers that run gtest should be with "--net host". I guess most dockers are build only.
Can we add "--net host" to DOCKER_OPT_IB?

@ivankochin ivankochin requested a review from yosefe January 7, 2024 17:45
yosefe
yosefe previously approved these changes Jan 8, 2024
@ivankochin ivankochin force-pushed the build/enable-asan-ci-testing branch from 582c42b to 6756bb8 Compare January 8, 2024 08:34
@ivankochin
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@yosefe yosefe enabled auto-merge January 8, 2024 09:58
Comment on lines 1120 to 1123
# build for devel tests and gtest
build devel --enable-gtest --enable-asan --without-valgrind

# all are running gtest
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: comments are not really informative here (copy-past)? I'd remove

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

test/gtest/common/test_helpers.cc Show resolved Hide resolved
brminich
brminich previously approved these changes Jan 9, 2024
@ivankochin ivankochin force-pushed the build/enable-asan-ci-testing branch from 2832b28 to f3441f4 Compare January 11, 2024 06:57
@yosefe yosefe merged commit 14ff11c into openucx:master Jan 13, 2024
122 checks passed
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.

5 participants