forked from mtusi2026/mtusi2026lab2
Завершить PostgreSQL, Redis-сессии, миграции, таймауты и диагностику. Зафиксировать собственные тесты и доказательства финального прогона: 43 PASS, 0 FAIL, 0 SKIP; 768 HTTP-запросов без ошибок. Добавить официальный отчёт с запуском, архитектурой, SQL-планами и ограничениями. PR отложен до завершения уровня 5.
257 lines
7.1 KiB
JSON
257 lines
7.1 KiB
JSON
{
|
|
"date": "2026-10-13",
|
|
"project": "highload-auth-retest-658e0bd7",
|
|
"overall": "FAIL",
|
|
"suites": [
|
|
{
|
|
"check": "teacher-check",
|
|
"exit_code": 0,
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "teacher-openapi",
|
|
"exit_code": 0,
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "go-all-race",
|
|
"exit_code": 1,
|
|
"status": "FAIL"
|
|
},
|
|
{
|
|
"check": "teacher-smoke",
|
|
"exit_code": 2,
|
|
"status": "FAIL"
|
|
},
|
|
{
|
|
"check": "auth-normal",
|
|
"exit_code": 1,
|
|
"status": "FAIL"
|
|
},
|
|
{
|
|
"check": "teacher-persistence",
|
|
"exit_code": 0,
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "auth-persistence",
|
|
"exit_code": 1,
|
|
"status": "FAIL"
|
|
},
|
|
{
|
|
"check": "auth-dependency",
|
|
"exit_code": 1,
|
|
"status": "FAIL"
|
|
},
|
|
{
|
|
"check": "start-expiry-api",
|
|
"exit_code": 0,
|
|
"status": "INVALID_SETUP",
|
|
"detail": "Initial temporary service lacked secret mount; runtime check failed. Corrected and auth-expiry rerun passed."
|
|
},
|
|
{
|
|
"check": "auth-expiry",
|
|
"exit_code": 0,
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "corrected-expiry-api-start",
|
|
"exit_code": 0,
|
|
"status": "PASS"
|
|
}
|
|
],
|
|
"go_counts": {
|
|
"pass": 19,
|
|
"fail": 2,
|
|
"skip": 0
|
|
},
|
|
"go_tests": [
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/cmd/migrate",
|
|
"Test": "TestConnectionSecretErrorsAreSafe"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/cmd/migrate",
|
|
"Test": "TestEmbeddedMigrationsAreVersionedAndCollectable"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/cmd/migrate",
|
|
"Test": "TestUnlockHasBudgetEvenWithDetachedContext"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/cmd/migrate",
|
|
"Test": "TestPostgresMigrationsRepeatWithoutChangingDataOrLoggingSQL"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/cmd/migrate",
|
|
"Test": "TestPostgresConcurrentMigratorsApplyEachVersionOnce"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/cmd/migrate",
|
|
"Test": "TestPostgresMigrationFailureRollsBackAndPreservesCause"
|
|
},
|
|
{
|
|
"Action": "fail",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestStorageAuthHandlerRejectsJSONBody"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestPasswordRoundTripAndRandomSalt"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestPasswordDoesNotTruncateLongUTF8"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestPasswordWhitespaceIsSignificant"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestMalformedPasswordHashRejectedWithoutPanic"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestStoragePasswordIsKDFAndDuplicateCannotOverwrite"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestStorageSessionHashAndReconnectPreserveDeadline"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestStorageWrongCredentialsNeverCreateSession"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestStorageRevocationIsPersistentAndSessionSpecific"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestStorageExpiredSessionCannotRevive"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestStorageShortTTLExpiresAndReLoginWorks"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestStorageChatRollbackAfterMemberInsertFailure"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestMiddlewareUnavailableDatabaseStopsHandler"
|
|
},
|
|
{
|
|
"Action": "pass",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestMiddlewareMalformedAuthWritesExactlyOneError"
|
|
},
|
|
{
|
|
"Action": "fail",
|
|
"Package": "highload/student-tests/auth_tests",
|
|
"Test": "TestStorageHTTPAuthRoutingAndLogout"
|
|
}
|
|
],
|
|
"focused_diagnostics": {
|
|
"scope": "actual sessions issued by HTTP API; alternate logout route is diagnostic only and does not satisfy contract",
|
|
"results": [
|
|
{
|
|
"check": "working login and Bearer identity",
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "required logout route returns 204",
|
|
"status": "FAIL",
|
|
"detail": "DELETE /api/v1/auth/sessions/current: expected [204], received 404"
|
|
},
|
|
{
|
|
"check": "implemented alternate logout route revokes its token",
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "revoked session is rejected",
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "actual issued token messages and expiry survive full API/Postgres restart",
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "live stays 200 during PostgreSQL outage",
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "anonymous request stays 401 during outage",
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "ready 503 follows Error schema",
|
|
"status": "FAIL",
|
|
"detail": "response: missing required fields"
|
|
},
|
|
{
|
|
"check": "valid Bearer request returns 503 unavailable during outage",
|
|
"status": "FAIL",
|
|
"detail": "GET /api/v1/users/me: expected [503], received 500"
|
|
},
|
|
{
|
|
"check": "registration returns 503 during outage",
|
|
"status": "FAIL",
|
|
"detail": "POST /api/v1/users: expected [503], received 500"
|
|
},
|
|
{
|
|
"check": "login returns 503 during outage",
|
|
"status": "FAIL",
|
|
"detail": "POST /api/v1/auth/sessions: expected [503], received 500"
|
|
},
|
|
{
|
|
"check": "logout does not succeed during outage",
|
|
"status": "FAIL",
|
|
"detail": "DELETE /api/v1/auth/sessions/current: expected [503], received 500"
|
|
},
|
|
{
|
|
"check": "original session recovers after PostgreSQL returns",
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "revoked token remains revoked after database recovery",
|
|
"status": "PASS"
|
|
},
|
|
{
|
|
"check": "restart evidence shows both processes restarted with same volume",
|
|
"status": "PASS"
|
|
}
|
|
]
|
|
},
|
|
"protected_source_changes": [],
|
|
"cleanup_exit": 0,
|
|
"limits": [
|
|
"Redis/Valkey is absent and not tested",
|
|
"Repository scripts/restart.sh is missing; public persistence used an explicit temporary hook",
|
|
"Old lab1 HTTP/container suites have not been adapted to lab2",
|
|
"EXPLAIN/grade5 experiment not tested"
|
|
],
|
|
"invalid_setup": [
|
|
"First expiry API setup inherited environment but not secret mount from temporary Compose override. Added test secret mount and dependency checks; expiry was rerun successfully."
|
|
]
|
|
} |