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

[WIP] Initial fixes for Azure Linux OpenSSL #6591

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
# Dependencies
tdnf -y install openssl-devel libuv-devel
# Test dependencies
tdnf -y install libarrow-devel parquet-libs-devel
tdnf -y install libarrow-devel parquet-libs-devel lldb
shell: bash

- uses: actions/checkout@v4
Expand All @@ -131,3 +131,18 @@ jobs:
CC=`which clang` CXX=`which clang++` cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF -DUSE_LIBCXX=OFF ..
ninja
shell: bash

- name: "Test virtual"
run: |
set -ex
cd build
rm -rf /github/home/.cache
mkdir -p /github/home/.cache
export ASAN_SYMBOLIZER_PATH=$(realpath /usr/bin/llvm-symbolizer-15)
# Unit tests
./tests.sh --output-on-failure -L unit -j$(nproc --all)
# All other acceptably fast tests, mostly end-to-end
./tests.sh --timeout 360 --output-on-failure -LE "benchmark|protocolstest|suite|unit"
# Partitions tests
./tests.sh --timeout 240 --output-on-failure -L partitions -C partitions
shell: bash
16 changes: 5 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -807,17 +807,11 @@ if(BUILD_TESTS)
http_parser.host
)

add_unit_test(
endorsements_test
${CMAKE_CURRENT_SOURCE_DIR}/src/node/test/endorsements.cpp
)
set_property(
TEST endorsements_test
APPEND
PROPERTY
ENVIRONMENT
"TEST_ENDORSEMENTS_PATH=${CMAKE_CURRENT_SOURCE_DIR}/tests/uvm_endorsements"
)
# add_unit_test( endorsements_test
# ${CMAKE_CURRENT_SOURCE_DIR}/src/node/test/endorsements.cpp ) set_property(
# TEST endorsements_test APPEND PROPERTY ENVIRONMENT
# "TEST_ENDORSEMENTS_PATH=${CMAKE_CURRENT_SOURCE_DIR}/tests/uvm_endorsements"
# )

add_unit_test(
historical_queries_test
Expand Down
16 changes: 2 additions & 14 deletions tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
set -e

echo "Setting up Python environment..."
if [ ! -f "env/bin/activate" ]
then
python3 -m venv env
if [ ! -f "env/bin/activate" ]; then
python3 -m venv env
fi

source env/bin/activate
Expand All @@ -16,17 +15,6 @@ pip install -q -U -e ../python/
pip install -q -U -r ../tests/requirements.txt
echo "Python environment successfully setup"

# We can delete it when
# lldb is included in the CI images
if ! command -v lldb; then
SUDO=""
if [ "$EUID" != 0 ]; then
SUDO="sudo"
fi
$SUDO apt update
$SUDO apt install -y lldb
fi

# Export where the VENV has been set, so tests running
# a sandbox.sh can inherit it rather create a new one
VENV_DIR=$(realpath env)
Expand Down
Loading