Skip to content

cherry-pick #9346 to v1.82.x - #9368

Merged
eshitachandwani merged 1 commit into
grpc:v1.82.xfrom
eshitachandwani:cpvstatsfix1.82
Aug 25, 2026
Merged

cherry-pick #9346 to v1.82.x#9368
eshitachandwani merged 1 commit into
grpc:v1.82.xfrom
eshitachandwani:cpvstatsfix1.82

Conversation

@eshitachandwani

Copy link
Copy Markdown
Member

Original PR : #9346

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
@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.46%. Comparing base (4b63829) to head (65832b1).

Files with missing lines Patch % Lines
...tats/opentelemetry/internal/testutils/testutils.go 72.72% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           v1.82.x    #9368      +/-   ##
===========================================
+ Coverage    83.20%   87.46%   +4.26%     
===========================================
  Files          418      418              
  Lines        33764    28972    -4792     
===========================================
- Hits         28094    25341    -2753     
+ Misses        4253     3630     -623     
+ Partials      1417        1    -1416     
Files with missing lines Coverage Δ
...tats/opentelemetry/internal/testutils/testutils.go 97.03% <72.72%> (+1.65%) ⬆️

... and 417 files with indirect coverage changes

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

@eshitachandwani
eshitachandwani merged commit 4bc2382 into grpc:v1.82.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