Skip to content

Commit

Permalink
Merge branch 'main' into fix-bio_callback-test
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth authored Feb 8, 2024
2 parents 671bc99 + af5fe84 commit 9884e23
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 19 deletions.
28 changes: 26 additions & 2 deletions tests/ci/cdk/cdk/codebuild/github_ci_integration_omnibus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ batch:
variables:
AWS_LC_CI_TARGET: "tests/ci/integration/run_crt_integration.sh"

- identifier: openssh_integration_x86_64
- identifier: openssh_integration_master_x86_64
buildspec: tests/ci/codebuild/common/run_simple_target.yml
env:
type: LINUX_CONTAINER
Expand All @@ -45,8 +45,31 @@ batch:
image: 620771051181.dkr.ecr.us-west-2.amazonaws.com/aws-lc-docker-images-linux-x86:amazonlinux-2023_clang-15x_sanitizer_latest
variables:
AWS_LC_CI_TARGET: "tests/ci/integration/run_openssh_integration.sh"
OPENSSH_BRANCH: "master"

- identifier: openssh_integration_aarch
- identifier: openssh_integration_8_9_x86_64
buildspec: tests/ci/codebuild/common/run_simple_target.yml
env:
type: LINUX_CONTAINER
privileged-mode: false
compute-type: BUILD_GENERAL1_SMALL
image: 620771051181.dkr.ecr.us-west-2.amazonaws.com/aws-lc-docker-images-linux-x86:amazonlinux-2023_clang-15x_sanitizer_latest
variables:
AWS_LC_CI_TARGET: "tests/ci/integration/run_openssh_integration.sh"
OPENSSH_BRANCH: "V_8_9"

- identifier: openssh_integration_master_aarch
buildspec: tests/ci/codebuild/common/run_simple_target.yml
env:
type: ARM_CONTAINER
privileged-mode: false
compute-type: BUILD_GENERAL1_LARGE
image: 620771051181.dkr.ecr.us-west-2.amazonaws.com/aws-lc-docker-images-linux-aarch:amazonlinux-2023_clang-15x_sanitizer_latest
variables:
AWS_LC_CI_TARGET: "tests/ci/integration/run_openssh_integration.sh"
OPENSSH_BRANCH: "master"

- identifier: openssh_integration_8_9_aarch
buildspec: tests/ci/codebuild/common/run_simple_target.yml
env:
type: ARM_CONTAINER
Expand All @@ -55,6 +78,7 @@ batch:
image: 620771051181.dkr.ecr.us-west-2.amazonaws.com/aws-lc-docker-images-linux-aarch:amazonlinux-2023_clang-15x_sanitizer_latest
variables:
AWS_LC_CI_TARGET: "tests/ci/integration/run_openssh_integration.sh"
OPENSSH_BRANCH: "V_8_9"

- identifier: postgres_integration_x86_64
buildspec: tests/ci/codebuild/common/run_nonroot_target.yml
Expand Down
5 changes: 4 additions & 1 deletion tests/ci/integration/run_mariadb_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ main.flush_logs_not_windows : query 'flush logs' succeeded - should have failed
main.mysql_upgrade_noengine : upgrade output order does not match the expected
main.plugin_load : This test generates a warning in Codebuild. Skip over since this isn't relevant to AWS-LC.
main.ssl_crl : This test is flaky in CodeBuild CI P112867839
main.desc_index_min_max : This test is flaky in CodeBuild CI P112867839"> skiplist
main.desc_index_min_max : This test is flaky in CodeBuild CI P112867839
main.ssl_autoverify : Failing with - TLS/SSL error: unable to get local issuer certificate
main.mysql : Failing with - TLS/SSL error: unable to get local issuer certificate
main.ssl_fp : Failing with - TLS/SSL error: unable to get local issuer certificate"> skiplist
./mtr --suite=main --force --parallel=auto --skip-test-list=${MARIADB_BUILD_FOLDER}/mysql-test/skiplist --retry-failure=2
popd
}
Expand Down
4 changes: 2 additions & 2 deletions tests/ci/integration/run_mysql_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function mysql_patch_reminder() {
}

function mysql_build() {
cmake ${MYSQL_SRC_FOLDER} -GNinja -DWITH_BOOST=${BOOST_INSTALL_FOLDER} -DWITH_SSL=${AWS_LC_INSTALL_FOLDER} "-B${MYSQL_BUILD_FOLDER}"
ninja -C ${MYSQL_BUILD_FOLDER}
cmake ${MYSQL_SRC_FOLDER} -GNinja -DWITH_BOOST=${BOOST_INSTALL_FOLDER} -DWITH_SSL=${AWS_LC_INSTALL_FOLDER} "-B${MYSQL_BUILD_FOLDER}" -DCMAKE_BUILD_TYPE=RelWithDebInfo
time ninja -C ${MYSQL_BUILD_FOLDER}
ls -R ${MYSQL_BUILD_FOLDER}
}

Expand Down
24 changes: 12 additions & 12 deletions tests/ci/integration/run_openssh_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ function openssh_build() {

function checkout_openssh_branch() {
pushd "${OPENSSH_WORKSPACE_FOLDER}"
make clean
git clean -f -d
git checkout --track origin/"$1"
popd
Expand All @@ -80,24 +79,25 @@ function openssh_run_tests() {
mkdir -p "${AWS_LC_BUILD_FOLDER}" "${AWS_LC_INSTALL_FOLDER}" "${OPENSSH_INSTALL_FOLDER}"

# Get latest OpenSSH version.
git clone https://github.com/openssh/openssh-portable.git
git clone https://github.com/openssh/openssh-portable.git "${OPENSSH_WORKSPACE_FOLDER}"
ls

# Buld AWS-LC as a shared library
# Build AWS-LC as a shared library
aws_lc_build "$SRC_ROOT" "$AWS_LC_BUILD_FOLDER" "$AWS_LC_INSTALL_FOLDER" -DBUILD_TESTING=OFF -DBUILD_TOOL=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=1
install_aws_lc

CODEBUILD_SKIPPED_TESTS="agent-subprocess forwarding multiplex channel-timeout forward-control agent-restrict connection-timeout"
if [ "$OPENSSH_BRANCH" != "master" ]; then
checkout_openssh_branch "$OPENSSH_BRANCH"
fi

# Using default branch. Build openssh and run tests.
openssh_build
openssh_run_tests "${CODEBUILD_SKIPPED_TESTS}"

# Using branch V_8_9
checkout_openssh_branch V_8_9
openssh_build
# In v8.9, the "percent" test requires the 'openssl' cli command
openssh_run_tests "percent ${CODEBUILD_SKIPPED_TESTS}"
CODEBUILD_SKIPPED_TESTS="agent-subprocess forwarding multiplex channel-timeout forward-control agent-restrict connection-timeout"
if [ "$OPENSSH_BRANCH" == "V_8_9" ]; then
# In v8.9, the "percent" test requires the 'openssl' cli command
openssh_run_tests "percent ${CODEBUILD_SKIPPED_TESTS}"
else
openssh_run_tests "${CODEBUILD_SKIPPED_TESTS}"
fi

popd

4 changes: 2 additions & 2 deletions tests/ci/run_fuzz_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ set -u
# 18 minutes for cleanup and merging files
if [[ $PLATFORM == "aarch64" ]]; then
# Arm sanitizers are very slow which causes the clean up time to take longer per
# fuzz test, only run for 16 minutes
TOTAL_FUZZ_TEST_TIME=1000
# fuzz test, only run for 8 minutes
TOTAL_FUZZ_TEST_TIME=500
else
TOTAL_FUZZ_TEST_TIME=1500
fi
Expand Down

0 comments on commit 9884e23

Please sign in to comment.