Skip to content

Pin the log level of metrics (cache) to INFO #2993

Pin the log level of metrics (cache) to INFO

Pin the log level of metrics (cache) to INFO #2993

Workflow file for this run

name: cpu_local_marqo_API_tests
# runs API Tests on CPU-only instance with Vespa and Marqo running in two separate docker containers
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'
permissions:
contents: read
id-token: write
concurrency:
group: cpu-local-api-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
Test-Marqo:
name: Run CPU Local Marqo API Tests
runs-on: "runs-on=${{ github.run_id }}/family=m6i.xlarge/ami=${{ vars.MARQO_CPU_AMD64_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
pip install pytest-rerunfailures
- 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 Integration Tests - CPU Local Marqo
run: |
CUSTOM_TEST_IMG="${{ github.event.inputs.image_identifier }}"
export TESTING_CONFIGURATION=CPU_LOCAL_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_local_marqo.sh $MARQO_IMAGE_NAME
pytest tests/