Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gRPC status code outcome mapping, implement Gherkin outcome spec #902

Merged
merged 4 commits into from
Feb 17, 2021

Conversation

axw
Copy link
Member

@axw axw commented Feb 17, 2021

Fix the mapping of gRPC status codes to outcomes. In particular, the "Unknown" status should be considered a failure as it describes an unknown error -- not that the status is unknown. All status codes other than OK are failures from the client's perspective.

Also, implement the Gherkin outcome spec.

Supersedes #898

@elastic-apm-tech elastic-apm-tech added this to In Progress in APM-Agents (OLD) Feb 17, 2021
@apmmachine
Copy link
Collaborator

apmmachine commented Feb 17, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #902 updated

  • Start Time: 2021-02-17T08:53:05.885+0000

  • Duration: 29 min 55 sec

  • Commit: 4df9336

Test stats 🧪

Test Results
Failed 0
Passed 9935
Skipped 266
Total 10201

Trends 🧪

Image of Build Times

Image of Tests

axw and others added 2 commits February 17, 2021 16:39
"Unknown" status should be considered a failure.

All status codes other than OK are failures from
the client's perspective.
@axw axw marked this pull request as ready for review February 17, 2021 09:20
@axw axw requested a review from a team February 17, 2021 09:20
Copy link
Contributor

@simitt simitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@axw axw merged commit 44b1555 into elastic:master Feb 17, 2021
APM-Agents (OLD) automation moved this from In Progress to Done Feb 17, 2021
@axw axw deleted the apmgodog-http-grpc branch February 17, 2021 09:50
stuartnelson3 pushed a commit that referenced this pull request Jul 30, 2021
…902)

* module/apmgrpc: fix status code to outcome mapping

"Unknown" status should be considered a failure.

All status codes other than OK are failures from
the client's perspective.

* test: synchronizing gherkin specs

* internal/apmgodog: implement outcome spec

* Add changelog entry

Co-authored-by: apmmachine <infra-root-apmmachine@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants