Skip to content

tests: wildcard sm_id and fail_count in connect_attempts gold files (#13664) - #14107

Open
ishaaaan17 wants to merge 1 commit into
apache:masterfrom
ishaaaan17:fix/autest-connect-attempts-flaky-gold
Open

ishaaaan17 wants to merge 1 commit into
apache:masterfrom
ishaaaan17:fix/autest-connect-attempts-flaky-gold

Conversation

@ishaaaan17

Copy link
Copy Markdown
Contributor

Closes #13664

The connect_attempts Uranium tests fail off and on in CI. The gold files match the exact sm_id and fail_count values from the error log, but when transactions run together in threads, these values can change from one run to the next. So the test fails even when the connection retry behaviour itself is correct.

I have wildcarded sm_id and fail_count in these four gold files:

  • connect_attempts_single_max_retries_error_log.gold
  • connect_attempts_rr_max_retries_error_log.gold
  • connect_attempts_rr_no_error_log.gold
  • connect_attempts_rr_retries_error_log.gold

Checked with tools.uranium.assertions.assert_matches_gold: normal runs pass, runs with a different sm_id or sampled fail_count pass too, and the test still fails when it should, for example on missing retry attempts, wrong IPs, or a missing DNS error log.

…pache#13664)

The connect_attempts Uranium tests intermittently fail in CI when the
HTTP state machine id (sm_id) or fail_count varies across transaction
ordering and thread scheduling.

Wildcard sm_id and fail_count in the error log gold files so assertions
focus on connection failure handling, retry counts, and marking hosts
down rather than incidental runtime IDs.
@ishaaaan17
ishaaaan17 force-pushed the fix/autest-connect-attempts-flaky-gold branch from 0e2ac02 to 09ea7a4 Compare November 18, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

connect_attempts AuTest is flaky: the gold file pins sm_id, which is ordering dependent

1 participant