-
Notifications
You must be signed in to change notification settings - Fork 3
CI 개선하기 #324
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
Merged
Merged
CI 개선하기 #324
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for jootalkpia canceled.
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request
Related issue
Motivation and context
Solution
1️⃣
fe-ci.yml파일 개선두 버전의 파이프라인을 비교해보면:
fetch-depth: 2로 체크아웃, 두 개의 커밋 이력을 가져오고 있음pnpm/action-setup@v3(pnpm 버전 8)와 글로벌 pnpm 설치(npm install -g pnpm) 등 중복 및 버전 충돌 가능성이 있음~/.pnpm-store,*/node_modules,src/frontend/node_modules)에 대해 복원 시도typescript,lint,format,build등 여러 태스크를 한 번에 실행pnpm/action-setup@v4를 사용하여 최신 pnpm(9.12.3)으로 일관되게 설정cache: 'pnpm',cache-dependency-path)을 사용하여 빌드 도구 캐시를 효과적으로 활용개선된 이유와 효과:
결론:
간소화된 두 번째 버전은 불필요한 단계와 중복된 캐시 설정을 제거함으로써, 전체 파이프라인의 오버헤드를 줄이고 실행 시간을 약 8초 단축(59초 → 51초)하는 효과를 보였습니다. 이처럼 CI 파이프라인에서는 복잡한 캐시 복원보다는 필요한 설정만 간단하게 구성하는 것이 오히려 빠른 실행으로 이어질 수 있습니다.
2️⃣
fe-ci-storybook.yaml파일 개선이러한 최적화로 인해 전체 실행 시간이 약 40% 개선되어, CI 파이프라인의 효율성이 크게 향상되었습니다.
How has this been tested
Types of changes
Checklist