Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: gradle-cache-action 버전 업그레이드 #311

Merged
merged 1 commit into from
Oct 12, 2024
Merged

Conversation

kdkdhoho
Copy link
Collaborator

@kdkdhoho kdkdhoho commented Oct 12, 2024

Description

문제

최대 1~2분 걸리던 CI 워크플로우가 최소 3분에서 최대 5~6분이 걸렸다.

해결

Gradle 셋업, 빌드, 캐싱을 위해 사용하는 gradle-cache-action 라이브러리의 버전 업그레이드

원인

GitHub Actions가 강제로 Node.js 버전을 16에서 20으로 업그레이드하면서 HTTP Timeout default 값이 5초에서 60초로 변경됨에 따라 딜레이가 발생한 것으로 예상된다.

기존에 사용하던 v1은 node16을 사용하고 있었다.
따라서 node20을 사용하는 v2로 업그레이드하였고, 실제로 해당 이슈에 대응한 것으로 파악했다.

실제로 Actions 라이브러리 중, setup-java의 경우에도 이와 비슷한 문제가 발생한 적이 있다.

Relation Issues

@kdkdhoho kdkdhoho requested a review from pparkjs October 12, 2024 08:58
@kdkdhoho kdkdhoho self-assigned this Oct 12, 2024
@kdkdhoho kdkdhoho linked an issue Oct 12, 2024 that may be closed by this pull request
Copy link
Collaborator

@pparkjs pparkjs left a comment

Choose a reason for hiding this comment

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

수고하셨어요 ㅎㅎ 덕분에 빠른 CI 되겠네요!@!

@@ -21,7 +21,7 @@ jobs:
distribution: 'corretto'

- name: Gradle 셋업, 빌드, 캐시
uses: burrunan/gradle-cache-action@3bf23b8dd95e7d2bacf2470132454fe893a178a1
uses: burrunan/gradle-cache-action@c15634bb25b7284dc084f38dff4e838048b7feaf
Copy link
Collaborator

Choose a reason for hiding this comment

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

어쩐지 CI가 좀 느려졌다고 생각 했는데 이런 이유가 있었네요

직접 해당 git repo 가서 이슈로 오픈해서 소통하는 거 멋있네요 ㅎ

@kdkdhoho kdkdhoho merged commit a25f81d into dev Oct 12, 2024
1 check passed
@kdkdhoho kdkdhoho deleted the infra/310 branch October 12, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI Gradle 캐싱 속도 느려짐 개선
2 participants