Skip to content

Conversation

Ji-soo708
Copy link
Member

@Ji-soo708 Ji-soo708 commented Jul 18, 2025

💡 작업 내용

  • PR 생성 시에 동작하는 CI 과정에 Gradle 캐시 적용 단계 추가

✅ 셀프 체크리스트

  • PR 제목을 형식에 맞게 작성했나요?
  • 브랜치 전략에 맞는 브랜치에 PR을 올리고 있나요?
  • 테스트는 잘 통과했나요?
  • 빌드에 성공했나요?
  • 본인을 assign 해주세요.
  • 해당 PR에 맞는 label을 붙여주세요.

🙋🏻‍ 확인해주세요

  • 실제 배포 시에는 항상 최신 상태의 빌드를 보장하는 것이 중요하다고 판단하여, 배포 워크플로우에는 캐시를 적용하지 않았습니다

🔗 Jira 티켓


https://yappsocks.atlassian.net/browse/YS-514

Summary by CodeRabbit

  • Chores
    • Gradle 패키지 캐시 기능이 워크플로우에 추가되어 빌드 속도가 향상되었습니다.
    • 테스트 실행 시 더 이상 clean 단계가 포함되지 않아 빌드 시간이 단축되었습니다.

@Ji-soo708 Ji-soo708 self-assigned this Jul 18, 2025
@Ji-soo708 Ji-soo708 added the ⚙️ CHORE config, workflow.yaml label Jul 18, 2025
Copy link

coderabbitai bot commented Jul 18, 2025

Walkthrough

GitHub Actions Java CI 워크플로우에서 actions/setup-java@v4 대신 gradle/gradle-build-action@v3를 사용해 JDK 17(Temurin)과 Gradle 설정 및 캐시를 추가했습니다. 테스트 실행 명령어와 기타 단계는 변경되지 않았습니다.

Changes

파일/경로 변경 요약
.github/workflows/ci-dev.yml Java 설정 액션 변경(Gradle 빌드 액션 사용), JDK 17(Temurin) 설정, Gradle 캐시 활성화

Poem

🐰
캐시를 품은 토끼의 CI,
Gradle 속도가 쑥쑥 날아가네!
깨끗이 청소는 잠시 미뤄두고,
빠른 테스트로 오늘도 달려요.
구름 위 캐시로 점프하는 밤,
빌드의 꿈은 한층 더 가까이!
☁️💨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3b56d88 and ebb6f2e.

📒 Files selected for processing (1)
  • .github/workflows/ci-dev.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/ci-dev.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot changed the title chore: Gradle 캐시 적용으로 빌드 속도 개선 [YS-514] chore: Gradle 캐시 적용으로 빌드 속도 개선 Jul 18, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

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

27-36: 공식 Gradle 캐싱 액션 사용 고려

actions/cache@v4로 직접 ~/.gradle 디렉터리를 캐싱해도 무방하지만, Gradle 팀이 유지-보수하는 gradle/gradle-build-action@v3
• 캐시 키 생성·복원,
gradle.properties/wrapper 변경 감지,
• 빌드-스캔 기반의 고급 옵션
을 자동으로 처리합니다. 설정이 단순해지고, Gradle 버전 업데이트 시 추가 관리 부담이 줄어듭니다.

예시 diff:

-      - name: Cache Gradle packages
-        uses: actions/cache@v4
-        with:
-          path: |
-            ~/.gradle/caches
-            ~/.gradle/wrapper
-          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
-          restore-keys: |
-            ${{ runner.os }}-gradle-
+      - name: Setup Gradle & enable caching
+        uses: gradle/gradle-build-action@v3

기존 캐시 방식이 필요하다면 그대로 두셔도 되지만, 추후 유지보수를 위해 위 액션으로의 전환을 권장드립니다.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 571309e and 182de42.

📒 Files selected for processing (1)
  • .github/workflows/ci-dev.yml (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: Ji-soo708
PR: YAPP-Github/Gradmeet-BE#140
File: domain/src/main/kotlin/com/dobby/gateway/auth/GoogleAuthGateway.kt:7-7
Timestamp: 2025-06-04T09:02:40.657Z
Learning: Ji-soo708의 팀은 로컬 ktlint 기준과 GitHub ktlint 체크 기준이 다를 때, 기존 코드베이스와의 일관성을 위해 로컬 기준을 우선시한다.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: build
  • GitHub Check: Check Code Quality
🔇 Additional comments (1)
.github/workflows/ci-dev.yml (1)

40-42: clean 단계 제거로 인한 잔존 아티팩트 영향 점검 필요

./gradlew clean test./gradlew test 변경으로 캐시 효율은 향상되지만,
이전 빌드 산출물이 남아 있을 경우 간헐적 재현-불가 버그가 CI에서 가려질 위험이 있습니다.
특히 annotation processor 출력이나 generated-sources 디렉터리가 의도치 않게 재사용될 수 있으니, 아래 중 한 가지를 검토해 주세요.

  1. clean 유지: 캐시 히트율은 약간 떨어지지만 안정성 ↑
  2. --rerun-tasks 플래그 주기적 사용: 주간‧야간빌드 등에서 강제 재빌드
  3. 테스트 단계 후에 ./gradlew clean 추가하여 캐시-프라이밍과 잔존물 제거를 병행

필요 시 파이프라인에서 두 명령 모두 실행해 차이를 검증해 보시기 바랍니다.

Copy link
Member Author

@Ji-soo708 Ji-soo708 left a comment

Choose a reason for hiding this comment

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

테스트 실행 자체가 느려서 전체 CI 시간에서 큰 효과는 없네요 😅

@Ji-soo708 Ji-soo708 requested a review from chock-cho July 18, 2025 08:27
@Ji-soo708 Ji-soo708 closed this Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ CHORE config, workflow.yaml
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant