UNCLASSIFIED - NO CUI

fix: bound Loki ingestion test queries

General MR

Summary

The Alloy log-ingestion Helm test previously allowed a single Loki request to block for the complete ten-minute Helm-test timeout. This prevented the retry loop from operating and produced intermittent pipeline failures when Loki returned slowly or became temporarily unavailable.

This MR:

  • Adds a configurable REQUEST_TIMEOUT with a 30-second default to each Loki HTTP request.
  • Filters the Loki query by the generated TEST_ID marker instead of retrieving up to 5,000 unrelated log lines and filtering locally.
  • Reduces the filtered query result limit to 100.
  • Preserves the existing retry and log re-emission behavior.

No Loki replica or deployment configuration is changed.

Relevant logs/screenshots

Big Bang job 60556476 demonstrates the issue: the first Alloy Loki query ran from 14:54:28 until 15:04:28 before returning HTTP 504, consuming the entire Helm-test timeout.

https://repo1.dso.mil/big-bang/bigbang/-/jobs/60556476

Validation

  • Python syntax validation passed for chart/tests/scripts/test.py.
  • Git diff validation passed.

Linked Issue

#149 (closed)

Upgrade Notices

N/A

Edited by Jeffrey Victor

Merge request reports

Loading
Loading