Skip to content

Fix CMake link order for static OpenSSL and Curl dependencies #35

Fix CMake link order for static OpenSSL and Curl dependencies

Fix CMake link order for static OpenSSL and Curl dependencies #35

name: Integration Tests
on: [push, pull_request,repository_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
linux-tests-httpfs:
name: MinIO Tests
runs-on: ubuntu-latest
env:
S3_TEST_SERVER_AVAILABLE: 1
AWS_DEFAULT_REGION: eu-west-1
AWS_ACCESS_KEY_ID: minio_duckdb_user
AWS_SECRET_ACCESS_KEY: minio_duckdb_user_password
DUCKDB_S3_ENDPOINT: duckdb-minio.com:9000
DUCKDB_S3_USE_SSL: false
HTTP_PROXY_PUBLIC: localhost:3128
TEST_PERSISTENT_SECRETS_AVAILABLE: true
CORE_EXTENSIONS: "parquet;json;tpch"
GEN: ninja
VCPKG_TOOLCHAIN_PATH: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
VCPKG_TARGET_TRIPLET: x64-linux
PYTHON_HTTP_SERVER_URL: http://localhost:8008
PYTHON_HTTP_SERVER_DIR: /tmp/python_test_server
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Ninja
shell: bash
run: sudo apt-get update -y -qq && sudo apt-get install -y -qq ninja-build
- name: Setup Ccache
uses: hendrikmuhs/ccache-action@main
with:
key: ${{ github.job }}
save: ${{ github.ref == 'refs/heads/main' || github.repository != 'duckdb/duckdb-httpfs' }}
- name: Setup vcpkg
uses: lukka/[email protected]
with:
vcpkgGitCommitId: 5e5d0e1cd7785623065e77eff011afdeec1a3574
- name: Fix permissions of test secrets
shell: bash
run: chmod -R 700 data/secrets
# TODO: fix the authenticated proxy here
- name: Install and run http proxy squid
shell: bash
run: |
sudo apt-get install squid
./scripts/run_squid.sh --port 3128 --log_dir squid_logs &
- name: Run & Populate Python test server
shell: bash
run: |
mkdir -p $PYTHON_HTTP_SERVER_DIR
cd $PYTHON_HTTP_SERVER_DIR
python3 -m http.server 8008 &
- name: Build
shell: bash
run: make
- name: Install test server
shell: bash
run: |
sudo ./scripts/install_s3_test_server.sh
./scripts/generate_presigned_url.sh
- name: Start test server & run tests
shell: bash
run: |
source ./scripts/run_s3_test_server.sh
source ./scripts/set_s3_test_server_variables.sh
make test