fix: require test database keys and tidy stop-at-start in the driver

cache-check gains --require-test-keys: without keys of the test database
it fails instead of passing, and a plain PASS now says the temporary
database was not checked. The coverage exclusion names the flag.
auth-storage logs in only the first user, as the design says.
stop-at-start installs its signal handlers right before the try that
restores them and kills docker logs -f when reading is interrupted.
The student-tests rule warns that copied evidence keeps the check green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-13 18:23:23 +03:00
co-authored by Claude Opus 5.5
parent d90a34b88b
commit 824676be32
4 changed files with 84 additions and 31 deletions
+9 -3
View File
@@ -203,9 +203,15 @@ paths:
существовать: `test_exclusion_evidence_exists` (`missing_evidence`)
падает и называет сценарий и путь. `evidence/` в следующую лабу не
переносится, поэтому там сверка красная, пока файлы не сняты заново
на её стенде. Способ проверки называет команду, которая снимает
доказательство: `driver.py --port <LB> cache-check` (после `make
test_isolated` — для «Временной базы») → `evidence/cache/hits.md`,
на её стенде. Сверка проверяет только наличие файла, а не то, на
каком стенде он снят: скопированные из прошлой лабы файлы `evidence/`
сделают её зелёной без пересъёмки. Поэтому evidence прошлой лабы не
копировать ни целиком, ни по одному файлу — только снимать заново.
Способ проверки называет команду, которая снимает
доказательство: `driver.py --port <LB> cache-check
--require-test-keys` (после `make test_isolated`; без ключей тестовой
базы — код 1, «Временная база» не доказана) →
`evidence/cache/hits.md`,
`driver.py --port <LB> auth-storage` →
`evidence/auth/passwords-and-tokens.md`; `make test-persistence` →
`evidence/replicas/test-persistence.md`; повтор после `docker compose