-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
39 deletions.
There are no files selected for viewing
70 changes: 32 additions & 38 deletions
70
.github/workflows/actions/run-engine-benchmark/action.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,34 @@ | ||
name: Run Engine Benchmark | ||
description: "Run benchmark with specified params" | ||
inputs: | ||
engine: | ||
description: "engine (i.e qdrant-default)" | ||
required: true | ||
dataset: | ||
description: "dataset (i.e random-100)" | ||
required: true | ||
compose_file: | ||
description: "path to docker compose" | ||
required: true | ||
|
||
jobs: | ||
runBenchmarkWithParams: | ||
inputs: | ||
engine: ${{ github.event.inputs.engine }} | ||
dataset: ${{ github.event.inputs.dataset }} | ||
compose_file: ${{ github.event.inputs.compose_file }} | ||
if: > | ||
!( | ||
startsWith(github.event.head_commit.modified, 'tests/') || | ||
startsWith(github.event.head_commit.modified, 'scripts/') || | ||
startsWith(github.event.head_commit.modified, 'monitoring/') || | ||
contains(github.event.head_commit.modified, '.dockerignore') || | ||
contains(github.event.head_commit.modified, '.gitignore') || | ||
contains(github.event.head_commit.modified, '.pre-commit-config.yaml') || | ||
contains(github.event.head_commit.modified, 'Dockerfile') || | ||
contains(github.event.head_commit.modified, 'LICENSE') || | ||
contains(github.event.head_commit.modified, 'README.md') | ||
contains(github.event.head_commit.modified, 'run_all_engines.sh') | ||
contains(github.event.head_commit.modified, 'sync_results.sh') | ||
) | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install poetry | ||
run: pip install poetry | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
cache: "poetry" | ||
- name: Install deps | ||
run: poetry install | ||
- uses: hoverkraft-tech/[email protected] | ||
with: | ||
compose-file: "${{ inputs.compose_file }}" | ||
- name: Execution | ||
run: | | ||
source $(poetry env info -p)/bin/activate | ||
poetry run python3 run.py --engines "${{ inputs.engine }}" --datasets "${{ inputs.dataset }}" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install poetry | ||
shell: bash | ||
run: pip install poetry | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
cache: "poetry" | ||
- name: Install deps | ||
shell: bash | ||
run: poetry install | ||
- uses: hoverkraft-tech/[email protected] | ||
with: | ||
compose-file: "${{ inputs.compose_file }}" | ||
- name: Execution | ||
shell: bash | ||
run: | | ||
source $(poetry env info -p)/bin/activate | ||
poetry run python3 run.py --engines "${{ inputs.engine }}" --datasets "${{ inputs.dataset }}" |
This file contains 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