Repository navigation
fix(ci): build a SwiftPM step once more on CYLTabBarController-Swift module race - #48
Merged
Merged
Conversation
…t's module race
CYLAnimatedItemSwift of CYLTabBarController-Swift 1.100.1 declares no dependencies but imports
CYLUtilsKit, so xcodebuild sometimes compiles it before the CYLUtilsObjC module exists ("Unable to
resolve module dependency"); the same commit passes on master. spm-build.sh builds a step once more
when its log has exactly that error, and fails at once on any other.
By @ChenYilong <luohanchenyilong@163.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RdzYwpnDCT4cUL2KUvuZVC
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.
What
scripts/spm-build.shruns eachxcodebuildstep (library, Example-SPM, remote-URL consumer) through a newrun_step, which builds the step once more only when its log hasUnable to resolve module dependency: 'CYLUtilsObjC'. Every other failure fails at once; the first log stays inbuild/spm-<step>.first.log.Why
The
SwiftPM buildjob fails now and then on any branch (PR #47 run 46975770890,82a42dfcrun 46886461286) while the same code passes onmaster(run 46889139161). The cause is in CYLTabBarController-Swift 1.100.1: its targetCYLAnimatedItemSwiftdeclares no dependencies but importsCYLUtilsKit(which needsCYLUtilsObjC), so when xcodebuild compiles it first the build stops. The real fix isdependencies: ["CYLUtilsKit", "CYLUtilsObjC"]on that target upstream; the retry can go then.Checks
xcodebuild: the race passes on the second run, another error is not retried, a permanent race fails after one retry.SwiftPM buildjob of this pull request is the first real run.Generated by Claude Code