Tolerate a known failure
Use this procedure when a node fails for a cause that you know and cannot correct now. For example, a shared test database can reach its connection limit.
Procedure
Find the signature of the failure in the Hurl report: the status, a header, the body or the error text.
Add an entry to
known_failures:hurl--- id: create_order outputs: [order_id] known_failures: - name: db_pool_exhausted reason: The shared test database is at its connection limit until: 2026-12-31 link: https://example.com/runbooks/test-db-pool status: 500 header: name: X-Error-Code pattern: '^ERR-DB-\d+$' --- POST {{base_url}}/orders HTTP 200 [Captures] order_id: jsonpath "$.id"Write a
name. The console, the summary and the CTRFtagsshow it.Write a
reasonthat a different engineer can understand.Set
untilto the date of the next review.Add
linkto the ticket or the runbook.Run the suite with
--dry-runto validate the entry.
Result
When the node fails and each signature field that you set matches, the console shows:
KNOWN FAILURE: create_order [db_pool_exhausted] The shared test database is at its connection limitThe run stays green. The nodes that need create_order get no outputs, so hurl-orchestra skips them. The run ends with a summary:
Known failures tolerated: 1 (db_pool_exhausted: create_order)After the until date, the entry stops to match, and the failure fails the run with known failure 'db_pool_exhausted' expired on 2026-12-31.
Make the known failures fail
Run with --strict to see if the cause still exists:
hurl-orchestra --strict ./testsFor all fields, read Frontmatter.
