fix(scatterlab-prebuild-android): setup-node 의 yarn 캐시 의존을 끊는다 - #9
Conversation
앱 빌드 러너로 옮기자 checkout 은 통과했지만 setup-node 에서 죽었다
(run 34554334345):
yarn:
##[error]Unable to locate executable file: yarn.
공용 `./.github/actions/setup-node` 는 `cache: yarn` 을 강제하는데,
setup-node 는 그 캐시 키를 만들려고 `yarn` 을 먼저 부른다. 이 러너에서 yarn 은
corepack shim 으로 오고 shim 은 러너별 tool cache 의 node 설치본에 귀속되므로,
그 node 버전을 막 내려받은 러너에는 shim 이 없다.
zeta-frontend 의 `deploy-native.yml` 이 같은 걸 겪고 주석으로 남겨뒀고, 이
레포의 iOS prebuild 도 같은 러너에서 공용 액션을 쓰지 않는다. 같은 방식으로
`actions/setup-node` + `corepack enable` 을 쓴다. node 버전은 공용 액션
기본값(22.14.0)을 그대로 둬 변수를 하나만 바꾼다. 재시도가 있는
`./.github/actions/yarn-install` 은 유지한다.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. WalkthroughAndroid 사전 빌드 워크플로가 저장소 composite ChangesAndroid 빌드 초기화
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The Android workflow now initializes Node.js and Corepack in the established order, with no identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
토끼가 새 Node.js를 맞이해요 Comment |
Summary:
앱 빌드 러너로 옮긴(#8) 결과 checkout 은 통과했다 — 러너 전환이 TLS 문제를 풀었다. 다음 관문은
setup-node였다 (run 34554334345):공용
./.github/actions/setup-node는cache: yarn을 강제하고,actions/setup-node는 그 캐시 키를 만들려고 yarn 이 존재하기 전에yarn을 부른다. 이 러너에서 yarn 은 corepack shim 으로 제공되고 그 shim 은 러너별 tool cache 의 node 설치본에 귀속되므로, 해당 node 버전을 막 내려받은 러너에는 shim 이 없다.이건 이 조직에서 이미 문서화된 함정이다 —
zeta-frontend의deploy-native.yml주석:이 레포의
scatterlab-prebuild-ios.yml도 같은 러너에서 공용 액션을 쓰지 않고actions/setup-node+corepack enable로 간다. 같은 방식을 쓴다.node 버전은 공용 액션 기본값(
22.14.0)을 그대로 둔다 — 실패 원인은 캐시 입력 하나였으므로 변수를 하나만 바꾼다. 재시도 로직이 있는./.github/actions/yarn-install은 유지한다.Changelog:
[INTERNAL] [FIXED] - Stop the Android prebuilt build job from depending on yarn being present before corepack runs
Test Plan:
actionlint기존 노이즈 외 새 경고 없음.실환경에서 통과한 관문: 버전 검사 · 소비자 스모크 13/13 · checkout(러너 전환으로 해결). 남은 미실증: Gradle 빌드 본체,
verify_symbol게이트, 아카이브 패킹, draft 생성·검증·승격.🤖 Generated with Claude Code
Summary by CodeRabbit