Support base64-encoded image in inference cache #1011
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: cuda_docker_marqo_API_tests_split | |
# runs API Tests on cuda-enabled instance with Vespa and Marqo running in the same container | |
on: | |
workflow_call: | |
workflow_dispatch: | |
inputs: | |
py_marqo_branch: | |
required: false | |
default: mainline | |
description: > | |
The "py-marqo" branch this test is running against. | |
This is optional. If left as the default value "mainline", we run the test based on the "mainline" branch of | |
py-marqo. Otherwise, the specified branch is tested. For example "prefix/test-xx". You can also use "marqo" and | |
it will use the latest pypi release. | |
image_identifier: | |
required: false | |
# This is the name of the docker image that is built by the build script: | |
default: marqo_docker_0 | |
description: > | |
This is optional. If left as the default value "marqo_docker_0", the docker image built from this branch is tested. | |
Otherwise, the specified Docker image is tested. For example "marqoai/marqo:test" | |
push: | |
branches: | |
- mainline | |
- releases/* | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- mainline | |
- releases/* | |
paths-ignore: | |
- '**.md' | |
concurrency: | |
group: cuda_docker_marqo_split-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
Test-Marqo: | |
name: Run CUDA Docker Marqo API Tests | |
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/ami=${{ vars.MARQO_CUDA_TESTS_INSTANCE_AMI }}" | |
defaults: | |
run: | |
working-directory: tests/api_tests/v1 | |
steps: | |
- name: Checkout Marqo repo | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
cache: "pip" | |
- name: Install Dependencies | |
run: pip install -r requirements.txt | |
- name: Install py-marqo | |
run: bash scripts/install_pymarqo.sh ${{ inputs.py_marqo_branch }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Run CUDA Integration Tests - CUDA Docker Marqo | |
run: | | |
CUSTOM_TEST_IMG="${{ github.event.inputs.image_identifier }}" | |
export TESTING_CONFIGURATION=CUDA_DOCKER_MARQO | |
export MARQO_API_TESTS_ROOT=$(pwd) | |
export MARQO_IMAGE_NAME=${CUSTOM_TEST_IMG:-"marqo_docker_0"} | |
bash scripts/build_marqo.sh $MARQO_IMAGE_NAME | |
bash scripts/start_cuda_docker_marqo_split.sh $MARQO_IMAGE_NAME | |
df -k | |
pytest tests/ | |