prometheus/promql/promqltest/testdata
Julien eaf47798af
promql: fix panic with @ modifier on empty ranges (#18020)
When using the @ modifier with a timestamp that has no data, several
PromQL range functions were panicking with "index out of range [0]
with length 0". This was introduced by #16797 which changed function
signatures to use concrete types instead of interfaces.

The panic occurred because functions were accessing array elements
(matrixVal[0], vectorVals[0][0]) without checking if the arrays were
empty first.

Fixes #18018

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-02-06 08:30:15 +00:00
..
aggregators.test Merge pull request #16585 from kapillamba4/fix/16393-strict 2025-07-10 15:45:38 +02:00
at_modifier.test promql: fix panic with @ modifier on empty ranges (#18020) 2026-02-06 08:30:15 +00:00
collision.test promqltest: migrate test files to new syntax using basic mode 2025-06-21 18:46:33 +05:30
duration_expression.test PromQL: duration expression: add range() 2025-12-10 16:27:18 +01:00
extended_vectors.test promql: fix smoothed interpolation across counter resets 2026-02-02 11:54:35 +01:00
fill-modifier.test Add a few fill modifier tests with keyword-like metric names 2026-01-16 20:11:38 +01:00
functions.test PromQL: Fix collision in label_join and label_replace with non-overlapping series. 2025-12-16 16:58:53 +01:00
histograms.test promql: fix histogram_fraction issue when lower falls within the first bucket (#17424) 2025-11-13 11:17:51 +01:00
info.test promql: info function: fix unit test for ignoring info metrics themselves (#17911) 2026-01-22 15:24:41 +01:00
limit.test promqltest: add/remove explicit annotation expectations to relevant tests 2025-06-21 18:46:50 +05:30
literals.test Added support for string literals and range results for instant queries in test scripting framework (#17055) 2025-09-16 12:28:19 +01:00
name_label_dropping.test promql: Fix collision error with delayed name removal for non-overlapping series 2025-12-12 14:50:29 +01:00
native_histograms.test promqltest: Fix test expectation for counter reset hint comparison 2025-11-30 18:07:51 +05:30
operators.test PromQL: Fix collision in unary negation with non-overlapping series. 2025-12-17 11:03:55 +01:00
range_queries.test Added support for string literals and range results for instant queries in test scripting framework (#17055) 2025-09-16 12:28:19 +01:00
selectors.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
staleness.test Merge branch 'main' into 3.0-main-sync-24-07-18 2024-07-18 15:56:40 +02:00
subquery.test promqltest: add/remove explicit annotation expectations to relevant tests 2025-06-21 18:46:50 +05:30
trig_functions.test make matrix selection and lookback left-open and right-closed 2024-06-20 22:05:40 +08:00
type_and_unit.test feature: type-and-unit-labels (PROM-39 implementation) (#16228) 2025-05-17 09:37:25 +00:00