feat(lab6): add observability and SLO burn-rate alerts

This commit is contained in:
2026-11-15 06:54:54 +03:00
parent 470d9d6f1e
commit 63c1f06b84
204 changed files with 25348 additions and 37 deletions
+41 -3
View File
@@ -1,4 +1,4 @@
name: Skeleton contracts
name: Lab 6 checks
on: [push, pull_request]
permissions:
contents: read
@@ -12,5 +12,43 @@ 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
needs: contracts
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: Audit Go code and dependencies
run: |
go mod verify
go test -race -count=1 ./...
go vet ./...
go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./...
- name: Initialize local CI configuration
run: |
cp .env.example .env
make init-secrets
- name: Validate and start the complete stack
run: |
docker compose --env-file .env config --quiet
docker compose --env-file .env up -d --build --wait
- name: Run public API smoke test
run: make test
- name: Verify the telemetry path
run: make test-observability-grade4
- name: Show service state and logs on failure
if: failure()
run: |
docker compose ps -a
docker compose logs --no-color --tail=300
- name: Remove ephemeral CI resources
if: always()
run: docker compose down --volumes --remove-orphans