Skip to content

fix(ci): Self-Healing 에이전트 개선 - 로그 fetch & Gemini 전환#45

Merged
seoyeoki merged 3 commits intodevelopfrom
fix/trigger-ai-fetch-log
Mar 22, 2026
Merged

fix(ci): Self-Healing 에이전트 개선 - 로그 fetch & Gemini 전환#45
seoyeoki merged 3 commits intodevelopfrom
fix/trigger-ai-fetch-log

Conversation

@seoyeoki
Copy link
Copy Markdown
Contributor

@seoyeoki seoyeoki commented Mar 22, 2026

Summary

  • SERVER_FATAL prefix 감지 시 gh run view 대신 $4 인자로 서버 런타임 로그 직접 수신 (존재하지 않는 run ID 조회로 원본 에러 덮어쓰는 버그 수정)
  • AI 에이전트 모델을 gemini/gemini-2.5-pro로 전환 (Anthropic API 유료 → Gemini 무료 티어)
  • .env 로딩을 분기문 앞으로 이동하여 모든 분기에서 환경변수 사용 가능하도록 순서 조정
  • .gitignore.env 추가 (GEMINI_API_KEY 등 로컬 시크릿 보호)

변경 파일

  • trigger-ai-fix.sh: SERVER_FATAL 분기, Gemini 모델, .env 로드 순서 수정
  • .gitignore: .env 추가

API 키 발급: https://aistudio.google.com

Test Plan

  • .envGEMINI_API_KEY 추가 확인
  • SERVER_FATAL RUN_ID로 호출 시 $4 로그 정상 수신 확인
  • 일반 GitHub run ID로 호출 시 gh run view --log-failed 정상 동작 확인
  • aider가 Gemini 모델로 코드 수정 시도하는지 확인

seoyeoki and others added 2 commits March 22, 2026 22:49
- aider 모델을 gemini/gemini-2.5-pro로 변경 (Anthropic API 무료 티어 없음)
- .gitignore에 .env 추가 (GEMINI_API_KEY 등 로컬 시크릿 보호)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
분기문 실행 전 .env가 로드되도록 순서 조정.
SERVER_FATAL 분기 시 $4 인자로 서버 런타임 로그 직접 수신하는 로직은 유지.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 22, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: adf1f4ec-59d2-4d95-bba8-990d3351368e

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/trigger-ai-fetch-log

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 and usage tips.

@seoyeoki seoyeoki merged commit b3c841f into develop Mar 22, 2026
2 checks passed
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.

1 participant