Git Product home page Git Product logo

Comments (8)

greg-dennis avatar greg-dennis commented on July 17, 2024

@mojiiba, could you offer repro instructions or be specific about what you mean by "error details"? There are unit tests that check it is preserving the content of the original error. Is there logic somewhere that is very sensitive to the specific format of the error message?

from ondatra.

mojiiba avatar mojiiba commented on July 17, 2024

yes, there are three test cases that checks the details of error messages. Here is one of them that will fail at line 150.
https://github.com/openconfig/gribigo/blob/d26b0f6d75e4e3939a5766717ae262fc57b03eff/compliance/flush.go#L124

To repro this, you need to run https://github.com/openconfig/featureprofiles/blob/main/feature/gribi/ate_tests/gribigo_compliance_test/gribigo_compliance_test.go

to give you more info the expected error message for this test is:


2022/12/01 22:55:21 http2: decoded hpack field header field ":status" = "200"
2022/12/01 22:55:21 http2: decoded hpack field header field "content-type" = "application/grpc"
2022/12/01 22:55:21 http2: decoded hpack field header field "grpc-status" = "3"
2022/12/01 22:55:21 http2: decoded hpack field header field "grpc-message" = "unspecified network instance"
2022/12/01 22:55:21 http2: decoded hpack field header field "grpc-status-details-bin" = "CAMSHHVuc3BlY2lmaWVkIG5ldHdvcmsgaW5zdGFuY2UaMgosdHlwZS5nb29nbGVhcGlzLmNvbS9ncmliaS5GbHVzaFJlc3BvbnNlRXJyb3ISAggG" 

but when this error message is annotated, the details is somehow dropped and causes failure for tests. When I disable the annotation or run the test without ondatra, the test can pass.

from ondatra.

greg-dennis avatar greg-dennis commented on July 17, 2024

While I'm figuring this out, I will proceed with removing this interceptor for the time being.

from ondatra.

mojiiba avatar mojiiba commented on July 17, 2024

thanks a lot for the prompt action!

from ondatra.

greg-dennis avatar greg-dennis commented on July 17, 2024

The Ondatra commit just now removes the interceptor entirely until I figure out what's going on. I still want to update featureprofiles to this commit.

from ondatra.

greg-dennis avatar greg-dennis commented on July 17, 2024

featureprofiles has been upgraded to the latest Ondatra commit with the partial rollback. I'm going to leave this open until I'm done my investigation of what's going on

from ondatra.

mojiiba avatar mojiiba commented on July 17, 2024

thanks a lot!

from ondatra.

greg-dennis avatar greg-dennis commented on July 17, 2024

The test error annotation feature has been re-enabled with a fix to ensure the grpc error details are not dropped.

from ondatra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.