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

build 타임 최적화 및 테스트 파일 cicd 파일 최적화 #10

Merged
merged 10 commits into from
Dec 13, 2024

Conversation

KimKyuHoi
Copy link
Contributor

@KimKyuHoi KimKyuHoi commented Dec 13, 2024

Pull request

Related issue

#9

  • build 최적화

Motivation and context

  • build 시간을 더 줄이기 위해

Solution

  • jest.config.js
  maxWorkers: 4,
  verbose: true,
  • root환경의 package.json
"build": "turbo run build --parallel",
    "test": "jest --runInBand --ci",

빌드 성능 개선:

이전:
icons: 1.5s -> 1.6s
ui: 2.1s -> 1.9s
총 빌드: 2.905s (이전 3.388s)
개선율: 약 14% 향상

테스트 실행 성능:

이전: 9.173s
현재:  6.296 s
개선율: 약 31.36% 향상

세부 테스트 시간:

  • Input 컴포넌트: 40ms (이전 57ms)
  • Button 컴포넌트: 7ms (이전 42ms)

Storybook 성능:

매니저 빌드: 180ms
프리뷰 빌드: 4.67s (이전 8.36s)
총 빌드 시간: 4.85s
개선율: 약 42% 향상

청크 크기 상태:

Copy최대 청크:
index-CWxDe-PO.js: 890.11 KB (gzip: 278.60 KB)
entry-preview-docs-CArRfnTJ.js: 256.59 KB

주목할 만한 개선:
✅ Storybook 빌드 시간 크게 감소
✅ 테스트 실행 시간 크게 감소
✅ 전반적인 빌드 성능 향상

How has this been tested

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the docs/CONTRIBUTING.md document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@KimKyuHoi KimKyuHoi added ✨ Feature 기능 추가 📦 Environment 개발 환경 세팅 labels Dec 13, 2024
@KimKyuHoi KimKyuHoi self-assigned this Dec 13, 2024
Copy link

Test Coverage Report 📊

  • Statements: 100%
  • Branches: 83.33%
  • Functions: 100%
  • Lines: 100%

Copy link

📚 Storybook Preview Ready!
🔍 Review URL: https://67528afc87ce45f40d6517e2-eyczirmure.chromatic.com/

Copy link

Test Coverage Report 📊

  • Statements: 100%
  • Branches: 83.33%
  • Functions: 100%
  • Lines: 100%

Copy link

📚 Storybook Preview Ready!
🔍 Review URL: https://67528afc87ce45f40d6517e2-giyrsfdwae.chromatic.com/

Copy link

Test Coverage Report 📊

  • Statements: 100%
  • Branches: 83.33%
  • Functions: 100%
  • Lines: 100%

Copy link

📚 Storybook Preview Ready!
🔍 Review URL: https://67528afc87ce45f40d6517e2-xezodoujyk.chromatic.com/

Copy link

Test Coverage Report 📊

  • Statements: 100%
  • Branches: 83.33%
  • Functions: 100%
  • Lines: 100%

Copy link

📚 Storybook Preview Ready!
🔍 Review URL: https://67528afc87ce45f40d6517e2-qkwddkvarz.chromatic.com/

Copy link

Test Coverage Report 📊

  • Statements: 100%
  • Branches: 83.33%
  • Functions: 100%
  • Lines: 100%

Copy link

📚 Storybook Preview Ready!
🔍 Review URL: https://67528afc87ce45f40d6517e2-gmfufhwhsk.chromatic.com/

Copy link

Test Coverage Report 📊

  • Statements: 100%
  • Branches: 83.33%
  • Functions: 100%
  • Lines: 100%

Copy link

📚 Storybook Preview Ready!
🔍 Review URL: https://67528afc87ce45f40d6517e2-xqbohbomzx.chromatic.com/

Copy link

Test Coverage Report 📊

  • Statements: 100%
  • Branches: 83.33%
  • Functions: 100%
  • Lines: 100%

Copy link

📚 Storybook Preview Ready!
🔍 Review URL: https://67528afc87ce45f40d6517e2-ctwxflemaw.chromatic.com/

@KimKyuHoi KimKyuHoi merged commit b784a04 into main Dec 13, 2024
6 checks passed
@KimKyuHoi KimKyuHoi linked an issue Dec 13, 2024 that may be closed by this pull request
@KimKyuHoi KimKyuHoi mentioned this pull request Dec 13, 2024
9 tasks
@KimKyuHoi KimKyuHoi changed the title Refac/yml file build 타임 최적화 및 테스트 파일 cicd 파일 최적화 Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Environment 개발 환경 세팅 ✨ Feature 기능 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

빌드 타임 최적화
1 participant