Skip to content

encoding: add a test for unsupported server codec#8819

Merged
easwars merged 1 commit into
grpc:masterfrom
easwars:unsupport_codec_on_server
Jan 12, 2026
Merged

encoding: add a test for unsupported server codec#8819
easwars merged 1 commit into
grpc:masterfrom
easwars:unsupport_codec_on_server

Conversation

@easwars

@easwars easwars commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Addresses #1824

This PR adds a test for the case where the client specifies a codec that is unsupported on the server. In a previous PR, we had added a warning for this scenario. In a subsequent PR, we will add an environment variable to gate the new behavior, where the server will not default to using the proto codec for unsupported codecs, but instead will fail the request.

RELEASE NOTES: None

@easwars easwars added this to the 1.79 Release milestone Jan 12, 2026
@easwars easwars requested a review from dfawley January 12, 2026 07:54
@codecov

codecov Bot commented Jan 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.26%. Comparing base (629ef39) to head (359a722).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8819      +/-   ##
==========================================
+ Coverage   83.22%   83.26%   +0.04%     
==========================================
  Files         417      417              
  Lines       32920    32920              
==========================================
+ Hits        27397    27412      +15     
+ Misses       4108     4096      -12     
+ Partials     1415     1412       -3     

see 20 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dfawley dfawley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The behavior change scares me a bit, but it's always good to have more tests, regardless.

@easwars easwars merged commit 6652b15 into grpc:master Jan 12, 2026
14 of 16 checks passed
@easwars easwars deleted the unsupport_codec_on_server branch January 12, 2026 21:55
atollena pushed a commit to zhiyanfoo/grpc-go that referenced this pull request Jan 15, 2026
Addresses grpc#1824

This PR adds a test for the case where the client specifies a codec that
is unsupported on the server. In a previous PR, we had added a warning
for this scenario. In a subsequent PR, we will add an environment
variable to gate the new behavior, where the server will not default to
using the `proto` codec for unsupported codecs, but instead will fail
the request.

RELEASE NOTES: None
mbissa pushed a commit to mbissa/grpc-go that referenced this pull request Feb 16, 2026
Addresses grpc#1824

This PR adds a test for the case where the client specifies a codec that
is unsupported on the server. In a previous PR, we had added a warning
for this scenario. In a subsequent PR, we will add an environment
variable to gate the new behavior, where the server will not default to
using the `proto` codec for unsupported codecs, but instead will fail
the request.

RELEASE NOTES: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants