Реализовать лабораторную 3

This commit is contained in:
Krep4334
2026-11-13 18:22:52 +03:00
parent 0ab3a341aa
commit 2a4242695f
23 changed files with 1121 additions and 40 deletions
+27 -2
View File
@@ -12,5 +12,30 @@ jobs:
python-version: '3.12'
- run: python -m pip install -r requirements-dev.txt
- run: make check validate PYTHON=python
# This job validates the skeleton, not a student solution.
# Add build, readiness and make test in a separate application job.
application:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Build and start stack
run: |
python scripts/setup.py
chmod +x scripts/restart.sh scripts/stop-one.sh
docker compose build migrate
docker compose up -d --wait
- name: Run HTTP and resilience checks
run: |
make test
make test-persistence ACTION_SCRIPT=scripts/restart.sh
make test-failover ACTION_SCRIPT=scripts/stop-one.sh
docker compose start api-a api-b
python student-tests/check_replicas.py
- name: Show service status
if: failure()
run: docker compose ps -a
- name: Stop stack
if: always()
run: docker compose down