Skip to content

ci: GitHub Actions에 Gradle 의존성 캐싱 적용 - #206

Merged
unam98 merged 1 commit into
mainfrom
ci/gradle-dependency-cache
Jul 29, 2026
Merged

ci: GitHub Actions에 Gradle 의존성 캐싱 적용#206
unam98 merged 1 commit into
mainfrom
ci/gradle-dependency-cache

Conversation

@unam98

@unam98 unam98 commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • prod-cd, prod-ci, dev-cd, dev-ci 4개 워크플로우의 actions/setup-java@v3cache: 'gradle' 추가
  • 매 실행마다 의존성을 새로 받는 대신 ~/.gradle/caches, ~/.gradle/wrapper를 캐싱해 빌드 시간 단축

Background

  • 실측 결과 prod 배포 파이프라인에서 Build with Gradle 스텝이 전체 소요 시간(약 1분 50초)의 87%(1분 36초)를 차지
  • 원인은 GitHub Actions 러너가 매번 새로 뜨면서 의존성을 처음부터 다운로드하기 때문
  • 트레이드오프: 캐시 미스인 첫 실행은 이득 없음(캐시 저장 오버헤드로 오히려 미세하게 증가), 이후 실행부터 개선. 이 프로젝트는 의존성 버전을 모두 고정해서 쓰고 있어 동적 버전으로 인한 캐시 오염 리스크는 낮음

Test plan

  • 머지 후 실제 배포 트리거해서 before/after 소요 시간 비교

매 빌드마다 의존성을 새로 다운로드하는 문제를 줄이기 위해
setup-java의 cache: gradle 옵션을 4개 워크플로우에 추가.
@unam98 unam98 self-assigned this Jul 29, 2026
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 069d2d6e-6802-4c9c-abf2-a101d4033e4c

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.

@unam98
unam98 merged commit b145d2e into main Jul 29, 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.

2 participants