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

feat: get gRPC descriptor via server reflection #210

Merged
merged 4 commits into from
Sep 6, 2023

Conversation

Ink-33
Copy link
Contributor

@Ink-33 Ink-33 commented Sep 6, 2023

Breaking Change

The format of gRPC api name has been changed form service.method to /package.service/method.
For detail, see sample/grpc-sample.yaml.

Now we can set spec.grpc.serverReflection: true to enable getting descriptor form gRPC server which has registered as a reflection server.

related #160

Signed-off-by: Ink33 <Ink33@smlk.org>
Copy link
Owner

@LinuxSuRen LinuxSuRen left a comment

Choose a reason for hiding this comment

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

I left a few comments. I don't block this PR. You can do it in this PR or not, it's your choice.

sample/grpc-sample.yaml Show resolved Hide resolved
pkg/runner/grpc.go Outdated Show resolved Hide resolved
pkg/runner/grpc.go Outdated Show resolved Hide resolved
@LinuxSuRen LinuxSuRen added enhancement New feature or request glcc Special for https://www.gitlink.org.cn/glcc backend labels Sep 6, 2023
@LinuxSuRen
Copy link
Owner

By the way, you can remove or comment the following line if you want to depress the non-related CI errors.

atest convert -p .github/testing/core.yaml --converter jmeter -t sample.jmx

Signed-off-by: Ink33 <Ink33@smlk.org>
Signed-off-by: Ink33 <Ink33@smlk.org>
@Ink-33 Ink-33 force-pushed the grpc_reflection branch 2 times, most recently from e7aa12c to fd91104 Compare September 6, 2023 15:08
but ci is still angry

Signed-off-by: Ink33 <Ink33@smlk.org>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.6% 0.6% Duplication

Copy link
Owner

@LinuxSuRen LinuxSuRen left a comment

Choose a reason for hiding this comment

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

Awesome work!

sudo atest service status

atest convert -p .github/testing/core.yaml --converter jmeter -t sample.jmx
- name: Report API Test
uses: harupy/comment-on-pr@c0522c44600040927a120b9309b531e3cb6f8d48
uses: thollander/actions-comment-pull-request@v2
Copy link
Owner

Choose a reason for hiding this comment

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

This is better and maintained well.

@LinuxSuRen LinuxSuRen merged commit acc8b26 into LinuxSuRen:master Sep 6, 2023
LinuxSuRen pushed a commit that referenced this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request glcc Special for https://www.gitlink.org.cn/glcc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants