UNCLASSIFIED - NO CUI

feat: validate Thanos query, storage, and compaction in CI

General MR

Summary

Strengthen Thanos image validation: a successful install and UI click no longer stand in for working metric queries and object storage.

  • Assert successful, nonempty PromQL responses without partial-response warnings, and healthy discovered Prometheus sidecars. Run internal API checks in the SSO lane as well.
  • Verify complete uploaded blocks and read healthy live samples through Store Gateway only, excluding sidecar fallback.
  • Seed six small historical blocks with fresh IDs and a unique external label, verify every expected sample, then require real higher-level compaction output with preserved sample counts and complete objects.
  • Remove the global Cypress failure-suppression handler. Enable storage E2E checks in default, sidecar, and SSO CI; use short test-only synchronization intervals.
  • Keep CI-only storage E2E settings and fixture mounts in the three test value overlays. Generic chart tests do not render or mount storage fixtures; reusable Query API defaults remain in the chart.
  • Bump the package chart to 17.6.0-bb.9, add the changelog entry, regenerate README with helm-docs 1.14.2, and document the checks and fixture generator.

Fixture writes are explicitly opt-in and target disposable CI storage. Application images, dependency versions, and production compaction defaults are unchanged.

Relevant logs/screenshots

Local validation:

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests/unit -v: 15 failure-path tests passed.
  • node --check chart/tests/cypress/e2e/01-thanos-healthspec.cy.js: passed.
  • helm lint chart and lint/render with bbtests.enabled=true: passed.
  • Rendered the default, sidecar, and SSO umbrella/package configurations against Big Bang commit 25a3e7907f4b62e970850943dbf773a7cf77fc70; verified fixture mounts, test enablement, and Compactor/Store Gateway arguments.
  • Ran native upstream Thanos v0.42.5 Sidecar, Query, Store Gateway, and Compactor with Prometheus and a temporary localhost S3 emulator (AWS streaming-body compatibility adapter required by the emulator):
Complete live TSDB block in S3: PASS
Shipped live samples through Store Gateway only: PASS
Historical samples through Store Gateway only: PASS
Compacted fixture block with preserved samples: PASS
Historical samples after compaction: PASS
Native Thanos storage E2E: PASS

Linked Issue

Closes #161 (closed)

Thanos issue #161

Upgrade Notices

N/A

Edited by Christopher O'Connell

Merge request reports

Loading
Loading