Skip to content

CI profiles

Package CI layers one file from tests/ over the umbrella’s shared CI values. Each profile produces clean-install and upgrade jobs.

Profile Loki deployment Mesh Additional coverage
test-values.yaml Monolith with filesystem storage Ambient Default image annotation and inventory validation
test-values-garage.yaml Simple scalable with Garage S3 storage Ambient Bucket objects and NGINX gateway ingestion/query
test-sidecar-values.yaml Monolith with filesystem storage Sidecar Sidecar injection and traffic

The default profile supplies monolith coverage; there is no separate duplicate monolith profile. The sidecar profile disables both global ambient mode and the ztunnel package. Alloy’s Loki destination is derived by the umbrella from the selected Loki strategy.

Gateway round trip

The Garage profile sets bbtests.scripts.envs.LOKI_GATEWAY_URL to the internal NGINX gateway service and allows the script test to reach that gateway. chart/tests/scripts/gateway-test.py posts a uniquely labelled log entry to /loki/api/v1/push, requires HTTP 204, then polls /loki/api/v1/query_range through the same service until it returns the exact timestamp and message. An unrelated log entry, missing route, API error, or timeout fails the check. This complements the direct backend health checks and Grafana read tests.

The gateway check skips when LOKI_GATEWAY_URL is unset, including in the two monolith profiles. Its default timeout is 120 seconds; LOKI_GATEWAY_TIMEOUT can override it. LOKI_GATEWAY_TENANT_ID supplies an optional X-Scope-OrgID header for deployments with tenant authentication enabled. These settings belong in CI or consumer test values rather than chart defaults.

Run the local HTTP fixture tests with:

python3 -m unittest discover -s tests/unit -v

Local tests and Helm rendering validate the test logic and wiring. Deployed clean-install and upgrade CI provide the gateway integration evidence.