Skip to content

chore/42 - fix: cicd 코드 수정 - #43

Merged
ji-circle merged 1 commit into
devfrom
chore/42-annotation-cicd
May 19, 2026
Merged

ji-circle merged 1 commit into
devfrom
chore/42-annotation-cicd

Conversation

@ji-circle

@ji-circle ji-circle commented May 19, 2026

Copy link
Copy Markdown
Contributor

📝 작업 내용

이번 PR에서 작업한 내용을 설명해주세요.

  • cicd 코드 수정

🚀 주요 변경 사항

완료한 이슈 번호
Close #42
관련된 이슈 번호 (닫고 싶지 않은 경우)
Related to #

✅ 자체 체크리스트 (필수)

  • ./gradlew build 실행 결과 정상 (인증샷 첨부)
  • 팀 내 컨벤션 준수 및 불필요한 로그, import 제거
  • 중요한 변경 사항이 팀에 공유되었는지

📸 테스트 인증샷

빌드 결과 및 IntelliJ HTTP Client 실행 화면을 여기에 첨부해 주세요.

💬 리뷰어 전달사항 (선택)

특별히 봐주었으면 하는 부분이나 논의가 필요한 점을 적어주세요.



📎 참고 자료

관련 문서, 레퍼런스 링크 등이 있다면 여기에 첨부해주세요.

Summary by CodeRabbit

릴리스 노트

  • Chores
    • 배포 파이프라인을 개선하여 main 및 dev 브랜치 모두에서 자동 배포 실행 가능
    • CI/CD 워크플로우 구성을 간소화하여 빌드 실행 조건 명확화
    • 코드 품질 검증을 위한 자동화된 단위 테스트 실행 환경 추가

Review Change Stack

@ji-circle ji-circle added this to the 8. 기타 milestone May 19, 2026
@ji-circle ji-circle added the enhancement New feature or request label May 19, 2026
@ji-circle ji-circle linked an issue May 19, 2026 that may be closed by this pull request
1 task
@coderabbitai

coderabbitai Bot commented May 19, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

새 PR용 CI 워크플로우를 추가하고, 기존 프로덕션 빌드 워크플로우에서 pull request 트리거를 제거하며 조건부 실행 로직을 단순화했다. 동시에 배포 워크플로우를 dev 브랜치로 확장했다.

Changes

CI/CD 파이프라인 재구조화

Layer / File(s) Summary
Pull Request CI 워크플로우 추가
.github/workflows/ci.yml
pull_request 이벤트(main, dev)를 트리거로 JDK 17, Gradle을 구성하고 ./gradlew test --no-daemon으로 단위 테스트를 실행하는 새로운 CI 워크플로우가 정의되었다.
프로덕션 빌드 및 배포 워크플로우 조정
.github/workflows/ci-prod.yml, .github/workflows/cd-prod.yml
ci-prod.yml에서 pull_request 트리거를 제거하고 push 이벤트 조건부 실행 로직(if: github.event_name == 'push')을 제거하여 워크플로우를 단순화했다. cd-prod.yml의 배포 조건이 main 브랜치뿐 아니라 dev 브랜치의 CI 성공으로도 실행되도록 확장되었다.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • Miche-Let/inventory-service#39: .github/workflows/ci-prod.yml의 트리거 및 단계별 if 조건부 실행 로직을 직접적으로 수정하는 PR로, 이 PR의 ci-prod 워크플로우 변경과 중복되는 영역이 있다.

Suggested reviewers

  • githyj-jang
  • jihxonx
  • Jinyoung-Kim96
  • qldo
  • Sehi55

Poem

🐰 파이프라인 흐름을 다시 쓰네,
PR 검사와 배포를 분리하고,
dev 브랜치도 이제 배포 무대에,
워크플로우 깔끔하게 다듬어졌네! ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive PR 제목이 CI/CD 코드 수정에 대한 내용을 언급하고 있으나, 변경사항의 구체적인 내용(cd-prod 브랜치 확장, ci-prod 트리거 단순화, ci 워크플로우 추가)을 명확히 반영하지 못해 다소 포괄적이고 모호합니다. 제목을 보다 구체적으로 수정하여 주요 변경사항(예: 'CD/CI 워크플로우 트리거 조건 수정 및 CI 파이프라인 추가')을 명확히 표현하는 것을 권장합니다.
Linked Issues check ❓ Inconclusive 연결된 이슈 #42는 '주석, 코드 정리 및 CI 확인'을 요구하나, 제공된 변경사항은 주로 워크플로우 설정 변경에 집중되어 있으며 주석/코드 정리 및 작동 확인 완료 여부가 불명확합니다. 이슈 #42의 '작동확인' 체크리스트 항목이 미완료 상태인지 확인하고, 주석 및 코드 정리 작업이 실제 수행되었는지 명시적으로 확인할 필요가 있습니다.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Out of Scope Changes check ✅ Passed PR의 모든 변경사항(cd-prod, ci-prod, ci 워크플로우 수정)은 CI/CD 시스템과 관련되어 있으며 이슈 #42의 'CI 확인' 범위 내에 있습니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/42-annotation-cicd

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/workflows/ci.yml (1)

30-31: ⚡ Quick win

테스트 결과 아티팩트 업로드 고려

현재 워크플로우는 테스트를 실행하지만 결과를 아티팩트로 저장하지 않습니다. 테스트 실패 시 GitHub UI에서 더 나은 가시성을 제공하기 위해 테스트 결과 게시를 추가하는 것을 고려해보세요.

📊 테스트 결과 게시 단계 추가 제안
            -   name: Run tests
                run: ./gradlew test --no-daemon

+           -   name: Publish test results
+               if: always()
+               uses: actions/upload-artifact@v4
+               with:
+                   name: test-results
+                   path: '**/build/test-results/test/TEST-*.xml'
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci.yml around lines 30 - 31, The workflow currently runs
tests in the "Run tests" step (which runs ./gradlew test --no-daemon) but does
not publish results; add a follow-up step (e.g., "Upload test results") that
collects Gradle test outputs (glob '**/build/test-results/test/*.xml' and
optionally '**/build/reports/tests/**') and publishes them using
actions/upload-test-report (to surface results in the GitHub UI) and/or
actions/upload-artifact (artifact name like "test-results") so test reports are
available on failure and in the PR view.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/cd-prod.yml:
- Line 34: The CD-PROD workflow is allowing the dev branch to deploy to
production via the condition "(github.event.workflow_run.head_branch == 'main'
|| github.event.workflow_run.head_branch == 'dev')", and uses
SPRING_PROFILES_ACTIVE="prod" plus ${vars.ECS_CLUSTER}/${vars.ECS_SERVICE};
remove 'dev' from the branch condition so CD-PROD only triggers for main, and if
dev deployments are needed create a separate cd-dev.yml workflow that uses
dev-specific profile/vars (set SPRING_PROFILES_ACTIVE="dev" and separate ECS
cluster/service or variables) rather than reusing the production
cluster/service.

---

Nitpick comments:
In @.github/workflows/ci.yml:
- Around line 30-31: The workflow currently runs tests in the "Run tests" step
(which runs ./gradlew test --no-daemon) but does not publish results; add a
follow-up step (e.g., "Upload test results") that collects Gradle test outputs
(glob '**/build/test-results/test/*.xml' and optionally
'**/build/reports/tests/**') and publishes them using actions/upload-test-report
(to surface results in the GitHub UI) and/or actions/upload-artifact (artifact
name like "test-results") so test reports are available on failure and in the PR
view.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a9a0142b-ad76-429a-97b3-8c9871d0694c

📥 Commits

Reviewing files that changed from the base of the PR and between 64855a0 and f3bb516.

📒 Files selected for processing (3)
  • .github/workflows/cd-prod.yml
  • .github/workflows/ci-prod.yml
  • .github/workflows/ci.yml
💤 Files with no reviewable changes (1)
  • .github/workflows/ci-prod.yml

Comment thread .github/workflows/cd-prod.yml

@qldo qldo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인하였습니다

@ji-circle
ji-circle merged commit b499ae4 into dev May 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE] 주석, 코드 정리 및 ci 확인

2 participants