fix: error-bot PR 생성 파이프라인 수정#21
Merged
Merged
Conversation
- Docker 컨테이너 traceback 경로(/app/app/...)를 프로젝트 상대 경로로 정규화 - HTTPException(500+) 발생 시 실제 스택트레이스를 캡처하여 error-bot에 전송 - 파이프라인 실패(파싱/파일읽기/내부오류) 시 Discord 알림 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/app/app/...)를 프로젝트 상대 경로(backend/app/...)로 정규화하여 스택트레이스 파싱이 정상 동작하도록 수정HTTPException(500+)발생 시 실제 스택트레이스를 캡처하는 exception handler 등록 (기존에는"(응답 코드 기반 감지)"문자열만 전송)변경 파일
bot/app/config.pycontainer_workdir설정 추가 (기본값/app)bot/app/utils/stack_trace_parser.py_normalize_path()추가 — Docker/로컬 경로 모두 처리bot/app/pipeline.pysend_failure_alert추가backend/app/core/error_reporter.pyregister_error_handlers()추가, 미들웨어 Path B 제거backend/app/main.pyregister_error_handlers(app)호출 등록근본 원인
status_code >= 500경로로 감지되는데, 이 경로는 스택트레이스 없이"(응답 코드 기반 감지)"만 전송 → 파이프라인에서 파싱 실패로 종료/app/app/...)에"backend/app"문자열이 없어 파싱 0건Test plan