Repository navigation
test(auth): 시드 테스트는 테스트마다 새 더미를 써 CI 시간을 되돌린다 - #390
Merged
Merged
Conversation
더미는 스펙(5-3)대로 회차와 무관하게 다시 쓴다. 그런데 같은 날 수십 번 생성·리셋하는 시드 테스트에서는 같은 더미 5명에 같은 날짜대 이력이 계속 쌓여, 정산이 매번 그 구간 뒤를 전부 재생한다 — 원장이 실행 횟수의 제곱으로 늘어(8회에 2만 행) PR #389 CI 가 23분 → 53분이 됐다(시드 IT 만 25.6분). - ReviewSeedDemo.dummyNamespace: 더미 subject·설치 값의 이름 공간. 운영은 빈 값이라 ruleup-demo-NN 그대로 - 시드 IT 는 테스트마다 이름 공간을 바꿔 새 더미를 쓴다(한 테스트 안의 회차끼리는 공유). 재사용 테스트는 자기 회차 둘로 본다 - 로컬 시드 IT 49개 합 301초 → 42초 운영은 재생 구간이 새 이력 시작일(실행일 −28일) 뒤뿐이라 한 심사 주기(생성 + 리셋 몇 번) 안에서만 쌓인다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test Coverage
|
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
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.
#389 머지 후 CI 가 23분 → 53분으로 늘었다. 늘어난 30분은 거의 시드 IT(CI 25.6분)다.
원인
더미는 스펙(5-3)대로 회차와 무관하게 재사용한다. 같은 날 수십 번 생성·리셋하는 테스트에서는 같은 더미 5명에 같은 날짜대 이력이 계속 쌓이고, 정산이 매번 새 이력 시작일 뒤를 전부 재생해 원장이 실행 횟수의 제곱으로 늘었다.
실측(로컬, create 반복): 더미 원장 180 → 1,070 → 2,680 → … → 21,530행(8회)
변경
ReviewSeedDemo.dummyNamespace: 더미 subject·설치 값의 이름 공간. 운영은 빈 값이라ruleup-demo-NN·demo-inst-NN그대로(스펙 유지)auth.review.*전체 통과운영 영향
없음. 재생 구간은 새 이력 시작일(실행일 −28일) 뒤뿐이라, 운영에서는 한 심사 주기(생성 + 리셋 몇 번) 안에서만 쌓인다. 같은 28일 안에 17번쯤 돌려야 더미 재생이 상한(20,000)에 닿는다.
🤖 Generated with Claude Code