Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-grpcio-tools for openSUSE:Factory checked in at 2022-05-09 18:44:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-grpcio-tools (Old) and /work/SRC/openSUSE:Factory/.python-grpcio-tools.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-grpcio-tools" Mon May 9 18:44:18 2022 rev:15 rq:975554 version:1.46.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-grpcio-tools/python-grpcio-tools.changes 2022-05-02 16:25:59.900866814 +0200 +++ /work/SRC/openSUSE:Factory/.python-grpcio-tools.new.1538/python-grpcio-tools.changes 2022-05-09 18:44:47.696256136 +0200 @@ -1,0 +2,12 @@ +Fri May 6 17:41:44 UTC 2022 - Atri Bhattacharya <badshah...@gmail.com> + +- Update to version 1.46.0: + * Add Python GCF Distribtest [gh#grpc/grpc#29303]. + * Add Python Reflection Client [gh#grpc/grpc#29085]. + * Revert "Fix prefork handler register's default behavior" + [gh#grpc/grpc#29229]. + * Fix prefork handler register's default behavior + [gh#grpc/grpc#29103]. + * Fix fetching CXX variable in setup.py [gh#grpc/grpc#28873]. + +------------------------------------------------------------------- Old: ---- grpcio-tools-1.45.0.tar.gz New: ---- grpcio-tools-1.46.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-grpcio-tools.spec ++++++ --- /var/tmp/diff_new_pack.5zUUeM/_old 2022-05-09 18:44:48.216256746 +0200 +++ /var/tmp/diff_new_pack.5zUUeM/_new 2022-05-09 18:44:48.220256750 +0200 @@ -20,7 +20,7 @@ %define skip_python2 1 Name: python-grpcio-tools -Version: 1.45.0 +Version: 1.46.0 Release: 0 Summary: Protobuf code generator for gRPC License: Apache-2.0 ++++++ grpcio-tools-1.45.0.tar.gz -> grpcio-tools-1.46.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/PKG-INFO new/grpcio-tools-1.46.0/PKG-INFO --- old/grpcio-tools-1.45.0/PKG-INFO 2022-03-18 23:15:25.885300200 +0100 +++ new/grpcio-tools-1.46.0/PKG-INFO 2022-05-03 23:30:15.290791300 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: grpcio-tools -Version: 1.45.0 +Version: 1.46.0 Summary: Protobuf code generator for gRPC Home-page: https://grpc.io Author: The gRPC Authors diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/grpc_root/include/grpc/impl/codegen/grpc_types.h new/grpcio-tools-1.46.0/grpc_root/include/grpc/impl/codegen/grpc_types.h --- old/grpcio-tools-1.45.0/grpc_root/include/grpc/impl/codegen/grpc_types.h 2022-03-18 23:15:00.000000000 +0100 +++ new/grpcio-tools-1.46.0/grpc_root/include/grpc/impl/codegen/grpc_types.h 2022-05-03 23:29:59.000000000 +0200 @@ -219,7 +219,7 @@ "grpc.http2.min_ping_interval_without_data_ms" /** Channel arg to override the http2 :scheme header */ #define GRPC_ARG_HTTP2_SCHEME "grpc.http2_scheme" -/** How many pings can we send before needing to send a +/** How many pings can the client send before needing to send a data/header frame? (0 indicates that an infinite number of pings can be sent without sending a data frame or header frame) */ #define GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA \ @@ -241,8 +241,8 @@ not receive the ping ack, it will close the transport. Int valued, milliseconds. */ #define GRPC_ARG_KEEPALIVE_TIMEOUT_MS "grpc.keepalive_timeout_ms" -/** Is it permissible to send keepalive pings without any outstanding streams. - Int valued, 0(false)/1(true). */ +/** Is it permissible to send keepalive pings from the client without any + outstanding streams. Int valued, 0(false)/1(true). */ #define GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS \ "grpc.keepalive_permit_without_calls" /** Default authority to pass if none specified on call construction. A string. @@ -518,12 +518,8 @@ /** Initial metadata flags */ /** These flags are to be passed to the `grpc_op::flags` field */ -/** Signal that the call is idempotent */ -#define GRPC_INITIAL_METADATA_IDEMPOTENT_REQUEST (0x00000010u) /** Signal that the call should not return UNAVAILABLE before it has started */ #define GRPC_INITIAL_METADATA_WAIT_FOR_READY (0x00000020u) -/** Signal that the call is cacheable. GRPC is free to use GET verb */ -#define GRPC_INITIAL_METADATA_CACHEABLE_REQUEST (0x00000040u) /** Signal that GRPC_INITIAL_METADATA_WAIT_FOR_READY was explicitly set by the calling application. */ #define GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET (0x00000080u) @@ -531,12 +527,10 @@ #define GRPC_INITIAL_METADATA_CORKED (0x00000100u) /** Mask of all valid flags */ -#define GRPC_INITIAL_METADATA_USED_MASK \ - (GRPC_INITIAL_METADATA_IDEMPOTENT_REQUEST | \ - GRPC_INITIAL_METADATA_WAIT_FOR_READY | \ - GRPC_INITIAL_METADATA_CACHEABLE_REQUEST | \ - GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET | \ - GRPC_INITIAL_METADATA_CORKED | GRPC_WRITE_THROUGH) +#define GRPC_INITIAL_METADATA_USED_MASK \ + (GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET | \ + GRPC_INITIAL_METADATA_WAIT_FOR_READY | GRPC_INITIAL_METADATA_CORKED | \ + GRPC_WRITE_THROUGH) /** A single metadata element */ typedef struct grpc_metadata { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/grpc_root/include/grpcpp/ext/orca_service.h new/grpcio-tools-1.46.0/grpc_root/include/grpcpp/ext/orca_service.h --- old/grpcio-tools-1.45.0/grpc_root/include/grpcpp/ext/orca_service.h 1970-01-01 01:00:00.000000000 +0100 +++ new/grpcio-tools-1.46.0/grpc_root/include/grpcpp/ext/orca_service.h 2022-05-03 23:29:59.000000000 +0200 @@ -0,0 +1,83 @@ +// +// Copyright 2022 gRPC authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#ifndef GRPCPP_EXT_ORCA_SERVICE_H +#define GRPCPP_EXT_ORCA_SERVICE_H + +#include <map> +#include <string> + +#include "absl/time/time.h" +#include "absl/types/optional.h" + +#include <grpcpp/impl/codegen/server_callback.h> +#include <grpcpp/impl/codegen/service_type.h> +#include <grpcpp/impl/codegen/sync.h> +#include <grpcpp/server_builder.h> +#include <grpcpp/support/slice.h> + +namespace grpc { +namespace experimental { + +// RPC service implementation for supplying out-of-band backend +// utilization metrics to clients. +class OrcaService : public Service { + public: + struct Options { + // Minimum report interval. If a client requests an interval lower + // than this value, this value will be used instead. + absl::Duration min_report_duration = absl::Seconds(30); + + Options() = default; + Options& set_min_report_duration(absl::Duration duration) { + min_report_duration = duration; + return *this; + } + }; + + explicit OrcaService(Options options); + + // Sets or removes the CPU utilization value to be reported to clients. + void SetCpuUtilization(double cpu_utilization); + void DeleteCpuUtilization(); + + // Sets of removes the memory utilization value to be reported to clients. + void SetMemoryUtilization(double memory_utilization); + void DeleteMemoryUtilization(); + + // Sets or removed named utilization values to be reported to clients. + void SetNamedUtilization(std::string name, double utilization); + void DeleteNamedUtilization(const std::string& name); + void SetAllNamedUtilization(std::map<std::string, double> named_utilization); + + private: + class Reactor; + + Slice GetOrCreateSerializedResponse(); + + const absl::Duration min_report_duration_; + + grpc::internal::Mutex mu_; + double cpu_utilization_ ABSL_GUARDED_BY(&mu_) = -1; + double memory_utilization_ ABSL_GUARDED_BY(&mu_) = -1; + std::map<std::string, double> named_utilization_ ABSL_GUARDED_BY(&mu_); + absl::optional<Slice> response_slice_ ABSL_GUARDED_BY(&mu_); +}; + +} // namespace experimental +} // namespace grpc + +#endif // GRPCPP_EXT_ORCA_SERVICE_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/grpc_root/include/grpcpp/impl/codegen/client_context.h new/grpcio-tools-1.46.0/grpc_root/include/grpcpp/impl/codegen/client_context.h --- old/grpcio-tools-1.45.0/grpc_root/include/grpcpp/impl/codegen/client_context.h 2022-03-18 23:15:00.000000000 +0100 +++ new/grpcio-tools-1.46.0/grpc_root/include/grpcpp/impl/codegen/client_context.h 2022-05-03 23:29:59.000000000 +0200 @@ -276,18 +276,6 @@ deadline_ = deadline_tp.raw_time(); } - /// EXPERIMENTAL: Indicate that this request is idempotent. - /// By default, RPCs are assumed to <i>not</i> be idempotent. - /// - /// If true, the gRPC library assumes that it's safe to initiate - /// this RPC multiple times. - void set_idempotent(bool idempotent) { idempotent_ = idempotent; } - - /// EXPERIMENTAL: Set this request to be cacheable. - /// If set, grpc is free to use the HTTP GET verb for sending the request, - /// with the possibility of receiving a cached response. - void set_cacheable(bool cacheable) { cacheable_ = cacheable; } - /// Trigger wait-for-ready or not on this request. /// See https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md. /// If set, if an RPC is made when a channel's connectivity state is @@ -484,9 +472,7 @@ } uint32_t initial_metadata_flags() const { - return (idempotent_ ? GRPC_INITIAL_METADATA_IDEMPOTENT_REQUEST : 0) | - (wait_for_ready_ ? GRPC_INITIAL_METADATA_WAIT_FOR_READY : 0) | - (cacheable_ ? GRPC_INITIAL_METADATA_CACHEABLE_REQUEST : 0) | + return (wait_for_ready_ ? GRPC_INITIAL_METADATA_WAIT_FOR_READY : 0) | (wait_for_ready_explicitly_set_ ? GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET : 0) | @@ -504,8 +490,6 @@ bool initial_metadata_received_; bool wait_for_ready_; bool wait_for_ready_explicitly_set_; - bool idempotent_; - bool cacheable_; std::shared_ptr<grpc::Channel> channel_; grpc::internal::Mutex mu_; grpc_call* call_; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/grpc_root/include/grpcpp/impl/codegen/sync_stream.h new/grpcio-tools-1.46.0/grpc_root/include/grpcpp/impl/codegen/sync_stream.h --- old/grpcio-tools-1.45.0/grpc_root/include/grpcpp/impl/codegen/sync_stream.h 2022-03-18 23:15:00.000000000 +0100 +++ new/grpcio-tools-1.46.0/grpc_root/include/grpcpp/impl/codegen/sync_stream.h 2022-05-03 23:29:59.000000000 +0200 @@ -222,7 +222,12 @@ /// The \a ClientContext associated with this call is updated with /// possible metadata received from the server. grpc::Status Finish() override { - grpc::internal::CallOpSet<grpc::internal::CallOpClientRecvStatus> ops; + grpc::internal::CallOpSet<grpc::internal::CallOpRecvInitialMetadata, + grpc::internal::CallOpClientRecvStatus> + ops; + if (!context_->initial_metadata_received_) { + ops.RecvInitialMetadata(context_); + } grpc::Status status; ops.ClientRecvStatus(context_, &status); call_.PerformOps(&ops); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/grpc_root/src/compiler/csharp_generator.cc new/grpcio-tools-1.46.0/grpc_root/src/compiler/csharp_generator.cc --- old/grpcio-tools-1.45.0/grpc_root/src/compiler/csharp_generator.cc 2022-03-18 23:15:00.000000000 +0100 +++ new/grpcio-tools-1.46.0/grpc_root/src/compiler/csharp_generator.cc 2022-05-03 23:29:59.000000000 +0200 @@ -695,7 +695,7 @@ const ServiceDescriptor* service) { out->Print( "/// <summary>Register service method with a service " - "binder with or without implementation. Useful when customizing the " + "binder with or without implementation. Useful when customizing the " "service binding logic.\n" "/// Note: this method is part of an experimental API that can change or " "be " diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/grpc_version.py new/grpcio-tools-1.46.0/grpc_version.py --- old/grpcio-tools-1.45.0/grpc_version.py 2022-03-18 23:13:06.000000000 +0100 +++ new/grpcio-tools-1.46.0/grpc_version.py 2022-05-03 23:27:36.000000000 +0200 @@ -14,5 +14,5 @@ # AUTO-GENERATED FROM `$REPO_ROOT/templates/tools/distrib/python/grpcio_tools/grpc_version.py.template`!!! -VERSION = '1.45.0' +VERSION = '1.46.0' PROTOBUF_VERSION = '3.19.4' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/grpcio_tools.egg-info/PKG-INFO new/grpcio-tools-1.46.0/grpcio_tools.egg-info/PKG-INFO --- old/grpcio-tools-1.45.0/grpcio_tools.egg-info/PKG-INFO 2022-03-18 23:15:25.000000000 +0100 +++ new/grpcio-tools-1.46.0/grpcio_tools.egg-info/PKG-INFO 2022-05-03 23:30:14.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: grpcio-tools -Version: 1.45.0 +Version: 1.46.0 Summary: Protobuf code generator for gRPC Home-page: https://grpc.io Author: The gRPC Authors diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/grpcio_tools.egg-info/SOURCES.txt new/grpcio-tools-1.46.0/grpcio_tools.egg-info/SOURCES.txt --- old/grpcio-tools-1.45.0/grpcio_tools.egg-info/SOURCES.txt 2022-03-18 23:15:25.000000000 +0100 +++ new/grpcio-tools-1.46.0/grpcio_tools.egg-info/SOURCES.txt 2022-05-03 23:30:14.000000000 +0200 @@ -170,6 +170,7 @@ grpc_root/include/grpcpp/ext/admin_services.h grpc_root/include/grpcpp/ext/channelz_service_plugin.h grpc_root/include/grpcpp/ext/health_check_service_server_builder_option.h +grpc_root/include/grpcpp/ext/orca_service.h grpc_root/include/grpcpp/ext/proto_server_reflection_plugin.h grpc_root/include/grpcpp/ext/server_load_reporting.h grpc_root/include/grpcpp/generic/async_generic_service.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/grpcio_tools.egg-info/requires.txt new/grpcio-tools-1.46.0/grpcio_tools.egg-info/requires.txt --- old/grpcio-tools-1.45.0/grpcio_tools.egg-info/requires.txt 2022-03-18 23:15:25.000000000 +0100 +++ new/grpcio-tools-1.46.0/grpcio_tools.egg-info/requires.txt 2022-05-03 23:30:14.000000000 +0200 @@ -1,3 +1,3 @@ -protobuf<4.0dev,>=3.5.0.post1 -grpcio>=1.45.0 +protobuf<4.0dev,>=3.12.0 +grpcio>=1.46.0 setuptools diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpcio-tools-1.45.0/setup.py new/grpcio-tools-1.46.0/setup.py --- old/grpcio-tools-1.45.0/setup.py 2022-03-18 23:13:06.000000000 +0100 +++ new/grpcio-tools-1.46.0/setup.py 2022-05-03 23:27:36.000000000 +0200 @@ -290,7 +290,7 @@ packages=setuptools.find_packages('.'), python_requires='>=3.6', install_requires=[ - 'protobuf>=3.5.0.post1, < 4.0dev', + 'protobuf>=3.12.0, < 4.0dev', 'grpcio>={version}'.format(version=grpc_version.VERSION), 'setuptools', ],