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

trickstercache / trickster / 28347795955
89%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 04:11AM UTC
Jobs 2
Files 310
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

29 Jun 2026 04:03AM UTC coverage: 88.638% (-0.03%) from 88.666%
28347795955

push

github

web-flow
fix: [alb] expose localresponse via Handlers() so paths: overrides apply (#1029)

The ALB client's Handlers() lookup previously returned only the ALB
mechanism handler, so any `paths:` override in the YAML that named a
generic handler (e.g. `handler: localresponse`) was silently dropped by
RegisterPathRoutes — `handlers[p.HandlerName]` returned nil, leaving
p.Handler unset and skipping route registration.

Operators that want to short-circuit non-mergeable endpoints (such as
/api/v1/query_exemplars or /api/v1/metadata) before they enter a TSM
fanout — where nil MergeFunc on every member surfaces as a client 502
via HandleBadGateway — now have a working escape hatch:

    backends:
      alb:
        provider: alb
        alb:
          mechanism: tsm
          pool: [...]
        paths:
          - path: /api/v1/query_exemplars
            handler: localresponse
            match_type: exact
            methods: [GET, POST]
            response_code: 200
            response_body: '{"status":"success","data":[]}'
            response_headers:
              Content-Type: application/json

The patch is purely additive: providers.ALB stays mapped to the existing
mechanism handler, so all existing route registration and tests
(TestNewClient, TestHandlers, etc.) continue to behave identically. The
local handler package is already imported by reverseproxy and
reverseproxycache for the same purpose.

(cherry picked from commit dc7560ea0)

Signed-off-by: thinker0 <thinker0@gmail.com>

4 of 4 new or added lines in 1 file covered. (100.0%)

7 existing lines in 1 file now uncovered.

21017 of 23711 relevant lines covered (88.64%)

1.54 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
94.33
-3.61% pkg/backends/alb/mech/fanout/fanout.go
Jobs
ID Job ID Ran Files Coverage
1 unit-Go-1.26 - 28347795955.1 29 Jun 2026 04:11AM UTC 306
83.67
GitHub Action Run
2 integration - 28347795955.2 29 Jun 2026 04:13AM UTC 303
52.88
GitHub Action Run
Source Files on build 28347795955
  • Tree
  • List 310
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b0cd29ce on github
  • Prev Build on main (#28347621312)
  • Next Build on main (#28371936761)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc