-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In consumer mode, pod install fails unexpendently #232
Comments
@polac24 In logs when I am running in consumer mode, it's returning 404 whenever I do pod install- |
that logs suggests that a git command
Thus I would verify your git on CI:
|
hey @polac24 after git fetch origin again it passed the pod installation step, from the same primary branch, I see consumer mode is failing, can you please help us why it is happening.
[!] Charts has been deprecated in favor of DGCharts |
That line says that there are not artifacts generated in the cache for:
Please make sure a producer correctly builds it and marks it as "cacheable" (ensure the
If correctly setup, in your bucket, there should be an empty file: https://cache-address-s3-bucket/cache/marker/808322822b6611900f28674056363b5b37b1d491-Debug-iphonesimulator-14B47b-5 |
@polac24 the final target is correct, the only thing I can see is I am using - |
|
@polac24 In consumer mode when we are running on another machine it is not able to find artifacts, both producer and consumer machines are of similar configuration 2023-12-19 08:17:58.055 I xcprepare[58408:c98df5] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/abc/Documents/action-runner-intel-snapshot/actions-runner/_work/mono-ios/mono-ios/abc-ios-mobile/). Skipping extra configuration |
Is a key: the machine doesn't have |
@polac24 I can see the cache key for this build configuration is present on the S3 bucket - cache/marker/b5bf12a367dabf0e2bff81305182570bb2203dd7-EnterpriseDev-iphonesimulator-14B47b-5 |
OK, but the client's machine doesn't have git remote pointing to the |
@polac24 Updated the git remote config and point to SSH mode, still consumer mode is failing with no artifact available, git remote -v XCRC] XCRemoteCache disabled - no artifacts available |
@polac24 what is the recommeded git checkout we need to do in github actions, what will be fetch depth in this case, Once I merged my code in CI, it starts failing in
|
Your problem is probably caused by the Some comments there suggest trying something like but I didn't try it (note that
I didn't work with checkout versions v2+ and AFAIK, |
Also, probably you need to set Depending on the type of your PR merging strategy (rebase/merge/rebase+squash) you have to pick a right value. I suggest setting |
okay, let me try with fetch-depth:10, one more thing, In case of |
For the |
@polac24 We generated artifacts from development branch, and generated producer artifacts, it generate cache artifacts and upload to S3, when I run build in When I cut a new branch from development -> test-XCRemoteCache, and run the builds in consumer mode from this branch it failed with this error, only difference in this branch and other branch is INFO 2024-02-05T11:42:29.758+0000 error: Prepare failed with error: Finding a common commit failed. Please try to call |
That looks like |
@polac24 On CI builds for AppStores we are checking out branch and clone via this way to reduce checkout & clone time |
that is a reason: XCRemoteCache needs having |
@polac24 The new branch is already cut from development, so it's already in sync with development, can we handle this issue as cache miss, instead of build failure, after enabling this suddenly all the builds which triggers from CI using feature branches and release-* branches starts failing. |
@polac24 I understand, there is a primary branch in Podfile, .rcinfo file, which is pointing to Can it be handle by using flag at your end - |
We don't have such official flag (open for contributions), but there is a potential workaround. Potential workaround:
|
Another workaround: set |
@polac24 I already tried, by overriding a primary_branch if the build trigger is not from a development branch, setting primary_branch in Podfile & .rcinfo that worked now. |
"best value" might be 10 if you have merge commits on a "main" branch. If you commit with rebase without squashing, you may increase it ~50 (depending on the traffic of merged PRs). |
@polac24 |
regarding |
@polac24 We are using cocapods integration for XCRemote cache integration, in producer mode it works fine, but in consumer mode it is failing, can you please help us to resolve this issue.
bundle exec pod install is failing with below error
error: Prepare failed with error: Finding a common commit failed. Please try to call
git fetch origin. [Error: statusError("status 1: ", 1)]
[- ] CocoaPods cocoapods-xcremotecache plugin
[ ] Automatic integration using
xcprepare integrate ...
[ ] Manual integration
[ ] Carthage
Expected/desired behavior
Minimal reproduction of the problem with instructions
Producer Logs
Consumer Logs
Pods/Carthage file
Environment
gem list cocoapods-xcremotecache
>Post build stats
Others
The text was updated successfully, but these errors were encountered: