Skip to content

CMake grpc upgrade to 1.44.0 #9488

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

Merged
merged 21 commits into from
May 2, 2022
Merged

CMake grpc upgrade to 1.44.0 #9488

merged 21 commits into from
May 2, 2022

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Mar 21, 2022

The long-overdue upgrade of grpc to 1.44.0.

The newer version caused link issues on Mac for ASAN build, I have temporarily disabled that, and added ASAN build on Unbuntu, which seems to do more checks than on Mac. It has discovered a memory leak issue from a recent PR. Will fix the leak in a following PR.

@wu-hui wu-hui changed the base branch from master to wuandy/GrpcSpmPod144 March 21, 2022 14:41
@wu-hui wu-hui force-pushed the wuandy/GrpcCmake144 branch from 4c86c03 to 129cafa Compare March 21, 2022 16:47
@google-oss-bot
Copy link

google-oss-bot commented Mar 21, 2022

@google-oss-bot
Copy link

google-oss-bot commented Mar 21, 2022

Coverage Report 1

Affected Products

  • FirebaseFirestore-iOS-FirebaseFirestore.framework

    Overall coverage changed from ? (0fe05a8) to 87.60% (b7ff2bc) by ?.

    208 individual files with coverage change

    FilenameBase (0fe05a8)Merge (b7ff2bc)Diff
    any.nanopb.cc?0.00%?
    array_contains_any_filter.cc?100.00%?
    array_contains_filter.cc?100.00%?
    async_queue.cc?100.00%?
    auth_token.cc?100.00%?
    autoid.cc?100.00%?
    background_queue.cc?100.00%?
    bits.cc?100.00%?
    bound.cc?84.29%?
    bundle.nanopb.cc?0.00%?
    bundle_loader.cc?95.65%?
    bundle_reader.cc?90.29%?
    bundle_serializer.cc?90.59%?
    byte_stream_apple.mm?86.36%?
    byte_stream_cpp.cc?83.33%?
    byte_string.cc?80.30%?
    collection_reference.cc?100.00%?
    common.nanopb.cc?33.33%?
    comparison.cc?100.00%?
    connectivity_monitor.cc?100.00%?
    connectivity_monitor_apple.mm?51.92%?
    converters.mm?100.00%?
    database_id.cc?65.38%?
    database_info.cc?100.00%?
    datastore.cc?96.72%?
    delete_mutation.cc?80.00%?
    direction.cc?76.92%?
    document.cc?0.00%?
    document.nanopb.cc?94.78%?
    document_change.cc?62.50%?
    document_key.cc?93.06%?
    document_key_reference.cc?65.00%?
    document_reference.cc?100.00%?
    document_set.cc?87.30%?
    document_snapshot.cc?100.00%?
    empty.nanopb.cc?0.00%?
    error_apple.mm?92.31%?
    event_manager.cc?98.08%?
    exception.cc?73.68%?
    exception_apple.mm?58.62%?
    executor_libdispatch.mm?97.54%?
    executor_std.cc?97.71%?
    exponential_backoff.cc?100.00%?
    field_filter.cc?88.39%?
    field_index.cc?87.80%?
    field_mask.cc?100.00%?
    field_path.cc?98.16%?
    field_transform.cc?41.67%?
    filesystem_apple.mm?77.78%?
    filesystem_common.cc?81.67%?
    filesystem_posix.cc?81.82%?
    filter.cc?50.00%?
    FIRCollectionReference.mm?95.08%?
    FIRDocumentChange.mm?73.68%?
    FIRDocumentReference.mm?97.10%?
    FIRDocumentSnapshot.mm?96.84%?
    firebase_app_check_credentials_provider_apple.mm?92.93%?
    firebase_auth_credentials_provider_apple.mm?75.91%?
    firebase_metadata_provider_apple.mm?86.96%?
    firebase_metadata_provider_noop.cc?100.00%?
    firestore.cc?95.00%?
    firestore.nanopb.cc?37.12%?
    firestore_client.cc?98.57%?
    firestore_index_value_writer.cc?89.17%?
    FIRFieldPath.mm?90.24%?
    FIRFieldValue.mm?89.41%?
    FIRFilter.mm?100.00%?
    FIRFirestore.mm?90.69%?
    FIRFirestoreSettings.mm?84.21%?
    FIRFirestoreSource.mm?72.73%?
    FIRGeoPoint.mm?82.22%?
    FIRListenerRegistration.mm?100.00%?
    FIRLoadBundleTask.mm?80.70%?
    FIRQuery.mm?87.53%?
    FIRQuerySnapshot.mm?95.45%?
    FIRSnapshotMetadata.mm?100.00%?
    FIRTimestamp.m?79.35%?
    FIRTransaction.mm?96.85%?
    FIRWriteBatch.mm?100.00%?
    FSTFirestoreComponent.mm?97.83%?
    FSTUserDataReader.mm?94.36%?
    FSTUserDataWriter.mm?82.35%?
    geo_point.cc?65.00%?
    grpc_completion.cc?100.00%?
    grpc_connection.cc?77.08%?
    grpc_nanopb.cc?94.87%?
    grpc_root_certificate_finder_generated.cc?100.00%?
    grpc_stream.cc?99.01%?
    grpc_streaming_reader.cc?100.00%?
    grpc_unary_call.cc?100.00%?
    grpc_util.cc?100.00%?
    hard_assert.cc?100.00%?
    http.nanopb.cc?0.00%?
    index.nanopb.cc?0.00%?
    index_entry.cc?54.29%?
    in_filter.cc?100.00%?
    key_field_filter.cc?100.00%?
    key_field_in_filter.cc?100.00%?
    key_field_not_in_filter.cc?100.00%?
    latlng.nanopb.cc?76.92%?
    leveldb_bundle_cache.cc?76.00%?
    leveldb_document_overlay_cache.cc?97.17%?
    leveldb_index_manager.cc?94.05%?
    leveldb_key.cc?97.68%?
    leveldb_lru_reference_delegate.cc?94.31%?
    leveldb_migrations.cc?92.31%?
    leveldb_mutation_queue.cc?92.05%?
    leveldb_opener.cc?76.81%?
    leveldb_persistence.cc?88.89%?
    leveldb_remote_document_cache.cc?94.67%?
    leveldb_target_cache.cc?94.33%?
    leveldb_transaction.cc?98.11%?
    leveldb_util.cc?71.43%?
    load_bundle_task.cc?97.06%?
    local_documents_view.cc?100.00%?
    local_serializer.cc?90.25%?
    local_store.cc?100.00%?
    local_view_changes.cc?100.00%?
    log_apple.mm?93.33%?
    lru_garbage_collector.cc?91.34%?
    maybe_document.nanopb.cc?28.57%?
    memory_bundle_cache.cc?100.00%?
    memory_document_overlay_cache.cc?100.00%?
    memory_eager_reference_delegate.cc?100.00%?
    memory_index_manager.cc?42.11%?
    memory_lru_reference_delegate.cc?95.41%?
    memory_mutation_queue.cc?98.17%?
    memory_persistence.cc?95.65%?
    memory_remote_document_cache.cc?100.00%?
    memory_target_cache.cc?100.00%?
    message.cc?100.00%?
    mutable_document.cc?64.81%?
    mutation.cc?69.60%?
    mutation.nanopb.cc?74.19%?
    mutation_batch.cc?86.89%?
    mutation_batch_result.cc?52.17%?
    nanopb_util.cc?100.00%?
    not_in_filter.cc?100.00%?
    object_value.cc?100.00%?
    online_state_tracker.cc?100.00%?
    ordered_code.cc?94.15%?
    order_by.cc?50.00%?
    overlay.cc?100.00%?
    patch_mutation.cc?87.84%?
    path.cc?100.00%?
    precondition.cc?75.68%?
    pretty_printing.cc?83.33%?
    proto_sizer.cc?72.73%?
    query.cc?98.39%?
    query.nanopb.cc?82.24%?
    query_core.cc?95.65%?
    query_engine.cc?96.49%?
    query_listener.cc?100.00%?
    query_listener_registration.cc?100.00%?
    query_snapshot.cc?83.16%?
    reader.cc?100.00%?
    reference_set.cc?88.89%?
    remote_event.cc?96.38%?
    remote_objc_bridge.cc?90.23%?
    remote_store.cc?90.35%?
    resource.nanopb.cc?0.00%?
    resource_path.cc?100.00%?
    schedule.cc?100.00%?
    secure_random_arc4random.cc?100.00%?
    serializer.cc?87.22%?
    server_timestamp_util.cc?97.06%?
    settings.cc?0.00%?
    set_mutation.cc?89.13%?
    snapshots_in_sync_listener_registration.cc?100.00%?
    snapshot_metadata.cc?100.00%?
    snapshot_version.cc?83.33%?
    status.cc?73.05%?
    status.nanopb.cc?68.75%?
    statusor.cc?80.00%?
    status_apple.mm?96.61%?
    status_errno.cc?30.25%?
    stream.cc?98.44%?
    strerror.cc?100.00%?
    string_apple.cc?100.00%?
    string_format.cc?93.94%?
    string_util.cc?100.00%?
    struct.nanopb.cc?5.06%?
    sync_engine.cc?95.20%?
    target.cc?96.64%?
    target.nanopb.cc?45.95%?
    target_data.cc?40.63%?
    target_id_generator.cc?100.00%?
    target_index_matcher.cc?97.65%?
    task.cc?93.04%?
    timestamp.cc?94.00%?
    timestamp.nanopb.cc?100.00%?
    timestamp_internal.cc?53.33%?
    transaction.cc?89.17%?
    transaction_runner.cc?100.00%?
    transform_operation.cc?76.13%?
    user.cc?100.00%?
    user_data.cc?96.30%?
    value_util.cc?95.65%?
    verify_mutation.cc?12.50%?
    view.cc?97.56%?
    view_snapshot.cc?76.92%?
    watch_change.cc?83.33%?
    watch_stream.cc?90.70%?
    wrappers.nanopb.cc?8.33%?
    write.nanopb.cc?60.25%?
    writer.cc?96.97%?
    write_batch.cc?91.89%?
    write_stream.cc?90.14%?

  • FirebaseFirestore-iOS-FirebaseFirestoreSwift.framework

    Overall coverage changed from ? (0fe05a8) to 46.48% (b7ff2bc) by ?.

    21 individual files with coverage change

    FilenameBase (0fe05a8)Merge (b7ff2bc)Diff
    CodablePassThroughTypes.swift?100.00%?
    CollectionReference+AsyncAwait.swift?93.75%?
    CollectionReference+WriteEncodable.swift?100.00%?
    DocumentID.swift?80.00%?
    DocumentReference+Codable.swift?50.00%?
    DocumentReference+ReadDecodable.swift?0.00%?
    DocumentReference+WriteEncodable.swift?100.00%?
    DocumentSnapshot+ReadDecodable.swift?80.00%?
    ExplicitNull.swift?90.48%?
    FieldValue+Encodable.swift?100.00%?
    Firestore+AsyncAwait.swift?95.51%?
    FirestoreDecoder.swift?45.89%?
    FirestoreEncoder.swift?60.41%?
    FirestoreQuery.swift?0.00%?
    FirestoreQueryObservable.swift?0.00%?
    GeoPoint+Codable.swift?100.00%?
    QueryPredicate.swift?0.00%?
    ServerTimestamp.swift?96.97%?
    Timestamp+Codable.swift?100.00%?
    Transaction+WriteEncodable.swift?100.00%?
    WriteBatch+WriteEncodable.swift?100.00%?

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/vtE1C49Njj.html

@wu-hui wu-hui force-pushed the wuandy/GrpcCmake144 branch from 129cafa to 72779cb Compare March 23, 2022 00:10
Base automatically changed from wuandy/GrpcSpmPod144 to master March 25, 2022 14:48
@wu-hui wu-hui requested review from paulb777 and ehsannas May 2, 2022 10:49
@wu-hui wu-hui merged commit 126965b into master May 2, 2022
@wu-hui wu-hui deleted the wuandy/GrpcCmake144 branch May 2, 2022 19:52
dconeybe added a commit to firebase/firebase-cpp-sdk that referenced this pull request May 31, 2022
This fixes the following build error:

```
The following tests FAILED:
    1 - charclass_test (Not Run)
    2 - compile_test (Not Run)
    3 - filtered_re2_test (Not Run)
    4 - mimics_pcre_test (Not Run)
    ...
```

e.g. https://github.com/firebase/firebase-cpp-sdk/runs/6676610733

This is caused by the addition of re2 to the firebase-ios-sdk in firebase/firebase-ios-sdk#9488.

I'm not sure _why_ these tests can't be found; but they're superfluous anyways. So just disable them.
cynthiajoan pushed a commit to firebase/firebase-cpp-sdk that referenced this pull request Jun 1, 2022
* Update iOS dependencies - Tue May 31 2022

### iOS

- Firebase/Analytics → 9.1.0
- Firebase/Auth → 9.1.0
- Firebase/Core → 9.1.0
- Firebase/Crashlytics → 9.1.0
- Firebase/Database → 9.1.0
- Firebase/DynamicLinks → 9.1.0
- Firebase/Firestore → 9.1.0
- Firebase/Functions → 9.1.0
- Firebase/Installations → 9.1.0
- Firebase/Messaging → 9.1.0
- Firebase/RemoteConfig → 9.1.0
- Firebase/Storage → 9.1.0

> Created by [Update Android and iOS dependencies workflow](https://github.com/firebase/firebase-cpp-sdk/actions/runs/2416912624).

* CMakeLists.txt: set(RE2_BUILD_TESTING OFF CACHE BOOL "")

This fixes the following build error:

```
The following tests FAILED:
    1 - charclass_test (Not Run)
    2 - compile_test (Not Run)
    3 - filtered_re2_test (Not Run)
    4 - mimics_pcre_test (Not Run)
    ...
```

e.g. https://github.com/firebase/firebase-cpp-sdk/runs/6676610733

This is caused by the addition of re2 to the firebase-ios-sdk in firebase/firebase-ios-sdk#9488.

I'm not sure _why_ these tests can't be found; but they're superfluous anyways. So just disable them.

* value_util.cc: Fix MaxValue() to no longer use designated initialization.

This ports firebase/firebase-ios-sdk#9868 to the firebase-cpp-sdk repository by patching the firebase-ios-sdk when it is cloned.

Once the dependency on the firebase-ios-sdk is updated to a version that already includes firebase/firebase-ios-sdk#9868 then this commit should be reverted.

Co-authored-by: firebase-workflow-trigger-bot <[email protected]>
Co-authored-by: Denver Coneybeare <[email protected]>
@firebase firebase locked and limited conversation to collaborators Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants