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

trickstercache / trickster / 27905134870
89%
main: 89%

Build:
Build:
LAST BUILD BRANCH: refactor-ur-runtime-state-1010
DEFAULT BRANCH: main
Ran 21 Jun 2026 01:05PM UTC
Jobs 2
Files 308
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

21 Jun 2026 12:59PM UTC coverage: 89.107% (-0.008%) from 89.115%
27905134870

Pull #1029

github

thinker0
fix: [alb] expose localresponse via Handlers() so paths: overrides apply

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>
Pull Request #1029: fix: [alb] expose localresponse via Handlers() so paths: overrides apply

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

2 existing lines in 1 file now uncovered.

20746 of 23282 relevant lines covered (89.11%)

1.55 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
98.36
-1.64% pkg/proxy/engines/progressive_collapse_forwarder.go
Jobs
ID Job ID Ran Files Coverage
1 unit-Go-1.26 - 27905134870.1 21 Jun 2026 01:05PM UTC 304
84.13
GitHub Action Run
2 integration - 27905134870.2 21 Jun 2026 01:08PM UTC 301
52.94
GitHub Action Run
Source Files on build 27905134870
  • Tree
  • List 308
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1029
  • PR Base - main (#27889223784)
  • 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