Skip to content

[*] infer Prometheus presets in TestDefaultPresetsReferenceDefinedMetrics - #1604

Merged
0xgouda merged 1 commit into
masterfrom
preset-test-infer-prometheus
Oct 16, 2026
Merged

0xgouda merged 1 commit into
masterfrom
preset-test-infer-prometheus

Conversation

@pashagolub

Copy link
Copy Markdown
Collaborator

The test from #1568 skipped patroni and postgres-exporter-basic by name, so every new Prometheus preset would fail it until someone extended the list.

Nothing in the preset data marks a preset as Prometheus-only, and adding a field would need a config schema migration. The test now infers it instead: a preset whose metrics are all undefined lists exporter metric families and is skipped. A preset with some undefined metrics, which is how the aiven / index_col_stats bug looked, still fails.

Verified by re-adding index_col_stats to SQL presets: the test fails and names them.

@pashagolub pashagolub self-assigned this Oct 15, 2026
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 38800400935

Coverage remained the same at 87.853%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 6199
Covered Lines: 5446
Line Coverage: 87.85%
Coverage Strength: 1.0 hits per line

💛 - Coveralls

@pashagolub pashagolub added the test New test case or request label Oct 15, 2026
@0xgouda
0xgouda merged commit 64be7cc into master Oct 16, 2026
10 checks passed
@0xgouda
0xgouda deleted the preset-test-infer-prometheus branch October 16, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test New test case or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants