Files
mtusi2026lab5/evidence/tests/test-isolated.md
T
2026-10-31 16:51:29 +03:00

4.1 KiB
Raw Blame History

Набор на временной базе

  • Команда: make test_isolated
  • Дата: 2026-10-31, 13:34:20–13:36:55 UTC; код выхода 2 (results: {'test': 0, 'student_test': 2})
  • Commit: e2a6427 (ветка feat/pipeline-reliability), рабочее дерево без правок кода (добавлены только файлы evidence/)
  • Стенд: образ из рабочего дерева, контейнеры mtusi-lab5-test-api, mtusi-lab5-test-worker, mtusi-lab5-test-relay на базе test_messenger поверх хранилищ рабочего стенда, один процесс API, EXPECT_REPLICAS=1
  • Итог: smoke — PASS: lab5; набор — 1 failed, 212 passed, 6 skipped, 140 deselected, 129,89 с
  • 6 skipped — тесты реплик против одного процесса, причина напечатана
  • Красное — test_exclusion_evidence_exists, только missing_evidence по трём файлам последнего шага прогона лабы; разбор — evidence/tests/student-test-lb.md
  • После уборки (проверено отдельно): контейнеров *-test-* нет, базы test_messenger нет (pg_database: postgres, messenger, template1, template0), очереди временной базы нет (list_queues: только messenger.attachment.process.v1)
  • Вывод сокращён: убраны лог сборки, строки PASSED и журналы контейнеров, которые цель печатает при коде ≠ 0
[test_isolated] database=test_messenger objects=/buckets/messenger/test_messenger/ queue=test_messenger.attachment.process.v1 containers=mtusi-lab5-test-api mtusi-lab5-test-worker mtusi-lab5-test-relay base_url=http://127.0.0.1:18088
[test_isolated] remove objects /buckets/messenger/test_messenger/ and queue test_messenger.attachment.process.v1
[test_isolated] build image
[test_isolated] create database test_messenger
[test_isolated] migrations
[test_isolated] start api container
[test_isolated] start worker container
[test_isolated] start relay container
[test_isolated] ready
[test_isolated] make test
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
[test_isolated] make student_test
E       AssertionError: exclusion refers to missing evidence/cache/hits.md: chat-cache / Временная база
E         exclusion refers to missing evidence/cache/hits.md: chat-cache / Срок записи
E         exclusion refers to missing evidence/cache/hits.md: chat-cache / Чтение из кэша
E         exclusion refers to missing evidence/idempotency/replay-after-restart.md: idempotency / Повтор после рестарта API
E         exclusion refers to missing evidence/auth/passwords-and-tokens.md: sessions / Токена нет в хранилище
E         exclusion refers to missing evidence/auth/passwords-and-tokens.md: users / Хэш в БД
SKIPPED [1] student-tests/test_attachment_processing.py:475: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
SKIPPED [1] student-tests/test_attachments.py:748: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
SKIPPED [1] student-tests/test_idempotency.py:372: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
SKIPPED [1] student-tests/test_load_balancing.py:18: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
SKIPPED [1] student-tests/test_load_balancing.py:34: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
SKIPPED [1] student-tests/test_race.py:169: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
===== 1 failed, 212 passed, 6 skipped, 140 deselected in 129.89s (0:02:09) =====
[test_isolated] cleanup
[test_isolated] remove objects /buckets/messenger/test_messenger/ and queue test_messenger.attachment.process.v1
[test_isolated] results: {'test': 0, 'student_test': 2}