From 529e3444503885aa32ee3fbfee4cc17f99538fa2 Mon Sep 17 00:00:00 2001 From: Yingwen Date: Wed, 15 May 2024 20:34:10 +0800 Subject: [PATCH] ci: Use lld linker in windows tests (#3946) * ci: disable other test * ci: timeout 30 * ci: try to use lld * ci: change linker * test: wait for file change in test multiple times * ci: enable other tests * chore: revert sleep in loop --- .github/workflows/nightly-ci.yml | 8 ++++++-- src/servers/src/tls.rs | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml index 1665d9547264..d0eb2aedc72e 100644 --- a/.github/workflows/nightly-ci.yml +++ b/.github/workflows/nightly-ci.yml @@ -1,6 +1,6 @@ on: schedule: - - cron: '0 23 * * 1-5' + - cron: "0 23 * * 1-5" workflow_dispatch: name: Nightly CI @@ -76,6 +76,9 @@ jobs: - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} + - uses: KyleMayes/install-llvm-action@v1 + with: + version: "14.0" - name: Install Rust toolchain uses: dtolnay/rust-toolchain@master with: @@ -88,7 +91,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: "3.10" - name: Install PyArrow Package run: pip install pyarrow - name: Install WSL distribution @@ -98,6 +101,7 @@ jobs: - name: Running tests run: cargo nextest run -F pyo3_backend,dashboard env: + CARGO_BUILD_RUSTFLAGS: "-C linker=lld-link" RUST_BACKTRACE: 1 CARGO_INCREMENTAL: 0 GT_S3_BUCKET: ${{ vars.AWS_CI_TEST_BUCKET }} diff --git a/src/servers/src/tls.rs b/src/servers/src/tls.rs index 2055081012ca..9a3082b46c7e 100644 --- a/src/servers/src/tls.rs +++ b/src/servers/src/tls.rs @@ -391,6 +391,8 @@ mod tests { #[test] fn test_tls_file_change_watch() { + common_telemetry::init_default_ut_logging(); + let dir = tempfile::tempdir().unwrap(); let cert_path = dir.path().join("serevr.crt"); let key_path = dir.path().join("server.key");