fix(e2e): 승급 버전 리터럴을 상수로 통일 (status 단언 드리프트 수리) - #319
Merged
Conversation
직전 수정(rollout + endpoint 주소 확보 대기)이 불충분했다. 실측 타임라인:
10:36:24.219 STEP: waiting for webhook endpoint to be serving
10:36:24.788 cluster_recovery BeforeAll FAIL — connection refused
대기를 통과한 **0.5초 뒤** 첫 CR apply 가 죽었다. 원인은 판정 신호가 틀린 것:
readiness probe 는 healthz(8081)만 보고 **webhook TLS 포트(9443)를 보지 않는다**.
따라서 Pod=Ready + endpoint 에 주소 존재 상태에서도 webhook 서버는 아직 안 듣고
있을 수 있다 (operator 재시작 0회 — 죽은 게 아니라 아직 안 뜬 것이었다).
간접 신호 대신 **실제로 webhook 을 호출**한다. `kubectl apply --dry-run=server` 는
admission 체인을 그대로 태우면서 아무것도 저장하지 않으므로 정확한 준비 신호다.
검증 거부는 "webhook 이 응답했다"는 뜻이라 성공으로 치고, `failed calling webhook`
/ `connection refused` / `context deadline exceeded` 만 재시도한다.
verify: go vet -tags=e2e ./test/e2e/ → exit 0 / gofmt 출력 없음
(실효 검증은 머지 후 nightly 실측)
Signed-off-by: 태환 박 <phil@keiailab.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
#317 에서 major 승급(9.0.4)을 patch 승급(8.1.7)으로 바꿨는데, e2e_test.go 의 **status 단언만 9.0.4 로 남아** 있었다: }, 2*time.Minute, 5*time.Second).Should(Equal("9.0.4")) patch 는 8.1.7 로 나가는데 status 가 9.0.4 가 되기를 기다리니 영원히 타임아웃한다 (실측: e2e_test.go:455, Timed out after 120s). #317 의 정적 게이트는 **patch 리터럴만** 검사해 이 단언을 못 봤다. 게이트를 하나 더 붙이는 대신 **중복 자체를 없앤다** — 승급 버전을 상수로 승격해 patch 본문·기대 이미지·status 단언이 같은 값을 공유하게 하면 어긋남이 구조적으로 불가능해진다. 형제 backup_restore_test.go 도 같은 리터럴 산포 상태라 함께 정리한다 (version_upgrade_test.go 는 이미 상수 사용). verify: go vet -tags=e2e ./test/e2e/ → exit 0 / gofmt 출력 없음 (실효 검증은 머지 후 nightly 실측) Signed-off-by: 태환 박 <phil@keiailab.com> Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
무엇이 남아 있었나
#317 에서 major 승급(
9.0.4)을 patch 승급(8.1.7)으로 바꿨는데,e2e_test.go의 status 단언만 9.0.4 로 남아 있었습니다:patch 는 8.1.7 로 나가는데 status 가 9.0.4 가 되기를 기다리니 영원히 타임아웃합니다(실측:
e2e_test.go:455, Timed out after 120s). #317 의 정적 게이트는 patch 리터럴만 검사해 이 단언을 보지 못했습니다.게이트를 더 붙이는 대신 중복을 없앴습니다
승급 버전을 상수로 승격해 patch 본문·기대 이미지·status 단언이 같은 값을 공유하게 하면, 이 어긋남이 구조적으로 불가능해집니다. 검사기를 하나 더 얹는 것보다 이쪽이 옳습니다.
형제
backup_restore_test.go도 같은 리터럴 산포 상태라 함께 정리했습니다(version_upgrade_test.go는 이미 상수 사용).Verify
실효 검증은 머지 후 nightly 실측으로 합니다.
🤖 Generated with Claude Code
https://claude.ai/code/session_01QGCUdVQyTLSCiHoi5wiouH