Завершить уровень 4: проверить отказы, поочерёдную замену и ограничить ожидания кэша
This commit is contained in:
@@ -12,5 +12,21 @@ 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.12'
|
||||
- run: python scripts/bootstrap.py
|
||||
- run: docker compose up -d --build
|
||||
- run: python scripts/wait_ready.py --replicas 2
|
||||
- run: make test PYTHON=python
|
||||
- run: python student-tests/test_lab3.py
|
||||
- run: make test-persistence PYTHON=python ACTION_SCRIPT=scripts/restart.sh
|
||||
- run: python scripts/wait_ready.py --replicas 2
|
||||
- run: make test-failover PYTHON=python ACTION_SCRIPT=scripts/stop-one.sh
|
||||
- if: always()
|
||||
run: docker compose down
|
||||
|
||||
Reference in New Issue
Block a user