[FIX] CI 테스트 스킴 구성 및 Sendable 빌드 오류 수정 - #109
Merged
Merged
Conversation
dismiss를 로컬로 추출해 @sendable 클로저의 self 캡처 제거
Bangawo 스킴을 makeTestPlanScheme에서 makeScheme로 교체해 BangawoTests 타겟을 직접 지정
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.
무엇을 / 왜
PR #108(tuisttool 재컴파일)로
Generate project까지는 통과했으나,test잡의Run tests스텝에서 연달아 실패했습니다. 클린 빌드 기준으로 두 가지 문제를 확인해 수정합니다.1. 스킴에 test 액션이 비어 있음 (exit 66)
Bangawo스킴이 존재하지 않는Tests/Sources/BangawoTestPlan.xctestplan을.testPlans(...)로 참조해, 생성된 스킴의<TestPlans>·<Testables>가 모두 비어 있었습니다.Scheme.makeScheme(테스트 타겟을.targets(["BangawoTests"])로 직접 지정)로 교체했습니다.2. 클린 빌드에서 드러난 Sendable 오류 (증분 빌드에 가려져 있던 잠재 오류)
.run클로저에서@Dependency(\.dismiss)인스턴스 프로퍼티를 참조해self를 캡처하고 있었습니다.groupClient처리와 동일하게dismiss를 로컬로 추출해 캡처를 제거했습니다.검증
CI와 동일한 명령을 로컬에서 실행해 통과를 확인했습니다.
xcodebuild ... build→** BUILD SUCCEEDED **xcodebuild ... test→Executed 3 tests, with 0 failures/** TEST SUCCEEDED **To Reviewer
makeScheme는BangawoTests만 실행합니다. 추후 모듈별 테스트 타겟까지 게이트에 포함하려면 워크스페이스 단위 테스트 플랜 도입을 별도로 논의하면 좋겠습니다.