Skip to content

[CI] iOS lane Xcode 빌드 캐시와 시뮬레이터 VM service 연결 멈춤 수정 - #493

Merged
AquilaXk merged 18 commits into
mainfrom
ci/ios-lane-cache-and-attach-3036
Oct 20, 2026
Merged

AquilaXk merged 18 commits into
mainfrom
ci/ios-lane-cache-and-attach-3036

Conversation

@AquilaXk

@AquilaXk AquilaXk commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Related issue

Refs AquilaXk/easysubway#3036 (4-30 iOS job 시간, 4-31 산출물 재사용 drive 연결 멈춤)

head SHA: 1f5b120648796834e17c7b69918b063ea5523c63 (리뷰 F1~F3 반영. 시간 표 측정은 이전 head eae18e1a까지의 run이며, 그때는 PR run도 캐시를 저장했다)

Summary

  • Problem
    • 4-30: iOS native smoke job이 16.823.4분 걸린다. 첫 drive의 Xcode 빌드(181378초)와 SwiftPM 내려받기·해석이 매번 처음부터 돈다.
    • 4-31: 산출물을 재사용하는 drive가 앱은 떴는데(The Dart VM service is listening) flutter 도구가 연결하지 못하고 멈춘다. 이 PR 이전 코드로 CI를 다시 돌려 보니 11번 중 4번(36%) 멈췄다(run 39205377932, 39220194223 attempt 1, 39227205071 attempt 4·5).
  • Outcome
    • 4-30: DerivedData와 SwiftPM SourcePackages를 캐시한다. 캐시를 복원한 drive 빌드는 컴파일 작업이 CompileC 1건·SwiftCompile 12건뿐이고, Xcode 빌드 중앙값이 273.8초에서 154.9초로 줄었다. iOS job 중앙값은 19.2분(성공한 run)에서 14.9분이다. 러너 속도 편차가 커서 run마다 11~21분으로 흔들린다(아래 시간 표).
    • 4-31: 원인은 Flutter 3.44.0 도구의 경합이다. simctl spawn ... log stream이 준비되기 전에 앱이 실행돼 VM service 주소 줄을 놓친다. 같은 경합이 한 곳 더 있다(아래). 상류 수정([flutter_tools] Wait for iOS simulator log stream before launch flutter/flutter#193142, 2026-10-15 master 병합, 3.44.0에는 없음)을 3.44.0 소스에 옮기고 두 번째 경합용 확장을 더해 CI에서 적용한다. 적용 뒤 22번 중 0번 멈췄다. 재시도 예외는 넣지 않았다.

Changes

  • .github/workflows/mobile-native-integration.yml (iOS job만)
    • Apply Flutter iOS simulator log stream fix: Flutter SDK에 패치를 적용한다.
    • Resolve Xcode build cache key, Restore Xcode build cache(actions/cache/restore), Save Xcode build cache(actions/cache/save): DerivedData와 apps/mobile/build/ios/SourcePackages를 캐시한다. 저장은 main push에서 정확한 일치가 없을 때만, smoke가 성공한 뒤에 한다. 키는 runner.os-runner.arch-Xcode 버전·빌드-Flutter 버전·엔진-hash(pubspec.lock, ios/**)이고, restore-keys는 같은 toolchain 접두사까지만이다.
    • Set up Flutter의 SDK 캐시 키에 패치 파일 해시를 넣었다(cache-key: …-patch-${{ hashFiles('tools/ci/flutter-patches/*.patch') }}). 패치가 바뀌면 이전 패치가 남은 SDK 대신 새 SDK를 받는다. 패치한 SDK가 캐시에 저장되어 다음 run은 패치 단계가 0초다(run 39350287566 attempt 2).
    • Report Xcode build cache: exact hit, partial restore, miss와 캐시 크기를 step summary에 남긴다.
    • 패치와 스크립트를 paths 트리거에 넣었다(pull_request, push 둘 다).
  • tools/ci/apply-flutter-patch.sh: 패치 적용 + tool 재빌드 + 스냅샷 확인. 적용할 수 없거나 스냅샷에 반영되지 않으면 실패한다. 이미 적용된 SDK는 건너뛴다.
  • tools/ci/flutter-patches/3.44.0-ios-simulator-log-stream-ready.patch: packages/flutter_tools/lib/src/ios/simulators.dart 한 파일.
  • tools/ci/mobile-native-integration-workflow.test.mjs: 계약 테스트 10개 추가(71개에서 81개). 기존 단언은 가드 정규식 하나만 바꿨다. release|store의 store를 (?<!re)store로 바꿔 restore-keys의 restore만 예외로 하고 keystore, datastore, appstore, app_store는 다시 걸린다(별도 테스트가 네 단어와 restore를 단언).
  • 바꾸지 않은 것: native-drive-common.sh, ios-native-drive.sh, android-native-drive.sh(공용 fail-closed 규칙, 구조화 결과 판정 [CI] native lane 대상을 단일 integration_test 진입점으로 묶어 앱 빌드를 1회로 줄임 #492).

Scope

Included

  • iOS job의 캐시와 Flutter 도구 패치

Excluded

  • Android lane, 공용 drive 흐름과 판정, 러너 크기(비용이 드는 설정이라 제안만)

Ownership / dependencies

조사한 사례와 선택

API·데이터 원천 카탈로그 대조: CI 도구 변경이라 해당 없음(외부 API를 쓰지 않는다).

4-30 캐시

사례 확인한 내용 반영
GitHub Docs 캐시 규칙 PR은 기본 브랜치 캐시를 읽는다. PR 캐시는 그 PR만 읽는다. 저장소 10GB, 오래 안 쓴 것부터 제거 캐시 1개 1.15GiB. 현재 저장소 사용량 8.3GB라 오래된 항목이 밀려날 수 있다(위험 참조)
irgaly/xcode-cache DerivedData와 SourcePackages를 함께 캐시, 키에 SHA, restore-keys로 직전 캐시, mtime은 나노초 정밀도로 보존해야 같은 구성. tar가 mtime을 보존해 별도 복원 없이 증분 빌드됨을 확인
WarpBuild Xcode 캐시 가이드 키에 toolchain을 넣어야 한다. 다른 Xcode의 DerivedData는 캐시가 없는 것보다 나쁘다. PR은 쓰지 말고 main만 저장하라는 권고 toolchain을 키와 restore-keys 접두사에 넣음. 리뷰 F2에 따라 restore/save를 나누고 저장은 main push에서만 함
Kogan 개발 블로그 DerivedData 캐시로 CI 30분대에서 15분 안팎, IgnoreFileSystemDeviceInodeChanges와 mtime 복원 사용 두 설정을 Xcode 26.3에서 시험함. 설정 없이도 복원한 빌드가 CompileC 1건만 돌아 넣지 않음
Apple 개발자 포럼 659218, 810306, llbuild 메모 llbuild가 mtime을 정확히 비교. Xcode 26에서 증분 빌드가 안 된다는 보고(답 없음) 가정하지 않고 CI에서 컴파일 작업 수로 직접 확인
subosito/flutter-action cache: true가 SDK와 pub 의존성을 캐시 이미 쓰는 중(SDK 2.0GiB, pub 57MiB). 추가 변경 없음
immich build-mobile.yml, AppFlowy ios_ci.yaml immich는 Rust·Ruby만 캐시하고 PR이 쓴 캐시는 릴리스 브랜치가 못 읽는다고 주석. AppFlowy는 flutter-action 캐시만 둘 다 DerivedData를 캐시하지 않아 참고할 설정이 없었다. Flutter 저장소 자체 CI는 확인하지 못했다
GitHub 러너 요금 macOS 표준 3~4코어 분당 $0.062, arm64 5코어(M2 Pro) $0.102, x64 12코어 $0.077. 큰 러너는 공개 저장소도 과금 러너 크기는 바꾸지 않고 제안만 한다(아래)

버린 대안 (4-30)

  • 큰 러너(macos-15-xlarge): 비용이 든다. 표준 러너 run 사이 편차(같은 설정이 11~21분)가 러너 크기 효과보다 커서 효과를 가려내려면 요금을 내고 재 봐야 한다. 제안만 한다.
  • Xcode inode 무시 설정과 git core.checkStat: 시험해 필요 없음을 확인(설정 있는 run 39244328761과 없는 run 39247469198 모두 복원한 빌드의 CompileC 1건·SwiftCompile 12건).
  • Package.resolved 캐시: 이 파일은 저장소에 없고 SwiftPM 의존성이 매번 최신 범위로 풀린다. 캐시하면 키가 바뀔 때까지 영구 고정되어 의존성이 조용히 묵는다. 지금 동작(SourcePackages는 재사용, 해석은 매번)을 유지했다.
  • .dart_tool/flutter_build 캐시: Dart 커널 컴파일이 5~47초라 이득이 작다.
  • 시뮬레이터 부팅을 앞당겨 겹치기: 시험했으나 되돌렸다. simctl boot가 부팅이 끝날 때까지 막아서(149초) 겹치지 않았고, 백그라운드로 돌리면 3코어 러너에서 캐시 키 계산(88초)과 패치 적용(78초)이 느려졌다. 공용 흐름의 단계 순서를 바꿔야 의미가 있어 이 PR 범위 밖이다.

4-31 연결 멈춤

사례 확인한 내용
flutter/flutter#181771 같은 증상. flutter test가 iOS 시뮬레이터에서 40번 중 3번, 20번 중 2번 시작하지 않음. 원인은 _IOSSimulatorLogReader의 경합. --no-dds는 효과 없었다고 보고. 우회책은 재시도·감시 스크립트
flutter/flutter#193142 수정. log stream이 첫 줄을 내면 그때 launch. 2026-10-15 master 병합. 안정 버전에는 아직 없다
helius-labs/zolana-mobile-sdk#10 같은 패치를 CI에서 Flutter 도구에 적용(절반쯤 멈춤). 적용할 수 없으면 실패하게 둔 점을 따랐다
FlappedEar/Telemetry#25, noeGnh/filmkit#13 놓친 VM service 줄을 재시도·감시 시간 제한으로 우회. 원인을 고치지 않는 방식이라 고르지 않음
Flutter 3.44.0 소스(simulators.dart, protocol_discovery.dart, drive_service.dart) 시뮬레이터는 VM service 주소를 기기 로그에서만 찾는다. 포트 전달기가 없어 --host-vmservice-port·--device-vmservice-port는 로그 줄을 거르기만 하고 놓친 줄을 되살리지 못한다. mDNS는 flutter attach에서만 쓰고 run·drive의 앱 시작은 로그만 쓴다. --no-dds는 lane에 이미 있다
#144634, #181480, #166333, #138775 실기기 무선 연결·lldb, 로컬 네트워크 권한, 연결 거부 보고. 시뮬레이터 로그 경합과 원인이 달라 해당 없음

원인 (로그로 확인)

  1. 첫 번째 경합: tool이 log stream을 띄운 직후 simctl launch를 실행한다. 느린 러너에서 앱이 주소를 먼저 남기면 tool이 영영 놓친다. 멈춘 run 39220194223 attempt 1의 시뮬레이터 로그에는 Runner ... The Dart VM service is listening on http://127.0.0.1:58766/... 줄이 있는데 flutter drive 로그에는 연결 줄이 없다.
  2. 두 번째 경합(상류에 없음): VM service를 찾으면 첫 log stream이 멈추고, 드라이버가 로그 listener를 붙일 때 새 log stream이 뜬다(-v 로그에서 주소를 찾은 직후 simctl spawn ... log stream이 한 번 더 실행됨). 이 stream이 준비되기 전에 테스트가 시작하면 테스트 첫 줄을 잃는다. run 39229893574 attempt 2와 39250828131 attempt 3은 앱이 NATIVE_SYSTEM_TEXT_SCALE= 줄을 냈는데(시뮬레이터 로그에 있음) drive 로그에는 5초 정도 구간이 비어 font_scale_mismatch로 실패했다. 첫 번째 경합이 사라지면 같은 느린 러너가 이 경합에 걸린다.

조치

  • 두 경합 모두 "log stream이 준비되기 전에 앱·테스트를 움직이지 않는다"로 고친다. 첫째는 상류와 같고, 둘째는 provideVmService(드라이버가 listener를 붙인 직후 부름)에서 같은 준비 신호를 기다린다.
  • 원인을 고쳤으므로 재시도 예외는 만들지 않았다. 예외 조건(앱 실행 증거 + 결과 신호 없음 + 연결 단계)이 필요해지면 그때 영수증에 별도 사유를 남기는 방식으로 추가한다.
  • 30초 넘게 준비되지 않으면 오류 문구를 남기고 계속 기다린다(상류 최종본과 같다). 끝내 안 되면 기존 시간 제한(124/142)과 영수증이 그대로 실패로 드러낸다.
  • Flutter를 이 수정이 들어간 버전으로 올리면 패치가 적용되지 않아 CI가 실패한다. 그때 패치와 step을 지운다.

측정

iOS job 시간 (분, 시작~완료)

구분 설정 표본(분) 중앙값
이전 (성공) 캐시·패치 없음 10.9, 16.8, 17.8, 20.5, 21.8, 23.4 19.2
이전 (멈춰 실패) 캐시·패치 없음 23.6, 24.9, 27.4, 28.4 26.2
캐시 비어 있음 이 PR 17.4, 19.8, 24.3 19.8
캐시 있음 이 PR 11.5, 13.2, 13.5, 13.9, 15.8, 16.8, 19.8, 20.5 14.9

같은 시각에 시작한 짝 비교(이전 설정은 main push run 39227205071을 rerun)

시작 이전 이 PR (캐시 있음)
14:20 UTC 21.8분 (attempt 2) 16.8분 (run 39267590150)
15:08 UTC 10.9분 (attempt 3) 13.2분 (run 39275213104)
17:28 UTC 27.4분, 재사용 drive 멈춤 실패 (attempt 5) 13.5분 (run 39292224363 attempt 2)

Xcode 빌드 (flutter drive 로그의 Xcode build done, 초)

구분 표본 중앙값
이전 119.4, 181.2, 188.1, 235.2, 245.6, 301.9, 309.5, 357.8, 359.4, 378.3 273.8
캐시 비어 있음 197.1, 267.5, 418.0 267.5
캐시 있음 84.0, 109.0, 114.6, 154.6, 155.2, 155.4, 155.8, 200.9 154.9

컴파일 작업 수(flutter drive -v): 캐시를 복원한 drive 빌드는 CompileC 1·SwiftCompile 12·Ld 36(run 39244328761, 39247469198 두 번 같은 값). 비교 감각용으로, 같은 소스를 처음부터 빌드한 진단 빌드(flutter build ios --simulator, x86_64 포함이라 구성이 달라 엄밀한 비교는 아님)는 CompileC 414·SwiftCompile 217·Ld 72였다.

해석: 컴파일은 캐시로 확실히 줄지만 job 전체는 러너 속도가 좌우한다. 같은 설정이 1121분으로 흔들리므로 "항상 15분대"가 아니라 "중앙값 15분 안팎, 멈춰서 실패하는 run 제거"로 읽어야 한다. 캐시 비어 있는 run은 이전과 비슷하고 저장에 5375초가 더 든다. 캐시 복원은 22~39초.

4-31 반복 실행

구분 표본 멈춤
이전 (패치 없음) drive에 도달한 job 11개 4개 (36%)
이후 (패치 적용) job 22개, 첫 drive 연결 22/22, 재사용 drive 연결 21/21 0개
이후 중 두 번째 경합 확장 적용 job 12개 font_scale_mismatch 0개 (확장 전 패치만 적용한 job 10개 중 2개)

이후 22개 안에는 임시 진단·시험 step이 들어간 job도 포함했다. 멈춤 비율이 이전과 같다면(36%) 22번 연속 0번일 확률은 약 0.005%다.

캐시 정확성

소스를 바꾼 뒤 증분 빌드가 변경을 반영하는지 확인했다(임시 프로브, 이 PR에서 되돌림 — 최종 diff에 AppDelegate.swift와 native_smoke_test.dart 변경 없음).

단계 run 캐시 확인 결과
프로브 v1 39261439741 프로브 이전 캐시에서 partial restore(소스 해시가 달라 키 불일치) Runner.app 안 CACHE_PROBE_NATIVE_v1, drive 로그 CACHE_PROBE_DART_v1 네이티브 1개 파일, Dart 1줄 반영
프로브 v2 39263913123 v1 빌드가 든 캐시에서 partial restore v1 문자열이 사라지고 v2만 남는지 v1 0개 파일·0줄, v2 1개 파일·1줄
  • AppDelegate.swift에 NSLog("CACHE_PROBE_NATIVE_vN"), native_smoke_test.dart에 print('CACHE_PROBE_DART_vN')을 임시로 넣었다. 프로브를 되돌린 뒤의 run(39292224363)은 원래 키로 exact hit이고 통과했다.
  • 증분 빌드는 Xcode의 입력 파일 시그니처 비교에 맡긴다. restore-keys가 다른 Xcode·Flutter의 산출물을 복원하지 않게 키 접두사에 toolchain을 넣었다.

Contract & Compatibility

  • Generated API / application-state contract: 해당 없음
  • UI / accessibility behavior: 변경 없음(앱 소스 변경 없음)
  • Backward compatibility: Android lane 변경 없음. iOS lane의 영수증 형식·판정은 그대로
  • Migration or release cutover: 없음

Version impact

  • no version change

Release gate impact

  • apps/mobile/release/*.json 영향 없음
  • 출시 준비 완료 claim을 추가하거나 변경하지 않습니다.

Store submission readiness impact

  • store-submission-readiness.json 영향 없음
  • Google Play 출시 가능 claim을 추가하거나 변경하지 않습니다.

Version decision

  • mobile versionName / versionCode: 변경 없음
  • datapack version: 변경 없음
  • mobile contract / consumer snapshot: 변경 없음
  • AAB identity: 변경 없음

Verification

Check Result / Evidence
Focused RED → GREEN 패치 파일·스크립트 없이 계약 테스트를 돌리면 ENOENT로 로드 실패(RED). 구현 후 node --test tools/ci/mobile-native-integration-workflow.test.mjs → tests 81, pass 81, fail 0. 새 테스트: 가드 정규식(keystore·datastore·appstore·app_store는 걸리고 restore는 통과), 캐시 restore/save 분리와 main push 한정, SDK 캐시 키의 패치 해시, 패치 적용·재빌드, 이미 적용된 SDK 건너뜀, 스냅샷이 낡았으면 재빌드, 다른 버전 SDK에서 실패, 재빌드 후 스냅샷에 수정이 없으면 실패, 실패 무시 금지, 워크플로 단계 순서·캐시 키 구성·Android 무변경
리뷰 F1~F3 변이 확인 정규식을 \bstore\b로 되돌리기, 저장 조건에서 main 한정 빼기, 저장 조건에서 push·main 한정 모두 빼기, SDK 캐시 키 줄 삭제, 스크립트 안내 문구 삭제를 각각 넣으면 해당 테스트가 fail(5/5), 원복 후 81/81
Affected integration iOS Journey native smoke: run 39350287566 head 1f5b1206 attempt 1(SDK 캐시 miss라 23.1분, Save Xcode build cache skipped)·attempt 2(패치한 SDK 캐시 hit, 패치 단계 0초, 16.8분) 모두 PASS. 이전 head: run 39292224363 head eae18e1a attempt 1·2·3 모두 PASS(13.9분, 13.5분, 24.3분(캐시 비움)). Android Journey native smoke 같은 run PASS (이전 head의 run 39277682964 attempt 1에서 Android 에뮬레이터 boot 실패 1회, rerun --failed로 통과, 이 변경과 무관)
Required CI head 1f5b1206 전 check green (Mobile contracts, Mobile host tests, Android build, Mobile Golden CI, CI scope, Changed Path Classification, osv-scan, CodeQL, 두 native smoke)
정적 검사 actionlint .github/workflows/mobile-native-integration.yml exit 0, shellcheck -x apply-flutter-patch.sh ios-native-drive.sh android-native-drive.sh native-drive-common.sh(tools/ci에서) exit 0
패치 단독 확인 Flutter 3.44.0 SDK 복제본에서 패치 적용 → tool 재빌드(8초) → 스냅샷에 수정 문자열 포함, dart analyze 문제 없음. 시뮬레이터에서 flutter drive -v로 주소 발견 직후 두 번째 log stream 시작과 테스트 출력 정상 확인
UI / accessibility / device Not required — reason: CI workflow와 Flutter 도구 패치 변경이며 화면 코드·접근성은 바꾸지 않는다. 증거는 CI run과 로그
Release / privacy / artifact Not applicable — reason: 출시 산출물과 무관하다

Not run

  • Check: Flutter 상류 단위 테스트(simulators_test.dart)
  • Reason: 상류 테스트는 master 소스 기준이라 3.44.0에 그대로 로드되지 않는다(CpuArch 등). 대신 계약 테스트와 CI 반복 실행으로 확인했다
  • Rerun owner / condition: Flutter를 올릴 때 패치가 적용되지 않으면 CI가 실패한다

Risk

  • Level: High
  • Main risk
    1. CI에서 Flutter SDK 소스를 고친다. 적용 실패와 스냅샷 미반영은 실패로 드러난다. 두 번째 경합용 확장은 상류에 없는 우리 변경이라, 상류가 다른 방식으로 고치면 Flutter 업그레이드 때 패치가 거부되어 재검토하게 된다. 패치 해시가 SDK 캐시 키에 들어 있어 패치를 고쳐도 낡은 SDK에 겹쳐 적용되지 않고, 그래도 실패하면 오류 메시지가 SDK 캐시를 비우거나 패치 파일명을 바꾸라고 안내한다.
    2. 캐시 크기. 항목 1.15GiB, 저장소 8.3GB/10GB. 저장을 main push로 한정해 PR run이 쿼터를 쓰지 않는다. 이 PR 자체는 main이 아니라 캐시를 저장하지 않고, 병합 후 첫 main run에서 처음 저장된다. 그 전에는 이 PR이 이전에 저장된 PR 범위 캐시를 읽을 뿐이고, 다른 PR은 캐시 없이(cold) 돈다. 패치가 바뀔 때마다 SDK 캐시(2.0GiB)가 새로 생기는 비용이 있다.
    3. 러너 속도 편차. 같은 설정이 11~21분. 시간 목표는 중앙값 기준이다.
    4. Package.resolved가 저장소에 없어 SwiftPM 의존성은 매 run 최신 범위로 풀린다(기존 동작). 캐시는 이를 고정하지 않는다.
  • Failure behavior: 패치 적용 실패·스냅샷 미반영·캐시 복원 실패는 step 실패(캐시 복원 실패는 miss로 처리되어 느릴 뿐 판정은 같다). 판정·영수증 규칙은 바뀌지 않았다
  • User-visible / state / release mutation on failure: 없음
  • Fallback or degraded-success path introduced: No

Rollout / Recovery

  • Rollout or release: 병합 즉시 iOS lane에 적용. 첫 main push run이 main용 캐시를 만든다
  • Monitoring / success signal: iOS job 시간, step summary의 캐시 줄, 영수증 reason(timeout·font_scale_mismatch) 빈도
  • Rollback or recovery: 이 PR revert. 캐시 항목은 7일 뒤 자동 제거
  • State / generated contract / data compatibility after rollback: 영향 없음

Review focus

  • apply-flutter-patch.sh의 fail-closed 조건과 패치 머리말의 제거 조건
  • 캐시 키가 toolchain 밖의 산출물을 복원하지 않는지
  • 계약 테스트가 워크플로 순서와 키 구성을 실제로 고정하는지

Checklist

  • 이슈 범위와 실제 diff가 일치합니다.
  • 관련 없는 변경이나 다른 owner의 surface를 포함하지 않았습니다.
  • 위험에 필요한 검증과 미실행 사유를 기록했습니다.
  • 실패·호환성·release·recovery 동작이 명확합니다.
  • current failure를 previous/local/legacy 결과의 성공 표시로 바꾸지 않습니다.
  • CodeRabbit 리뷰 결과와 필요한 조치를 확인했습니다.
  • GitHub PR Review 객체가 있는지 확인했습니다. CodeRabbit status check만으로는 리뷰 완료로 보지 않습니다.
  • CodeRabbit Review 객체가 없으면 지원되는 Codex CLI 폴백 Review를 단일 GitHub PR Review로 게시했습니다.
  • store 배포 영향이 있는 경우 release·distribution workflow 상태를 확인했습니다. (해당 없음)

- iOS job: DerivedData와 SwiftPM SourcePackages를 Xcode·Flutter toolchain, pubspec.lock, ios 소스로 만든 키로 캐시한다.
- Flutter 3.44.0 tool이 log stream 준비 전에 앱을 실행해 VM service 주소를 놓치는 경합(flutter/flutter#181771)을
  상류 수정(flutter/flutter#193142)으로 막는다. 적용할 수 없거나 스냅샷에 반영되지 않으면 실패한다.

Refs AquilaXk/easysubway#3036
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 50d8179a-60c5-45a3-985c-c04f40f04bfe
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

테스트 첫 줄(NATIVE_SYSTEM_TEXT_SCALE=)이 새로 뜬 log stream 준비 전에 나가 사라지는 경합(CI 2회 font_scale_mismatch)을 막는다.
프로브 확인: v1 캐시에서 v2 소스를 증분 빌드하면 v1 문자열은 사라지고 v2만 남는다(네이티브 Runner.app, Dart 로그 모두).

@AquilaXk AquilaXk left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🎯 Linked issue & acceptance criteria audit
ID Acceptance criterion Status Evidence
4-30 Introduce SwiftPM source package and DerivedData caches compared with external cases PASS .github/workflows/mobile-native-integration.yml
4-31 Investigate the hang before VM service connection using external cases PASS tools/ci/apply-flutter-patch.sh
🛡️ Adversarial audit evidence
  • Falsifiability verified: Yes (Scratch-copy mutants of the script check, skip branch, and stamp reset failed tests.)
  • Hollow assertions detected: 0
  • Production backdoors detected: 0
  • Ground-truth sources verified:
    • actionlint and shellcheck exit 0 on the workflow and tools/ci scripts
    • Cache probe runs 39261439741 and 39263913123 cited in the PR body for Dart and native reflection
    • node --test of the contract file ran 80 of 80 passing at head eae18e1a
🤖 Prompt for all review comments with AI agents
Could we verify each finding against the current code and keep only those that
still apply? Could we make the smallest validated fix and briefly note why any
finding no longer applies?

Inline comments:
- `@.github/workflows/mobile-native-integration.yml:203-204`
  Could a follow-up checklist row split this into restore plus a save step guarded by
  `github.ref == 'refs/heads/main'`, and compare eviction after a week of runs?
- `@tools/ci/apply-flutter-patch.sh:21-26`
  Could the patch header note that a revised patch needs a new file name or a cache
  bust, so a later editor is not surprised by the persistent failure?
- `@tools/ci/mobile-native-integration-workflow.test.mjs:82-82`
  Could the pattern exclude only the new word, for example `(?<!re)store`? That keeps
  restore-keys allowed and still rejects keystore, datastore, and appstore tokens.

---

Outside diff comments:
None.

ℹ️ Review info
⚙️ Run configuration

Configuration used: CLAUDE.md, global rules, and aquila-review skill instructions

Review profile: ASSERTIVE

Plan: Aquila fallback

Run ID: N/A (Aquila fallback)

Review source: Aquila CLI

Repository visibility: public GitHub repository

Trigger:
Discovery review requested once for the current change set

Base:
main@54a62f71d69801c618f32b1ff0237cde4da88db2

Head:
ci/ios-lane-cache-and-attach-3036@eae18e1a52d9be9f3328aad7b2fcbc17924cd6ce

Command:
node compile-review-payload.mjs input.json --output payload-1.json

📥 Commits

Reviewing files changed in this pull request between:

  • Base: 54a62f71d69801c618f32b1ff0237cde4da88db2
  • Head: eae18e1a52d9be9f3328aad7b2fcbc17924cd6ce
📒 Files selected for processing (3)
  • .github/workflows/mobile-native-integration.yml
  • tools/ci/apply-flutter-patch.sh
  • tools/ci/mobile-native-integration-workflow.test.mjs
📜 Review details

Comment thread tools/ci/apply-flutter-patch.sh Resolved
- 가드 정규식을 (?<!re)store로 바꿔 keystore·datastore·appstore·app_store를 다시 막고 restore만 허용한다.
- actions/cache를 restore와 save로 나누고 save는 main push에서 정확한 일치가 없을 때만 한다.
- flutter-action SDK 캐시 키에 패치 파일 해시를 넣고, 적용 실패 안내에 SDK 캐시 비우기·패치 파일명 변경을 적었다.
@AquilaXk
AquilaXk marked this pull request as ready for review October 20, 2026 01:38
@AquilaXk AquilaXk added the automerge 검증 완료 후 automerge queue 처리 label Oct 20, 2026
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

No description provided.

@AquilaXk
AquilaXk merged commit 3a97b30 into main Oct 20, 2026
@AquilaXk
AquilaXk deleted the ci/ios-lane-cache-and-attach-3036 branch October 20, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge 검증 완료 후 automerge queue 처리

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant