ES /docs

HTTP request failed

Fix Plan: HTTP request failed (mesh agent — trashed BIM 조회 실패)

Changes#

cupixworks: applications/agents/packages/cupix-tesla-mesh-agent/src/mesh-service.ts#

  • What: createCPBimByBimId catch 블록의 not-found whitelist 를 ARG10002 만 검사하던 것에서 ARG10002 또는 ENT4000 두 코드 모두 resolve(undefined) 로 처리하도록 확장.
  • Why: tesla BaseRepository#show 는 완전 부재이면 ARG10002, trash 상태이면 ENT4000 을 리턴한다 (RCA base_repository.rb:351-356). 두 코드 모두 semantic 상 "not found" 이며 mesh agent 관점에서 skip 대상. 현재는 ENT4000 만 whitelist 를 통과하지 못해 HttpError 로 rethrow → MeshService::run 의 catch 가 HTTP request failed error 로그를 남긴다.
  • Lines: 145 (조건문 한 줄) + docstring line 128 문구 업데이트.

cupixworks: applications/agents/packages/cupix-tesla-mesh-agent/test/mesh-service.spec.ts#

  • What: 기존 should not proceed when bim is not found (ARG10002) 케이스 옆에 ENT4000 (trashed BIM) 케이스를 추가. run(...) 이 예외 없이 종료되고 mockBimUpdate / mockMeshExtractManagerExecute 가 호출되지 않음을 확인.
  • Why: 새 whitelist 항목이 회귀되지 않도록 스펙을 잠금.
  • Lines: 249 근처 (기존 ARG10002 케이스 바로 뒤에 새 it 블록 삽입).

Acceptance Criteria#

  • mesh-service.ts:145 근처에 ENT4000 이 포함된 whitelist 로직이 존재 (grep -n "ENT4000" applications/agents/packages/cupix-tesla-mesh-agent/src/mesh-service.ts 가 최소 1건 반환).
  • mesh-service.spec.tsENT4000 을 리턴하는 mock 케이스가 존재 (grep -n "ENT4000" applications/agents/packages/cupix-tesla-mesh-agent/test/mesh-service.spec.ts 가 최소 1건 반환).
  • pnpm exec nx run cupix-tesla-mesh-agent:test 가 성공.
  • pnpm exec eslint 이 변경 파일에 대해 에러 없이 통과.

Tests#

  • 기존 테스트: applications/agents/packages/cupix-tesla-mesh-agent/test/mesh-service.spec.tsdescribe('run - error handling') 블록의 ARG10002/기타 케이스가 그대로 통과해야 함.
  • 신규 테스트: 동일 파일에 should not proceed when bim is trashed (ENT4000) 케이스 1건 추가.