Repository navigation
tests: wildcard sm_id and fail_count in connect_attempts gold files (#13664) - #14107
Open
ishaaaan17 wants to merge 1 commit into
Open
ishaaaan17 wants to merge 1 commit into
ishaaaan17 wants to merge 1 commit into
Conversation
…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
force-pushed
the
fix/autest-connect-attempts-flaky-gold
branch
from
November 18, 2026 05:00
0e2ac02 to
09ea7a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #13664
The
connect_attemptsUranium tests fail off and on in CI. The gold files match the exactsm_idandfail_countvalues 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_idandfail_countin these four gold files:connect_attempts_single_max_retries_error_log.goldconnect_attempts_rr_max_retries_error_log.goldconnect_attempts_rr_no_error_log.goldconnect_attempts_rr_retries_error_log.goldChecked with
tools.uranium.assertions.assert_matches_gold: normal runs pass, runs with a differentsm_idor sampledfail_countpass too, and the test still fails when it should, for example on missing retry attempts, wrong IPs, or a missing DNS error log.