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

chore: improve extension server unit tests #3503

Merged
merged 3 commits into from
May 30, 2024

Conversation

liorokman
Copy link
Contributor

@liorokman liorokman commented May 30, 2024

When running unit tests that touch the Extension Server, go through the gRPC code and the regular extension manager
instead of creating a testing-only variant.

This PR enables using an in-memory gRPC server implementation as the extension server, instead of bypassing the manager code during tests.

This improves coverage and removes testing code from the built binary.

liorokman added 2 commits May 30, 2024 11:31
gRPC code and the regular extension manager instead of creating a
testing-only variant.

Signed-off-by: Lior Okman <[email protected]>
Signed-off-by: Lior Okman <[email protected]>
@liorokman liorokman requested a review from a team as a code owner May 30, 2024 08:48
Copy link

codecov bot commented May 30, 2024

Codecov Report

Attention: Patch coverage is 82.60870% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 67.82%. Comparing base (6f30397) to head (bc69794).

Files Patch % Lines
internal/extension/registry/extension_manager.go 82.60% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3503      +/-   ##
==========================================
+ Coverage   67.53%   67.82%   +0.28%     
==========================================
  Files         168      166       -2     
  Lines       20154    20039     -115     
==========================================
- Hits        13612    13592      -20     
+ Misses       5558     5459      -99     
- Partials      984      988       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@liorokman
Copy link
Contributor Author

/retest

Copy link
Contributor

@guydc guydc left a comment

Choose a reason for hiding this comment

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

LGTM

@liorokman
Copy link
Contributor Author

/retest

@guydc guydc merged commit 76c08e6 into envoyproxy:main May 30, 2024
23 checks passed
@liorokman liorokman deleted the ext-server-unit-tests branch May 30, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants