Skip to content

[AI] [FIX]: SEC Form 4 및 AI 작업 운영 안정화 (#382) - #383

Draft
twq110 wants to merge 1 commit into
mainfrom
20260813-#382-sec-form4-ai-job-hardening
Draft

[AI] [FIX]: SEC Form 4 및 AI 작업 운영 안정화 (#382)#383
twq110 wants to merge 1 commit into
mainfrom
20260813-#382-sec-form4-ai-job-hardening

Conversation

@twq110

@twq110 twq110 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

변경 사항

  • SEC Form 4 인덱스에서 XSL 변환 문서 대신 원본 XML을 primary로 선택합니다.
  • 문서명이 중복되면 원본 XML primary 문서를 우선 보존합니다.
  • 공시 일부 실패 시 수집 프로세스가 비정상 종료하도록 해 스케줄러가 장애를 감지합니다.
  • AI 전용 환경변수를 배포 .env와 분리한 선택적 .env.ai로 관리합니다.
  • 배포 시 XAI 이미지를 함께 갱신하고 서버 이미지 정리에서 제거되지 않도록 합니다.
  • API /actuator/health가 실제 UP이 아니면 배포를 실패 처리합니다.

검증

  • python AI/tests/verify_sec_edgar_data.py -v: 17개 통과
  • python AI/tests/verify_company_news_storage.py -v: 단위 테스트 통과, DB 환경 필요 통합 테스트 3개 skip
  • 실제 실패 Form 4 공시에서 ext/xml 선택 및 거래 3건 파싱 확인
  • Compose 및 GitHub Actions YAML 파싱 통과
  • 원격 배포 셸 스크립트 �ash -n 통과
  • git diff --check 통과

운영 확인

  • AAPL 제한 smoke: SEC 공시 1건, 문서 2건, 뉴스 5건, SEC 이벤트 1건 저장
  • 전체 smoke에서 Form 4 결함을 재현했으며 수정 이미지 배포 후 전체 재검증 예정
  • 기존 일일·주간 XAI cron은 변경하지 않음

Closes #382

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 34df351f-3390-4e57-aa54-d0a400e2e9b4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

❗ [버그][AI/배포] SEC Form 4 파싱 실패 및 AI 작업 운영 안정화

1 participant