Skip to content

test: role-routes worker /rest-docs가 간헐적으로 401(기대 404) #485

Description

@chanwoo7

#484 push 전 full jest에서 1회 관측, 기록.

  • 실패: 역할별 HTTP 노출 (real app) › worker › GET /rest-docs → 404 ROUTE_NOT_FOUND — expected 404, got 401(= api 역할에서만 붙는 DocsAccessMiddleware가 동작한 모양)
  • 단독 실행·재실행은 통과. --runInBand로 admin-query-null-inputs.spec(fix: 관리자 알림 이력·공개 카테고리의 null 필터 500 수정과 관리자 Query null 입력 게이트 #484 신규, AppModule.forRole(api) 부팅)과 함께 5회 돌려 1회는 게이트 spec 쪽 1건 실패(상세 미수집), 나머지 4회 통과
  • 의심: 같은 워커에서 AppModule.forRole(api)·(worker) 부팅이 섞일 때의 전역 상태(미들웨어 등록·env 복원 순서) 또는 부하 시 타이밍
  • 할 일: 실패 시 로그를 남기도록 반복 실행 스크립트로 재현율 측정 → 원인 확정 후 수정

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions