ЛР1 на 4: in-memory API, Docker, student-tests и конкурентная проверка.
Skeleton contracts / contracts (pull_request) Blocked by required conditions

Реализован контракт lab1 (X-User-Id), non-root образ, SIGTERM ≤10s, DEFENSE/REPORT.
This commit is contained in:
2026-12-01 21:50:50 +03:00
parent 16726dfb97
commit 2cd45ab58e
21 changed files with 1409 additions and 18 deletions
+9 -2
View File
@@ -3,11 +3,12 @@ BASE_URL ?= http://localhost:8080
CA_FILE ?=
ACTION_SCRIPT ?=
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
GO ?= go
.PHONY: help check validate test load
.PHONY: help check validate test load student-test build run
help:
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
@echo "check: offline structure; validate: full OpenAPI; test: public smoke; student-test: own Go checks; build: compile server"
check:
$(PYTHON) scripts/check_contract.py
@@ -20,3 +21,9 @@ test:
load:
$(PYTHON) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS)
student-test:
$(GO) test ./student-tests/ -v -count=1 -timeout 120s
build:
$(GO) build -o bin/server ./cmd/server