Skip to content

cherry-pick #9346 to v1.83.x and update x/net dependency - #9369

Merged
eshitachandwani merged 2 commits into
grpc:v1.83.xfrom
eshitachandwani:cpvstatsfix1.83
Aug 25, 2026
Merged

eshitachandwani merged 2 commits into
grpc:v1.83.xfrom
eshitachandwani:cpvstatsfix1.83

Conversation

@eshitachandwani

@eshitachandwani eshitachandwani commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Original PR : #9346

Also updates the x/net dependency to ensure compatibility with go1.27 because of the issue reported here : golang/go#80482

RELEASE NOTES: None

… tests (grpc#9346)

Tests in `stats/opentelemetry` and `stats/opentelemetry/csm` asserted a
hardcoded compressed message size of `57` bytes for a 10,000-byte zero
payload with gzip compression.
In Go 1.27, standard library `compress/gzip` compression improvements
changed the output size of this payload from 57 bytes to 54 bytes,
causing metric and trace size assertions to fail when executed under
newer Go toolchains.

Added `GzipCompressedMessageSize` helper in to compute the expected
compressed byte length dynamically via `compress/gzip`. Updated metric
and trace assertions to use the same.

RELEASE NOTES: None
@eshitachandwani eshitachandwani changed the title cherry-pick #9346 to v1.83.x cherry-pick #9346 to v1.83.x and update x/net dependency Aug 25, 2026
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.50%. Comparing base (58f8fd9) to head (ec6bd86).

Files with missing lines Patch % Lines
...tats/opentelemetry/internal/testutils/testutils.go 72.72% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           v1.83.x    #9369      +/-   ##
===========================================
+ Coverage    83.32%   87.50%   +4.17%     
===========================================
  Files          421      421              
  Lines        34119    29278    -4841     
===========================================
- Hits         28431    25620    -2811     
+ Misses        4261     3658     -603     
+ Partials      1427        0    -1427     
Files with missing lines Coverage Δ
...tats/opentelemetry/internal/testutils/testutils.go 97.03% <72.72%> (+1.65%) ⬆️

... and 420 files with indirect coverage changes

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

@mbissa mbissa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@eshitachandwani
eshitachandwani merged commit a3e952d into grpc:v1.83.x Aug 25, 2026
16 checks passed
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