Skip to content

test(ICP_Rosetta): DEFI-2690: Deflake //rs/rosetta-api/icp:icp_rosetta_system_tests#9226

Merged
mbjorkqvist merged 15 commits intomasterfrom
mathias/DEFI-2690-deflake-icp-rosetta-tests
Mar 23, 2026
Merged

test(ICP_Rosetta): DEFI-2690: Deflake //rs/rosetta-api/icp:icp_rosetta_system_tests#9226
mbjorkqvist merged 15 commits intomasterfrom
mathias/DEFI-2690-deflake-icp-rosetta-tests

Conversation

@mbjorkqvist
Copy link
Copy Markdown
Contributor

@mbjorkqvist mbjorkqvist commented Mar 6, 2026

Attempt to deflake //rs/rosetta-api/icp:icp_rosetta_system_tests as a follow-up to the now-closed PR 9210 by doing the following:

  • Under heavy system load, some calls from Rosetta to the ledger running on Pocket IC time out, but the error is only included in metadata of the success response from Rosetta's ledger client. The Rosetta system tests generate a bunch of dependent transactions, and if one fails to make it to the ledger, subsequent ones may fail with insufficient funds if an earlier transaction failed to make funds in a specific account available. This PR proposes to add some checks and retries for the ledger client responses in an attempt to address the observed flakiness.
  • Fix the ArgWithCaller implementation of the Debug trait to also log the arguments to enable debugging in case flakiness still occurs.
  • Add an internal timeout and panic so that in case test_load_from_storage hits the internal timeout, the test panics and we get logs to analyze - currently, if the test times out, it is killed, and we get no logs.

@github-actions github-actions bot added the test label Mar 6, 2026
@mbjorkqvist mbjorkqvist marked this pull request as ready for review March 6, 2026 19:21
@mbjorkqvist mbjorkqvist requested a review from a team as a code owner March 6, 2026 19:21
@github-actions github-actions bot added the @defi label Mar 6, 2026
@mbjorkqvist mbjorkqvist changed the title test(ICP_Rosetta): DEFI-2690: Deflake ICP Rosetta tests test(ICP_Rosetta): DEFI-2690: Deflake //rs/rosetta-api/icp:icp_rosetta_system_tests Mar 6, 2026
@mbjorkqvist mbjorkqvist added this pull request to the merge queue Mar 23, 2026
Merged via the queue into master with commit c96799a Mar 23, 2026
38 checks passed
@mbjorkqvist mbjorkqvist deleted the mathias/DEFI-2690-deflake-icp-rosetta-tests branch March 23, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants