squakez opened a new issue #2742:
URL: https://github.com/apache/camel-k/issues/2742


   I've noticed this since a while, not sure if we're tracking somewhere else 
already. Basically there seems to be some error in all the PRs (ie, 
https://github.com/apache/camel-k/runs/4163440983?check_suite_focus=true) due 
to:
   ```
    --- FAIL: TestMetrics (100.50s)
       --- PASS: TestMetrics/Build_duration_metric (0.02s)
       --- PASS: TestMetrics/Build_recovery_attempts_metric (0.02s)
       --- FAIL: TestMetrics/reconciliation_duration_metric (0.04s)
   ```
   Having a look at the code, it seems it complains here: 
https://github.com/apache/camel-k/blob/main/e2e/common/operator_metrics_test.go#L256
   
   Because it cannot match with the following:
   ```
   TestMetrics/reconciliation_duration_metric
       operator_metrics_test.go:256: 
           Expected
               <string>: MetricFamily
           to match fields: {
           .Metric:
                Expected
                    <[]*io_prometheus_client.Metric | len:8, cap:8>: [
                        {
                            Label: [
                                {
                                    Name: "group",
                                    Value: "camel.apache.org",
                                    XXX_NoUnkeyedLiteral: {},
                                    XXX_unrecognized: nil,
                                    XXX_sizecache: 0,
                                },
                                {
                                    Name: "kind",
                                    Value: "Build",
                                    XXX_NoUnkeyedLiteral: {},
                                    XXX_unrecognized: nil,
                                    XXX_sizecache: 0,
                                },
                                {
                                    Name: "namespace",
                                    Value: 
"test-d047b7ac-9a61-409a-b312-449c4ef86bfa",
                                    XXX_NoUnkeyedLiteral: {},
                                    XXX_unrecognized: nil,
                                    XXX_sizecache: 0,
                                    ],
                                    missingElements: [
                                        <*io_prometheus_client.LabelPair | 
0xc00080e120>{
                                            Name: "version",
                                            Value: "v1",
                                            XXX_NoUnkeyedLiteral: {},
                                            XXX_unrecognized: nil,
                                            XXX_sizecache: 0,
                                        },
                                        <*io_prometheus_client.LabelPair | 
0xc00080e150>{
                                            Name: "kind",
                                            Value: "Integration",
                                            XXX_NoUnkeyedLiteral: {},
                                            XXX_unrecognized: nil,
                                            XXX_sizecache: 0,
                                        },
                                    ],
                                    extraElements: [
                                        <*io_prometheus_client.LabelPair | 
0xc00065f770>{
                                            Name: "kind",
                                            Value: "Kamelet",
                                            XXX_NoUnkeyedLiteral: {},
                                            XXX_unrecognized: nil,
                                            XXX_sizecache: 0,
                                        },
                                        <*io_prometheus_client.LabelPair | 
0xc00065f830>{
                                            Name: "version",
                                            Value: "v1alpha1",
                                            XXX_NoUnkeyedLiteral: {},
                                            XXX_unrecognized: nil,
                                            XXX_sizecache: 0,
                                        },
                                    ],
                                },
                                "Histogram": <*gstruct.PointerMatcher | 
0xc0007b9840>{
                                    Matcher: <*gstruct.FieldsMatcher | 
0xc00080e240>{
                                        Fields: {
                                       ...
                
                Gomega truncated this representation as it exceeds 
'format.MaxLength'.
                Consider having the object provide a custom 'GomegaStringer' 
representation
                or adjust the parameters in Gomega's 'format' package.
                
                Learn more here: https://onsi.github.io/gomega/#adjusting-output
                
           }
   ```
   fyi @tadayosi @astefanutti @nicolaferraro


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to