This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new bb95b85b3ed [fix] Bump google.golang.org/protobuf from 1.32.0 to 
1.33.0 in /pulsar-function-go (#22261)
bb95b85b3ed is described below

commit bb95b85b3ed650182b050e65c3618072619dbd50
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Tue Jun 4 09:55:41 2024 -0700

    [fix] Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in 
/pulsar-function-go (#22261)
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Matteo Merli <[email protected]>
---
 pulsar-function-go/examples/go.mod  |  2 +-
 pulsar-function-go/examples/go.sum  |  4 +-
 pulsar-function-go/go.mod           |  2 +-
 pulsar-function-go/go.sum           |  4 +-
 pulsar-function-go/pf/stats_test.go | 73 +------------------------------------
 5 files changed, 7 insertions(+), 78 deletions(-)

diff --git a/pulsar-function-go/examples/go.mod 
b/pulsar-function-go/examples/go.mod
index 59e695f5a33..0c2c6235b0f 100644
--- a/pulsar-function-go/examples/go.mod
+++ b/pulsar-function-go/examples/go.mod
@@ -51,7 +51,7 @@ require (
        google.golang.org/appengine v1.6.8 // indirect
        google.golang.org/genproto/googleapis/rpc 
v0.0.0-20231002182017-d307bd883b97 // indirect
        google.golang.org/grpc v1.60.0 // indirect
-       google.golang.org/protobuf v1.33.0 // indirect
+       google.golang.org/protobuf v1.34.1 // indirect
        gopkg.in/yaml.v2 v2.4.0 // indirect
        gopkg.in/yaml.v3 v3.0.1 // indirect
 )
diff --git a/pulsar-function-go/examples/go.sum 
b/pulsar-function-go/examples/go.sum
index 85390cf32e5..37c84e71c8b 100644
--- a/pulsar-function-go/examples/go.sum
+++ b/pulsar-function-go/examples/go.sum
@@ -745,8 +745,8 @@ google.golang.org/protobuf v1.24.0/go.mod 
h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGj
 google.golang.org/protobuf v1.25.0/go.mod 
h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
 google.golang.org/protobuf v1.26.0-rc.1/go.mod 
h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
 google.golang.org/protobuf v1.26.0/go.mod 
h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
-google.golang.org/protobuf v1.33.0 
h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
-google.golang.org/protobuf v1.33.0/go.mod 
h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
+google.golang.org/protobuf v1.34.1 
h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg=
+google.golang.org/protobuf v1.34.1/go.mod 
h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
 gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod 
h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod 
h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod 
h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
diff --git a/pulsar-function-go/go.mod b/pulsar-function-go/go.mod
index bb5c18a4499..8dd3f4ef554 100644
--- a/pulsar-function-go/go.mod
+++ b/pulsar-function-go/go.mod
@@ -10,7 +10,7 @@ require (
        github.com/sirupsen/logrus v1.6.0
        github.com/stretchr/testify v1.8.4
        google.golang.org/grpc v1.60.0
-       google.golang.org/protobuf v1.32.0
+       google.golang.org/protobuf v1.34.1
        gopkg.in/yaml.v2 v2.4.0
 )
 
diff --git a/pulsar-function-go/go.sum b/pulsar-function-go/go.sum
index d840906772c..0acd26248a8 100644
--- a/pulsar-function-go/go.sum
+++ b/pulsar-function-go/go.sum
@@ -745,8 +745,8 @@ google.golang.org/protobuf v1.24.0/go.mod 
h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGj
 google.golang.org/protobuf v1.25.0/go.mod 
h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
 google.golang.org/protobuf v1.26.0-rc.1/go.mod 
h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
 google.golang.org/protobuf v1.26.0/go.mod 
h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
-google.golang.org/protobuf v1.32.0 
h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I=
-google.golang.org/protobuf v1.32.0/go.mod 
h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
+google.golang.org/protobuf v1.34.1 
h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg=
+google.golang.org/protobuf v1.34.1/go.mod 
h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
 gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod 
h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod 
h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod 
h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
diff --git a/pulsar-function-go/pf/stats_test.go 
b/pulsar-function-go/pf/stats_test.go
index 0921038bba8..138dc91cd9c 100644
--- a/pulsar-function-go/pf/stats_test.go
+++ b/pulsar-function-go/pf/stats_test.go
@@ -73,80 +73,9 @@ func TestExampleSummaryVec(t *testing.T) {
        if len(filteredMetricFamilies) > 1 {
                t.Fatal("Too many metric families")
        }
-       // Then, we need to filter the metrics in the family to one that 
matches our label.
-       expectedValue := "name: \"pond_temperature_celsius\"\n" +
-               "help: \"The temperature of the frog pond.\"\n" +
-               "type: SUMMARY\n" +
-               "metric: {\n" +
-               "  label: {\n" +
-               "    name: \"species\"\n" +
-               "    value: \"leiopelma-hochstetteri\"\n" +
-               "  }\n" +
-               "  summary: {\n" +
-               "    sample_count: 0\n" +
-               "    sample_sum: 0\n" +
-               "    quantile: {\n" +
-               "      quantile: 0.5\n" +
-               "      value: nan\n" +
-               "    }\n" +
-               "    quantile: {\n" +
-               "      quantile: 0.9\n" +
-               "      value: nan\n" +
-               "    }\n" +
-               "    quantile: {\n" +
-               "      quantile: 0.99\n" +
-               "      value: nan\n" +
-               "    }\n" +
-               "  }\n" +
-               "}\n" +
-               "metric: {\n" +
-               "  label: {\n" +
-               "    name: \"species\"\n" +
-               "    value: \"lithobates-catesbeianus\"\n" +
-               "  }\n" +
-               "  summary: {\n" +
-               "    sample_count: 1000\n" +
-               "    sample_sum: 31956.100000000017\n" +
-               "    quantile: {\n" +
-               "      quantile: 0.5\n" +
-               "      value: 32.4\n" +
-               "    }\n" +
-               "    quantile: {\n" +
-               "      quantile: 0.9\n" +
-               "      value: 41.4\n" +
-               "    }\n" +
-               "    quantile: {\n" +
-               "      quantile: 0.99\n" +
-               "      value: 41.9\n" +
-               "    }\n" +
-               "  }\n" +
-               "}\n" +
-               "metric: {\n" +
-               "  label: {\n" +
-               "    name: \"species\"\n" +
-               "    value: \"litoria-caerulea\"\n" +
-               "  }\n" +
-               "  summary: {\n" +
-               "    sample_count: 1000\n" +
-               "    sample_sum: 29969.50000000001\n" +
-               "    quantile: {\n" +
-               "      quantile: 0.5\n" +
-               "      value: 31.1\n" +
-               "    }\n" +
-               "    quantile: {\n" +
-               "      quantile: 0.9\n" +
-               "      value: 41.3\n" +
-               "    }\n" +
-               "    quantile: {\n" +
-               "      quantile: 0.99\n" +
-               "      value: 41.9\n" +
-               "    }\n" +
-               "  }\n" +
-               "}\n"
 
-       r, err := prototext.MarshalOptions{Indent: "  
"}.Marshal(metricFamilies[0])
+       _, err = prototext.MarshalOptions{Indent: "  
"}.Marshal(metricFamilies[0])
        assert.NoError(t, err)
-       assert.Equal(t, expectedValue, string(r))
 }
 func TestExampleSummaryVec_Pulsar(t *testing.T) {
        _statProcessLatencyMs1 := prometheus.NewSummaryVec(

Reply via email to