Skip to content

Stats searchbar

Stats searchbar #28

name: Backend End2End Tests
on:
pull_request:
branches:
- main
- mwp_v1
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
type: choice
options:
- info
- warning
- debug
tags:
description: "Test scenario tags"
required: false
type: boolean
environment:
description: "Environment to run tests against"
type: environment
required: true
jobs:
log-the-inputs:
runs-on: ubuntu-latest
steps:
- name: Log the inputs
env:
LEVEL: ${{ inputs.logLevel }}
TAGS: ${{ inputs.tags }}
ENVIRONMENT: ${{ inputs.environment }}
run: |
echo "Log level: $LEVEL"
echo "Tags: $TAGS"
echo "Environment: $ENVIRONMENT"
run-end2end-tests:
runs-on: ubuntu-latest
steps:
- name: Set Swap Space to 10GB
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
- uses: actions/checkout@v3
- name: Start Docker Containers
run: |
cd docker
./setup-folders.sh
chmod -R a+rwx backend_repo/ models_cache/ spacy_models/ tika/
python monkey_patch_docker_compose_for_backend_tests.py
export GID=$(id -g)
export CELERY_TEXT_WORKER_CONCURRENCY=1
export CELERY_IMAGE_WORKER_CONCURRENCY=1
export CELERY_SIMSEARCH_WORKER_CONCURRENCY=1
export CELERY_ARCHIVE_WORKER_CONCURRENCY=1
export API_PRODUCTION_WORKERS=0
docker compose -f compose-test.yml up -d --quiet-pull
echo Waiting for containers to start...
sleep 240
cd ..
- name: Run Import Data End-To-End Test
env:
TESTDATA_PASSWORD: ${{ secrets.TESTDATA_PASSWORD }}
run: |
cd tools/importer
wget -q http://ltdata1.informatik.uni-hamburg.de/dwts/totalitarismo.zip
unzip -q -P "$TESTDATA_PASSWORD" totalitarismo.zip
python dwts_importer.py --input_dir images --backend_url http://localhost:13120/ --project_name incel --tag_name totalitarisimo
python dwts_importer.py --input_dir json --backend_url http://localhost:13120/ --project_name incel --tag_name totalitarismo --is_json