Skip to content

txmgr/Queue: add additional assertions to test to check for tx ordering#13124

Merged
sebastianst merged 7 commits intodevelopfrom
gk/txmgr-queue-ordering-test
Dec 2, 2024
Merged

txmgr/Queue: add additional assertions to test to check for tx ordering#13124
sebastianst merged 7 commits intodevelopfrom
gk/txmgr-queue-ordering-test

Conversation

@geoknee
Copy link
Copy Markdown
Contributor

@geoknee geoknee commented Nov 27, 2024

Related to #13120 , this adds a test which exposes the existing risk of txs being confirmed out of order. This test fails without the fix of #13120.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.78%. Comparing base (4ee839a) to head (0f3851f).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #13124      +/-   ##
===========================================
- Coverage    44.51%   42.78%   -1.73%     
===========================================
  Files          801      745      -56     
  Lines        72026    67361    -4665     
===========================================
- Hits         32059    28818    -3241     
+ Misses       37359    36113    -1246     
+ Partials      2608     2430     -178     
Flag Coverage Δ
cannon-go-tests-32 ?
cannon-go-tests-64 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 63 files with indirect coverage changes

@geoknee geoknee changed the title add additional assertions to test to check for tx ordering txmgr/Queue: add additional assertions to test to check for tx ordering Nov 27, 2024
@geoknee geoknee added the A-op-batcher Area: op-batcher label Nov 27, 2024
@geoknee geoknee changed the base branch from develop to gk/txmgr-queue-send-async November 27, 2024 16:52
@geoknee geoknee changed the base branch from gk/txmgr-queue-send-async to develop November 27, 2024 16:52
@geoknee geoknee force-pushed the gk/txmgr-queue-ordering-test branch from 7c46ffe to 0e76129 Compare December 2, 2024 11:03
@geoknee geoknee marked this pull request as ready for review December 2, 2024 11:04
@geoknee geoknee requested a review from a team as a code owner December 2, 2024 11:04
@geoknee geoknee requested a review from sebastianst December 2, 2024 11:04
Co-authored-by: Sebastian Stammler <seb@oplabs.co>
@sebastianst sebastianst enabled auto-merge December 2, 2024 16:27
@sebastianst sebastianst added this pull request to the merge queue Dec 2, 2024
Merged via the queue into develop with commit 6e799a6 Dec 2, 2024
@sebastianst sebastianst deleted the gk/txmgr-queue-ordering-test branch December 2, 2024 16:38
sigma pushed a commit that referenced this pull request Dec 19, 2024
…ng (#13124)

* add additional assertions to test to check for tx ordering

* enhance test to handle tx confirmation ID ordering

* increase size of 0th tx to expose race condition

* change approach since the backend does not order txs by nonce

* tidy

* clarify

* Update op-service/txmgr/queue_test.go

Co-authored-by: Sebastian Stammler <seb@oplabs.co>

---------

Co-authored-by: Sebastian Stammler <seb@oplabs.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-op-batcher Area: op-batcher

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants