quickstart-ios
quickstart-ios copied to clipboard
Firestore Auto-update not happening
How is the auto-update configured? It looks like it's not working for Firestore:
@ulukaya can you take a look at this?
My script just finds "Podfile"s and updates them. https://github.com/GoogleCloudPlatform/repository-gardener/blob/master/use-latest-deps-ios.sh#L67 Somehow the latest Podfile update stopped it. I'll check what's going on.
I don't see any errors but looks like it got timed out. I updated manually for now, that should make the next iteration work. I'll investigate further if it gets stuck again.
https://github.com/firebase/quickstart-ios/commit/92f82d085c829271c8b2a812cd742e88c160bdae
Reopening since this is still a problem as can be seen from repo's main page's directories' last update messages.
The culprit seems to be gRPC-C++:
Installing gRPC-C++ (1.28.2)
[!] /bin/bash -c
set -e
sed -E -i '' 's;#include <openssl/(.*)>;#if COCOAPODS==1\
#include <openssl_grpc/\1>\
#else\
#include <openssl/\1>\
#endif;g' $(find src/core -type f \( -path '*.h' -or -path '*.cc' \) -print | xargs grep -H -c '#include <openssl_grpc/' | grep 0$ | cut -d':' -f1)
find src/core/ third_party/upb/ -type f \( -name '*.h' -or -name '*.c' -or -name '*.cc' \) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "upb/(.*)";#if COCOAPODS==1\
#include "third_party/upb/upb/\1"\
#else\
#include "upb/\1"\
#endif;g'
find src/core/ third_party/upb/ -type f -name '*.grpc_back' -print0 | xargs -0 rm
find src/core/ src/cpp/ -type f \( -name '*.h' -or -name '*.c' -or -name '*.cc' \) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(.*).upb.h";#if COCOAPODS==1\
#include "src/core/ext/upb-generated/\1.upb.h"\
#else\
#include "\1.upb.h"\
#endif;g'
find src/core/ src/cpp/ -type f -name '*.grpc_back' -print0 | xargs -0 rm
sed: can't read s;#include <openssl/(.*)>;#if COCOAPODS==1\
#include <openssl_grpc/\1>\
#else\
#include <openssl/\1>\
#endif;g: No such file or directory
Maybe related to the wrong sed on the machine? https://github.com/firebase/firebase-ios-sdk/issues/736#issuecomment-362338481
Based on this flag (--platform=ubuntu) in the build logs, the kokoro jobs are running on ubuntu. Moving them to macOS will probably fix the issue.
Moved jobs to macOS in cl/379353433, cl/379513834. Will re-test and see if Firestore works now.
Kokoro is even more broken now. Going to roll the CLs back while I figure out what in the script is causing failures.
This has been fixed in the gRPC podspec, and will be fixed in Firestore whenver they update their gRPC dependency.
Will be fixed in M114.