GITHUB#15769: Restore PathHierarchyTokenizer synonym positions for ancestor-path search #5212
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Run special checks: module lucene/sandbox" | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - '*' | |
| push: | |
| branches: | |
| - 'main' | |
| - 'branch_10x' | |
| permissions: {} | |
| jobs: | |
| faiss-tests: | |
| name: tests for the Faiss codec (v${{ matrix.faiss-version }} with JDK ${{ matrix.java }} on ${{ matrix.os }}) | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| java: [ '25' ] | |
| faiss-version: [ '1.11.0' ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install Mamba | |
| uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 #v4.0.1 | |
| with: | |
| miniforge-version: 'latest' | |
| auto-activate-base: 'false' | |
| activate-environment: 'faiss-env' | |
| # TODO: Use only conda-forge if possible, see https://github.com/conda-forge/faiss-split-feedstock/pull/88 | |
| channels: 'pytorch,conda-forge' | |
| conda-remove-defaults: 'true' | |
| - name: Install Faiss | |
| run: mamba install faiss-cpu="${FAISS_VERSION}" "mkl=2024.*" | |
| env: | |
| FAISS_VERSION: ${{ matrix.faiss-version }} | |
| - name: Debug Faiss/MKL libraries | |
| run: | | |
| echo "=== MKL libs in conda prefix ===" | |
| find "$CONDA_PREFIX/lib" -name "libmkl*" | sort | |
| echo "=== faiss libs ===" | |
| find "$CONDA_PREFIX/lib" -name "libfaiss*" | sort | |
| echo "=== ldd on libfaiss_c.so ===" | |
| ldd "$CONDA_PREFIX/lib/libfaiss_c.so" || true | |
| - name: Checkout Lucene | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Prepare Lucene workspace | |
| uses: ./.github/actions/prepare-for-build | |
| - name: Run tests for Faiss codec | |
| run: > | |
| LD_LIBRARY_PATH=$CONDA_PREFIX/lib | |
| ./gradlew -p lucene/sandbox | |
| -Dtests.faiss.run=true | |
| test | |
| --tests "org.apache.lucene.sandbox.codecs.faiss.*" | |
| defaults: | |
| run: | |
| shell: bash -leo pipefail {0} |