conan-center-index icon indicating copy to clipboard operation
conan-center-index copied to clipboard

upgrade googleapis dependencies to protobuf-3.21.4

Open pgeler opened this issue 3 years ago • 4 comments

Specify library name and version:

continuation of #12079, separate PR for grpc-proto #12156, grpc #12157


  • [x] I've read the guidelines for contributing.
  • [x] I've followed the PEP8 style guides for Python code in the recipes.
  • [x] I've used the latest Conan client version.
  • [x] I've tried at least one configuration locally with the conan-center hook activated.

pgeler avatar Aug 11 '22 16:08 pgeler

curious if this dependency nightmare can be addressed differently 🤔 or maybe something can be addressed in conan2

pgeler avatar Aug 11 '22 16:08 pgeler

Failure in build 1 (245fcda91f2195768edc339d4fe412cc6dcf4e83):

  • googleapis/cci.20220711@: Didn't run or was cancelled before finishing

  • googleapis/cci.20210730@: Didn't run or was cancelled before finishing

  • googleapis/cci.20220531@: CI failed to create some packages (All logs)

    Logs for packageID 297b17673a28bdfd063ab44f20714bb6d10299e6:
    [settings]
    arch=x86_64
    build_type=Debug
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=12.0
    os=Macos
    [options]
    googleapis:shared=False
    
    [...]
    google/devtools/testing/v1/test_environment_discovery.proto:20:1: warning: Import google/devtools/testing/v1/test_execution.proto is unused.
    google/cloud/osconfig/agentendpoint/v1beta/tasks.proto:19:1: warning: Import google/api/annotations.proto is unused.
    google/cloud/osconfig/agentendpoint/v1beta/agentendpoint.proto:19:1: warning: Import google/api/annotations.proto is unused.
    google/cloud/osconfig/agentendpoint/v1beta/guest_policies.proto:19:1: warning: Import google/api/annotations.proto is unused.
    google/cloud/osconfig/agentendpoint/v1beta/patch_jobs.proto:19:1: warning: Import google/api/annotations.proto is unused.
    google/cloud/scheduler/v1/target.proto:21:1: warning: Import google/api/annotations.proto is unused.
    google/cloud/scheduler/v1/job.proto:25:1: warning: Import google/api/annotations.proto is unused.
    google/iam/v1/logging/audit_data.proto:19:1: warning: Import google/api/annotations.proto is unused.
    google/cloud/orgpolicy/v1/orgpolicy.proto:20:1: warning: Import google/protobuf/empty.proto is unused.
    google/cloud/orgpolicy/v1/orgpolicy.proto:22:1: warning: Import google/api/annotations.proto is unused.
    google/cloud/binaryauthorization/v1/resources.proto:22:1: warning: Import google/api/annotations.proto is unused.
    google/firestore/v1/query.proto:19:1: warning: Import google/api/field_behavior.proto is unused.
    In file included from /Users/jenkins/w/prod/BuildSingleReference@4/.conan/data/googleapis/cci.20220531/_/_/build/297b17673a28bdfd063ab44f20714bb6d10299e6/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.pb.cc:4:
    /Users/jenkins/w/prod/BuildSingleReference@4/.conan/data/googleapis/cci.20220531/_/_/build/297b17673a28bdfd063ab44f20714bb6d10299e6/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.pb.h:237:102: warning: 'AnnotateAssessmentRequest_Annotation_PASSWORD_INCORRECT' is deprecated [-Wdeprecated-declarations]
    constexpr AnnotateAssessmentRequest_Annotation AnnotateAssessmentRequest_Annotation_Annotation_MAX = AnnotateAssessmentRequest_Annotation_PASSWORD_INCORRECT;
                                                                                                         ^
    /Users/jenkins/w/prod/BuildSingleReference@4/.conan/data/googleapis/cci.20220531/_/_/build/297b17673a28bdfd063ab44f20714bb6d10299e6/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.pb.h:231:59: note: 'AnnotateAssessmentRequest_Annotation_PASSWORD_INCORRECT' has been explicitly marked deprecated here
      AnnotateAssessmentRequest_Annotation_PASSWORD_INCORRECT PROTOBUF_DEPRECATED_ENUM = 4,
                                                              ^
    /Users/jenkins/w/prod/BuildSingleReference@4/.conan/data/protobuf/3.21.4/_/_/package/e92550dc18a5a2ce7a3365d3de55aff6ab5fad6a/include/google/protobuf/port_def.inc:354:50: note: expanded from macro 'PROTOBUF_DEPRECATED_ENUM'
    # define PROTOBUF_DEPRECATED_ENUM __attribute__((deprecated))
                                                     ^
    1 warning generated.
    google/maps/roads/v1op/roads.proto:20:1: warning: Import google/api/annotations.proto is unused.
    google/api/service.proto:27:1: warning: Import google/api/label.proto is unused.
    google/api/service.proto:38:1: warning: Import google/protobuf/any.proto is unused.
    google/api/service.proto:34:1: warning: Import google/api/resource.proto is unused.
    google/cloud/apigateway/v1/apigateway.proto:23:1: warning: Import google/api/annotations.proto is unused.
    google/cloud/translate/v3/translation_service.proto:24:1: warning: Import google/protobuf/empty.proto is unused.
    google/cloud/translate/v3/translation_service.proto:26:1: warning: Import google/rpc/status.proto is unused.
    In file included from /Users/jenkins/w/prod/BuildSingleReference@4/.conan/data/googleapis/cci.20220531/_/_/build/297b17673a28bdfd063ab44f20714bb6d10299e6/google/storagetransfer/v1/transfer.pb.cc:4:
    In file included from /Users/jenkins/w/prod/BuildSingleReference@4/.conan/data/googleapis/cci.20220531/_/_/build/297b17673a28bdfd063ab44f20714bb6d10299e6/google/storagetransfer/v1/transfer.pb.h:39:
    /Users/jenkins/w/prod/BuildSingleReference@4/.conan/data/googleapis/cci.20220531/_/_/build/297b17673a28bdfd063ab44f20714bb6d10299e6/google/storagetransfer/v1/transfer_types.pb.h:3520:24: error: expected member name or ';' after declaration specifiers
      static constexpr GID GID_MAX =
      ~~~~~~~~~~~~~~~~~~~~ ^
    /Applications/conan/xcode/12/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/sys/syslimits.h:86:28: note: expanded from macro 'GID_MAX'
    #define GID_MAX            2147483647U  /* max value for a gid_t (2^31-2) */
                               ^
    1 error generated.
    make[2]: *** [CMakeFiles/google_storagetransfer_v1_storagetransfer_proto.dir/google/storagetransfer/v1/transfer.pb.cc.o] Error 1
    make[1]: *** [CMakeFiles/google_storagetransfer_v1_storagetransfer_proto.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    make: *** [all] Error 2
    googleapis/cci.20220531: ERROR: Unrecognized dep: monitoring_proto -- google/api/BUILD.bazel
    googleapis/cci.20220531: ERROR: Unrecognized dep: quota_proto -- google/api/BUILD.bazel
    googleapis/cci.20220531: ERROR: Package '297b17673a28bdfd063ab44f20714bb6d10299e6' build failed
    googleapis/cci.20220531: WARN: Build folder /Users/jenkins/w/prod/BuildSingleReference@4/.conan/data/googleapis/cci.20220531/_/_/build/297b17673a28bdfd063ab44f20714bb6d10299e6
    ERROR: googleapis/cci.20220531: Error in build() method, line 137
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build '/Users/jenkins/w/prod/BuildSingleReference@4/.conan/data/googleapis/cci.20220531/_/_/build/297b17673a28bdfd063ab44f20714bb6d10299e6' '--' '-j4'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Aug 11 '22 18:08 conan-center-bot

All green in build 2 (c3217e575c7f80e61b15266c85d86d9eca790bd0):

  • googleapis/cci.20210730@: All packages built successfully! (All logs)

    :small_orange_diamond: Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future. This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work. See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-12154/recipes/googleapis/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12154/recipes/googleapis/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-12154/recipes/googleapis/all/conanfile.py", line 6, in <module>
        from conans import CMake, tools
    ImportError: cannot import name 'CMake' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • googleapis/cci.20220711@: All packages built successfully! (All logs)

    :small_orange_diamond: Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future. This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work. See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-12154/recipes/googleapis/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12154/recipes/googleapis/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-12154/recipes/googleapis/all/conanfile.py", line 6, in <module>
        from conans import CMake, tools
    ImportError: cannot import name 'CMake' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • googleapis/cci.20220531@: All packages built successfully! (All logs)

    :small_orange_diamond: Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future. This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work. See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-12154/recipes/googleapis/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-12154/recipes/googleapis/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-12154/recipes/googleapis/all/conanfile.py", line 6, in <module>
        from conans import CMake, tools
    ImportError: cannot import name 'CMake' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

conan-center-bot avatar Aug 12 '22 05:08 conan-center-bot

I detected other pull requests that are modifying googleapis/all recipe:

  • #12196

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

ericLemanissierBot avatar Aug 13 '22 21:08 ericLemanissierBot