Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
53267e1
ci(nix): Move python env to uv
dougch May 20, 2025
2d7d117
add sslyze to the regular nix integ job; simplify uv setup
dougch May 20, 2025
5e0912f
adding junit output and flags to make uv pytest behave the same as th…
dougch May 21, 2025
a683844
Merge branch 'main' into nix_sslyze
dougch May 21, 2025
beff737
Reduce PR bloat; simplify the uvinteg function
dougch May 21, 2025
378e36e
Merge branch 'main' into nix_sslyze
dougch May 22, 2025
d14e0b6
Update nix/shell.sh
dougch May 22, 2025
e9639de
the current nix integ tests need to keep working with this change
dougch May 23, 2025
d63e8a7
PR feedback
dougch May 28, 2025
6d118a0
add a stress wrapper to the nix devshell; decrease niceness of uvinte…
dougch May 29, 2025
b8f38ce
reverting nice attempt
dougch May 29, 2025
eb3bb1f
Merge branch 'main' into nix_sslyze
johubertj Jun 2, 2025
1708b15
Merge branch 'main' into nix_sslyze
johubertj Jun 2, 2025
35acee0
PR feedback
dougch Jun 10, 2025
e48a9d2
fix(ci): run the renegotiate_apache test with nix/uv-pytest
dougch Jun 10, 2025
1eb7a49
Merge branch 'main' into nix_reneg_apache
dougch Jun 11, 2025
4514190
merge conflict cleanup
dougch Jun 11, 2025
5686af3
remove reneg_apache from existin nix integ job
dougch Jun 13, 2025
351b88f
Merge branch 'main' into nix_reneg_apache
dougch Jun 17, 2025
573da03
skip to the end of this process
dougch Jun 17, 2025
144694e
lint miss
dougch Jun 17, 2025
518f12b
Merge branch 'main' into nix_reneg_apache
dougch Jun 24, 2025
5326073
add session_resumption back into uv snapshot check
dougch Jun 24, 2025
3bb8940
PR feedback; formatting
dougch Jun 24, 2025
c9c9acd
rework uvinteg snapshot check command
dougch Jun 24, 2025
0bc816e
move apache start earlier
dougch Jun 24, 2025
7936b09
handle undefined
dougch Jun 25, 2025
054a5d8
Merge branch 'main' into nix_reneg_apache
dougch Jul 8, 2025
12ba4a1
Merge branch 'main' into nix_reneg_apache
dougch Jul 9, 2025
9e2c08a
Merge branch 'main' into nix_reneg_apache
dougch Jul 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PR feedback
  • Loading branch information
dougch committed May 28, 2025
commit d63e8a7ff026088dabd6b5536381ce8bcabae0e8
5 changes: 3 additions & 2 deletions codebuild/spec/buildspec_integv2_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ env:
# Excluded from nix:
# - dynamic_record_sizes (fails on aarch64)

# Run with uv/pytest and not ctest
# Run with uv/pytest and not ctest.
# We're still seeing failures/flakiness with 7 tests.
INTEG_UV_TESTS:
sslyze

Expand Down Expand Up @@ -167,7 +168,7 @@ phases:
commands:
- |
if [[ ! $CODEBUILD_BATCH_BUILD_IDENTIFIER =~ .*"nixCache".* ]]; then
nix develop $NIXDEV_ARGS $NIXDEV_LIBCRYPTO --command bash -c "source ./nix/shell.sh;integ $INTEG_UV_TESTS"
nix develop $NIXDEV_ARGS $NIXDEV_LIBCRYPTO --command bash -c "source ./nix/shell.sh;integ $INTEGV2_TESTS"
nix develop $NIXDEV_ARGS $NIXDEV_LIBCRYPTO --command bash -c "source ./nix/shell.sh;uvinteg $INTEG_UV_TESTS"
fi

Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 14 additions & 11 deletions nix/shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ export PATH=$SRC_ROOT/build/bin:$PATH

# Function to display a formatted banner with the provided text
banner()
{
printf " %-55s \n" "$1"
{ if [ -z "$2" ]; then
local WRAPPER="+---------------------------------------------------------+\n"
else
local WRAPPER=""
fi
printf "$WRAPPER %-55s \n$WRAPPER" "$1"
}

# Function to create aliases for different libcrypto implementations
Expand All @@ -19,10 +23,10 @@ function libcrypto_alias {

if [[ -f $libcrypto_binary_path ]]; then
alias $libcrypto_name=$libcrypto_binary_path
banner "Libcrypto binary $libcrypto_binary_path available as $libcrypto_name"
banner "Libcrypto binary $libcrypto_binary_path available as $libcrypto_name" quiet
elif [[ -f $lib_binary_path ]]; then
alias $libcrypto_name=$lib_binary_path
banner "Libcrypto binary $lib_binary_path available as $libcrypto_name"
banner "Libcrypto binary $lib_binary_path available as $libcrypto_name" quiet
else
banner "Could not find libcrypto binary for $libcrypto_name"
fi
Expand All @@ -37,12 +41,12 @@ libcrypto_alias libressl "${LIBRESSL_INSTALL_DIR}/bin/openssl"
# No need to alias gnutls because it is included in common_packages (see flake.nix).

function clean {(set -e
banner "Cleanup ./build"
banner "Cleanup ./build" quiet
rm -rf ./build ./s2n_head
)}

function configure {(set -e
banner "Configuring with cmake"
banner "Configuring with cmake" quiet
cmake -S . -B./build \
-DBUILD_TESTING=ON \
-DS2N_INTEG_TESTS=ON \
Expand Down Expand Up @@ -71,8 +75,8 @@ function unit {(set -e
ctest --test-dir build -L unit -j $(nproc) --verbose
else
tests=$(ctest --test-dir build -N -L unit | grep -E "Test +#" | grep -Eo "[^ ]+_test$" | grep "$1")
banner "Tests:"
banner "$tests"
banner "Tests:" quiet
banner "$tests" quiet
# Split the tests string into words
for test in $tests
do
Expand Down Expand Up @@ -104,10 +108,9 @@ function uvinteg {(
cd ./tests/integrationv2
banner "Warning: unsetting PYTHONPATH; you may need to exit this devshell to reset the python environment."
unset PYTHONPATH
# tests reliably fail on large instances with more than 50 workers.
local PYTEST_ARGS="--provider-version $S2N_LIBCRYPTO -x -n auto --maxprocesses=50 --reruns=2 --durations=10 -rpfs --cache-clear"
local PYTEST_ARGS="--provider-version $S2N_LIBCRYPTO -x -n auto --reruns=2 --durations=10 -rpfs --cache-clear"
if [[ -z "$1" ]]; then
banner "Running all integ tests with uv"
banner "Running all integ tests with uv" quiet
uv run pytest $PYTEST_ARGS --junitxml=../../build/junit/uv_integ.xml
else
for test in "$@"; do
Expand Down
Loading