feat(lab5): implement reliable image pipeline and track 2
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
name: Application
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
integration:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
PIPELINE_FAULTS: '1'
|
||||
JOB_TIMEOUT_SECONDS: '20'
|
||||
COMPOSE_PROJECT_NAME: mtusi2026lab5-ci
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Build and wait for readiness
|
||||
run: |
|
||||
python scripts/init-local.py
|
||||
./scripts/compose.sh up -d --build --wait --wait-timeout 150
|
||||
curl -fsS --retry 30 --retry-delay 1 --retry-all-errors http://localhost:8080/health/ready
|
||||
- name: Mandatory smoke and recovery
|
||||
run: |
|
||||
set -o pipefail
|
||||
make test 2>&1 | tee evidence/ci-smoke.txt
|
||||
make test-persistence ACTION_SCRIPT=scripts/restart.sh 2>&1 | tee evidence/ci-persistence.txt
|
||||
make test-failover ACTION_SCRIPT=scripts/stop-one.sh 2>&1 | tee evidence/ci-failover.txt
|
||||
./scripts/compose.sh start api
|
||||
curl -fsS --retry 30 --retry-delay 1 --retry-all-errors http://localhost:8080/health/ready
|
||||
- name: Track 2 experiments
|
||||
run: |
|
||||
set -o pipefail
|
||||
python student-tests/pipeline.py --disposable 2>&1 | tee evidence/ci-pipeline.jsonl
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: lab5-evidence
|
||||
path: |
|
||||
evidence/ci-*
|
||||
evidence/restart-*.txt
|
||||
- name: Stop test project
|
||||
if: always()
|
||||
run: ./scripts/compose.sh down
|
||||
Reference in New Issue
Block a user