Repository navigation
fix(migrate): 승인 뒤 시작 검사 중에도 이주 지도를 유지한다 - #131
Closed
charlie-rin[bot] wants to merge 1 commit into
Closed
charlie-rin[bot] wants to merge 1 commit into
charlie-rin[bot] wants to merge 1 commit into
Conversation
승인하고 시작을 누르면 플랫폼은 Plan을 바로 starting으로 바꾸고, 레지던시, 버전, 용량, parity 검사를 마친 뒤에 run을 만든다. 그동안 Plan 폴링(3초)이 starting을 읽으면 runId가 아직 없어서 단계가 setup으로 떨어지고 이주 지도가 사라졌다. starting인 Plan도 review 단계로 둔다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
totorosi
approved these changes
Nov 11, 2026
totorosi
left a comment
Contributor
There was a problem hiding this comment.
리뷰 결과: 문제 없음, 승인
확인한 것 (diff 2개 파일, CI validate 통과)
- 승인 직후 플랫폼이 시작 검사를 하는 동안(계획 상태
starting, 시작 요청이 run을 돌려주기 전)stage가setup으로 떨어져 이주 지도가 사라지던 문제를,starting도review단계로 묶어 고쳤습니다(src/data/migration.ts750줄). 이미(runId && plan)이 시작된 run의 계획을 붙잡던 것과 같은 방향입니다. plan은 사용자가 고른planRef로만 찾기 때문에(606줄) 온보딩 계획(onboarding.go가starting으로 만드는 것)이 이전 화면에 섞여 들어오지 않습니다.- 시작이 실패하면 플랫폼이 계획을
approved로 되돌려(plans.go391줄) 기존 흐름(다시 시작)으로 이어집니다. - 새 테스트가
starting상태의 폴링 중에도 지도가 유지되고 설정 폼(옮겨 갈 환경)이 나오지 않는 것을 확인합니다.
확인하지 못한 것: 화면에서 직접 확인하지 못했습니다. 플랫폼이 starting에 오래 머무는 경우(검사가 길어질 때)의 화면은 보지 못했습니다.
Contributor
|
main의 #126이 같은 문제(승인 뒤 시작 검사 중 이주 지도가 사라지는 것)를 이미 고쳐서 이 PR의 소스 변경은 충돌했고 필요 없어졌습니다. 테스트만 #132로 옮기고 이 PR은 닫습니다. 앞서 남긴 승인은 옛 소스 변경 기준이었습니다. |
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.
문제
이전 화면에서 승인하고 시작을 누르면 이주 지도가 몇 초 동안 사라지고 이전 설정 화면이 보였다가, run이 생긴 뒤에 지도가 다시 나타났다.
11/8 13:50 실행 기록(
pln_d623b2d2c5d7, GKE에서 onprem)에서 승인은 13:50:03에, 시작 요청 응답은 13:50:15에 기록됐다. 이 12초 동안 지도가 빠졌다.원인
POST /v1/migrations는Plans.Reserve에서 Plan을 먼저starting으로 바꾸고, 레지던시, 버전, 용량, parity 검사를 마친 뒤에 run을 만든다. 클러스터를 조회하므로 몇 초가 걸린다.runId를 저장한다. 그 사이 Plan 폴링(3초)이starting을 읽으면 단계 판정이pending_approval,approved,runId && plan중 어디에도 맞지 않아setup이 된다.setup단계는 지도를 그리지 않으므로 iframe이 사라지고, 다시 나타날 때 새로 읽힌다.#126은 시작 요청이 응답한 뒤부터 첫 스냅샷이 오기 전까지의 구간만 막았다. 이 PR은 그 앞 구간을 막는다.
변경
src/data/migration.ts:plan.status === "starting"도 review 단계로 둔다.src/App.test.tsx: 시작 요청을 붙잡아 둔 채 Plan 폴링이starting을 돌려줄 때도 이주 지도가 남고 이전 설정 폼이 나오지 않는지 확인하는 테스트를 추가했다.확인
tsc -b통과NODE_ENV=test npx vitest run전체 778개 통과남은 점
시작 요청이 진행되는 동안 아래 승인 카드는
승인 대기로 보인다. 이때 버튼은 busy 상태라 눌리지 않는다. #126 구간(시작 응답 뒤, 첫 스냅샷 전)도 같은 카드를 보여 준다. 이번 PR에서는 바꾸지 않았다.🤖 Generated with Claude Code