• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

trickstercache / trickster / 40052759381
94%

Build:
DEFAULT BRANCH: main
Ran 24 Oct 2026 02:23AM UTC
Jobs 2
Files 961
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Oct 2026 02:06AM UTC coverage: 93.71% (-0.01%) from 93.721%
40052759381

push

github

web-flow
fix(alb,tsm): skip timeseries unmarshaling for non-2xx gather responses (#1212)

* fix(alb,tsm): skip timeseries unmarshaling for non-2xx gather responses

When an ALB TSM pool member returns a non-2xx status code (e.g., 400 Bad Request
with error JSON), TSM was attempting to unmarshal the error payload as a timeseries
dataset via prepareGatherContribution. This caused spurious decode failure warnings
and prevented clean error propagation.

This change guards prepareGatherContribution with a 2xx check in both
serveStandard and collectPlanResult, ensuring non-2xx responses are treated
as failed member contributions without attempting timeseries unmarshaling.

Signed-off-by: thinker0 <thinker0@gmail.com>
Co-authored-by: Gemini <noreply@google.com>

* fix(alb,tsm): propagate error winner body and status when all fanouts fail

Address PR #1212 review feedback:
- Propagate error status code, headers, and body in both serveStandard and
  serveMultiVariantPlan when all fanouts/variants fail (no 2xx members).
- Gate rawBody and rawHeader clones behind !is2xx check in serveStandard
  and collectPlanResult to avoid allocating memory for healthy responses.
- Attach spy TSUnmarshaler directly to child fanout resources in unit
  tests to reliably verify that timeseries decoding is skipped.
- Add regression tests for mixed error responses (400 vs 502/504) and
  all-variant failure in serveMultiVariantPlan.

Signed-off-by: thinker0 <thinker0@gmail.com>
Co-authored-by: Gemini <noreply@google.com>

---------

Signed-off-by: thinker0 <thinker0@gmail.com>
Co-authored-by: Gemini <noreply@google.com>

109 of 134 new or added lines in 3 files covered. (81.34%)

30 existing lines in 9 files now uncovered.

99097 of 105749 relevant lines covered (93.71%)

15491.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
80.05
-0.3% pkg/backends/alb/mech/tsm/merge_plan.go
8
90.4
-0.12% pkg/backends/alb/mech/tsm/time_series_merge.go
5
88.2
-1.47% pkg/backends/alb/mech/tsm/replica_groups.go

Coverage Regressions

Lines Coverage ∆ File
6
87.38
-0.38% pkg/moq/relay/subscriber.go
6
92.53
-0.79% pkg/moq/session/session.go
4
81.27
-0.67% pkg/backends/graphite/resolution/learn.go
3
89.94
-0.97% pkg/moq/relay/publish.go
3
89.47
0.44% pkg/moq/session/data.go
2
98.61
-1.39% pkg/cache/index/shards.go
2
93.26
-0.47% pkg/moq/session/request.go
2
93.85
0.0% pkg/proxy/pgwire/relay.go
2
90.65
-1.87% pkg/proxy/pgwire/splitter.go
Jobs
ID Job ID Ran Files Coverage
1 integration - 40052759381.1 24 Oct 2026 02:24AM UTC 941
44.66
GitHub Action Run
2 unit-Go-1.27 - 40052759381.2 24 Oct 2026 02:23AM UTC 961
92.84
GitHub Action Run
Source Files on build 40052759381
  • Tree
  • List 961
  • Changed 39
  • Source Changed 0
  • Coverage Changed 39
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d2595f22 on github
  • Prev Build on main (#39794211675)
  • Next Build on main (#40249168523)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc