﻿# Loki repairs a Helm canary test broken by a Prometheus query signature change

The canary call now handles the four-value Query signature, restoring compilation of the tagged Helm test without claiming that every deployment passes it.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-ops-loki-helm-canary-query-signature/
Language: en

Loki 3.7.10 fixes compilation of its helm_test-tagged canary package after prometheus/client_golang widened Query from three return values to four. The additional Infos result is explicitly discarded at this call site. This is a concrete API adaptation, not a generic dependency-bump article: the operational consequence was a broken validation path that ordinary production builds could fail to exercise.

## Build tags can hide a validation failure

PR 25832 identifies production/helm/loki/src/helm-test/canary_test.go as the affected call site. A normal binary build does not establish that a package behind helm_test compiles. A proposed upgrade qualification invokes the actual tagged test build used by the Helm validation workflow. This makes the evidence correspond to the path that was broken, instead of using an unrelated successful unit suite as proof that the canary integration remains runnable.

## Infos and Warnings are distinct API outputs

The Prometheus client API added Infos alongside Warnings. The patch takes the extra return value and discards it, restoring the caller’s arity. It does not claim a new policy for presenting informational query annotations to users. Reviews should distinguish handling a signature from consuming every diagnostic semantically. A compiling canary can still choose not to expose Infos, so acceptance criteria must not invent annotation coverage that this one-line adaptation does not provide.

## Compilation is the first gate, not the final result

After restoring compilation, a live Helm canary exercise still needs a reachable Prometheus endpoint, appropriate data and the intended query result. The release fixes the inability to build the test; it does not report that every chart deployment passes the canary. A proposed verification records the build result separately from execution and assertion outcomes. This separation prevents a later environment failure from being mistaken for recurrence of the return-value mismatch.

## Keep optional checks in dependency review

The PR traces the mismatch to an earlier client uplift and explains how it was found during backport work. That history supports a practical review question: which tagged or optional consumers exercise the changed API? A project can enumerate those paths without claiming a measured incident frequency. The release’s concrete contribution is restoring one operational test interface; broader dependency compatibility remains the sum of checks covering the application’s actual optional build and deployment workflows.

## Sources

- [grafana/loki v3.7.10 release notes](https://github.com/grafana/loki/releases/tag/v3.7.10)
- [fix(helm): Discard the Infos return value from the canary Prometheus query [release-3.7.x] by loki-gh-app[bot]](https://github.com/grafana/loki/pull/25832)

## Related reading

- [Prometheus query warnings: successful status can accompany incomplete results](/journal/field-observe-query-api-warnings-coverage/)
- [Prometheus relabel_configs vs metric_relabel_configs: where to filter data](/journal/prometheus-target-vs-metric-relabeling/)
