Closed gmasgras closed 3 years ago
@hsanjuan @olizilla
The naming is confusing here... I understand --local
in this command to mean "do an ipfs add on host that you are targeting with this ipfs-cluster-ctl command, rather than "local to the current machine".
Regardless I think this fix of removing the flag will have the desired effect of making the command wait until the cid is fully repliated on cluster before it returns. It should be slower but less likely to appear to succeed then not.
I will defer to @hsanjuan on this one tho.
No, please keep. I don't think this fixes the issue we have seen, might make things worse.
No, please keep. I don't think this fixes the issue we have seen, might make things worse.
Why won't this fix the issue ? My understanding is that the cluster doesn't get a chance to fetch all of the content from the local ipfs node running in CI because it gets stopped right after adding content locally. Without the --local
flag, content would be added straight to the cluster, which should fix this issue
It may not fix the issue in cluster, but we do really really want this ipfs-dns-deploy script to fail or stall if cluster is stalled. Right now CI builds are succeeding and dnslinks are getting updated with cluster unable to provide the blocks. Better to fail in CI than in prod.
@hsanjuan my assumption here is that if we remove the --local
flag, then the ci script would stall and time out if cluster failed to pin. Is that not the case?
This should fix the CI issues where the local ipfs instance goes away before the collab cluster gets a chance to fetch the locally added content.