-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a CI dimension to support SDE+ASAN on Ubuntu 22.04. No memory leaks were detected with the additional coverage, but some of these tests hang and never exit when kicked off by the go test runner. The current workaround is to set a 20 minute timer on the tests. Once the timer is up and the process hasn't exited, we kill the process and check stdout to see if the tests have actually passed or not. This workaround is only applied to SDE as of now. I've created CryptoAlg-2154 to help us investigate reasons this is happening for SDE+ASAN, but it shouldn't block us from adding new coverage for this.
- Loading branch information
1 parent
675d509
commit a8b2a0c
Showing
12 changed files
with
145 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
tests/ci/codebuild/linux-x86/amazonlinux-2_gcc-7x_intel-sde.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
tests/ci/docker_images/linux-x86/ubuntu-22.04_clang-14x-sde/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 OR ISC | ||
|
||
FROM ubuntu-22.04:base | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
ENV SDE_VERSION_TAG=sde-external-9.21.1-2023-04-24-lin | ||
ENV SDE_MIRROR_URL="https://downloadmirror.intel.com/777395/sde-external-9.21.1-2023-04-24-lin.tar.xz" | ||
|
||
RUN set -ex && \ | ||
apt-get update && \ | ||
apt-get -y --no-install-recommends upgrade && \ | ||
apt-get -y --no-install-recommends install \ | ||
clang-14 clang++-14 \ | ||
# This provides command `getenforce`, which can tell the current status of SELinux. | ||
# Based on Interl SDE README, SELinux should be turned off to allow pin to work. | ||
selinux-basics \ | ||
wget \ | ||
xz-utils \ | ||
tar && \ | ||
# Install Intel® Software Development Emulator | ||
# This emulator is needed when running BoringSSL/AWS-LC code under Intel's SDE for each supported chip (like ice lake). | ||
# https://software.intel.com/content/www/us/en/develop/articles/intel-software-development-emulator.html#system-configuration | ||
wget ${SDE_MIRROR_URL} && tar -xf "${SDE_VERSION_TAG}.tar.xz" && rm "${SDE_VERSION_TAG}.tar.xz" && \ | ||
apt-get autoremove --purge -y && \ | ||
apt-get clean && \ | ||
apt-get autoclean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /tmp/* | ||
|
||
ENV CC=clang-14 | ||
ENV CXX=clang++-14 | ||
|
||
# Notes: There are two SDE executables for Linux, sde64 and sde. | ||
# | ||
# Intel SDE supports running applications in their native mode. This means if the application is 64 bit application then SDE | ||
# will run it in 64 bit mode, but if the application is compiled to 32 bits then SDE will run it in 32 bit mode. | ||
# The executable sde64 is available only in Linux because most Linux distributions do not include the 32 bit runtime. It is | ||
# used only when 32 bit applications are not supported on the host system. | ||
ENV SDEROOT="/${SDE_VERSION_TAG}" | ||
ENV PATH="$SDEROOT:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 OR ISC | ||
|
||
source tests/ci/common_posix_setup.sh | ||
|
||
sde_getenforce_check | ||
|
||
echo "Testing AWS-LC in debug mode under Intel's SDE with address sanitizer." | ||
build_and_test_with_sde -DASAN=1 | ||
|
||
echo "Testing AWS-LC in release mode under Intel's SDE with address sanitizer." | ||
build_and_test_with_sde -DCMAKE_BUILD_TYPE=Release -DASAN=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters