Skip to content

Commit

Permalink
ci: Move kTLS test out of GeneralBatch (#4904)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch authored Nov 20, 2024
1 parent d640b7e commit d9df784
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
26 changes: 26 additions & 0 deletions codebuild/spec/buildspec_al2023_ktls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# This is designed to work with CodeBuild's reserved instances fleet and curated Ec2 AMI for AL2023.
version: 0.2
env:
variables:
NIX_CACHE_BUCKET: "s3://s2n-tls-nixcachebucket-x86-64?region=us-west-2"
S2N_KTLS_TESTING_EXPECTED: 1
phases:
install:
commands:
- yum update -y; yum upgrade -y
pre_build:
commands:
# Nix is installed, but intentionally not setup for root, fix that
- cp -aR /home/nix/.nix-profile ~/; chown -R root /root/.nix-profile; export PATH=$HOME/.nix-profile/bin:$PATH
# Turn on flakes
- mkdir -p ~/.config/nix; echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
# Populate the store from the nix cache
- nix copy --from $NIX_CACHE_BUCKET --all --no-check-sigs
# Load the TLS kernel module
- sudo modprobe tls
- echo "Checking that the TLS kernel mod loaded..."; test $(sudo lsmod|grep -c tls) = 1
build:
commands:
- nix develop .#openssl111 --command bash -c 'source ./nix/shell.sh && clean && configure && unit'
- S2N_CMAKE_OPTIONS="-DASAN=ON" nix develop .#openssl111 --command bash -c 'source ./nix/shell.sh && clean && configure && unit'
14 changes: 0 additions & 14 deletions codebuild/spec/buildspec_generalbatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -388,17 +388,3 @@ batch:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu22codebuild
- identifier: ktls
buildspec: codebuild/spec/buildspec_ktls.yml
env:
compute-type: BUILD_GENERAL1_LARGE
image: aws/codebuild/standard:7.0
privileged-mode: true
- identifier: ktlsASAN
buildspec: codebuild/spec/buildspec_ktls.yml
env:
compute-type: BUILD_GENERAL1_LARGE
image: aws/codebuild/standard:7.0
privileged-mode: true
variables:
S2N_CMAKE_OPTIONS: "-DASAN=ON"

0 comments on commit d9df784

Please sign in to comment.