Closed aturan23 closed 2 years ago
you should mark your Artifacts,like that.
xcremotecache/xcprepare mark --configuration Debug --platform iphonesimulator
you should mark your Artifacts,like that.
xcremotecache/xcprepare mark --configuration Debug --platform iphonesimulator
if your source code not in master ,you will add primary_branch: "XXXXX"
in your .rcinfo
, otherwise it will find last commit in master branch
you should mark your Artifacts,like that.
xcremotecache/xcprepare mark --configuration Debug --platform iphonesimulator
I tried automatically integrate. I think this command executes automatically
if your source code not in master ,you will add
primary_branch: "XXXXX"
in your.rcinfo
, otherwise it will find last commit in master branch
I wrote primary branch on .rcinfo
It's like my mistake. Now all works correctly. Steps:
XCRemoteCache
folder into project. create .rcinfo
producer
commandgit reset --hard
1
& 2
step.consumer
command.On executing consumer
docker prints:
2022/02/17 11:36:03 [error] 33#33: *9 open() "/tmp/cache/cache/nginx-health" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "HEAD /cache/nginx-health HTTP/1.1", host: "localhost:8080"
172.17.0.1 - - [17/Feb/2022:11:36:03 +0000] "HEAD /cache/nginx-health HTTP/1.1" 404 0 "-" "xcprepare (unknown version) CFNetwork/1327.0.4 Darwin/21.2.0"
2022/02/17 11:36:03 [error] 33#33: *9 open() "/tmp/cache/cache/nginx-health" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "HEAD /cache/nginx-health HTTP/1.1", host: "localhost:8080"
172.17.0.1 - - [17/Feb/2022:11:36:03 +0000] "HEAD /cache/nginx-health HTTP/1.1" 404 0 "-" "xcprepare (unknown version) CFNetwork/1327.0.4 Darwin/21.2.0"
2022/02/17 11:36:03 [error] 33#33: *9 open() "/tmp/cache/cache/nginx-health" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "HEAD /cache/nginx-health HTTP/1.1", host: "localhost:8080"
172.17.0.1 - - [17/Feb/2022:11:36:03 +0000] "HEAD /cache/nginx-health HTTP/1.1" 404 0 "-" "xcprepare (unknown version) CFNetwork/1327.0.4 Darwin/21.2.0"
172.17.0.1 - - [17/Feb/2022:11:36:04 +0000] "HEAD /cache/marker/87531d87edf3be5a43cf9aaea0615812ff3b9298-Debug-iphonesimulator-13C100-5 HTTP/1.1" 200 0 "-" "xcprepare (unknown version) CFNetwork/1327.0.4 Darwin/21.2.0"
What it means?
After some experiments get maximum -35% build time. Is it ok?)
I noticed one more thing. After a successful build, if you do Clean Build & Remove Derived Data it again, then I don't see any download logs in the docker. It turns out that the consumer download happens only for the first time?
HEAD /cache/nginx-health HTTP/1.1" 404
-> XCRemoteCache makes some probe requests to find which remote cache to use. It is not perfect and makes that step even if you have a single cache server. [PR welcome]Please review your consumer logs and double-check your meta json files don't contain absolute paths.
Thanks!
My integration setup Automatic integration using
xcprepare integrate ...
.rcinfo
:producer
:consumer
:Minimal reproduction of the problem with instructions
xcremotecache
.rcinfo
producer
commandproducer
command made. Like*.xcworkspace
changesconsumer
command and geterror: XCRemoteCache cannot be initialized with a consumer mode. Error: noArtifactsToReuse
Producer Logs
Consumer Logs
Environment
backend-example