Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race Condition in E2E Tests Due to Shared Predicate UTXOs #2081

Closed
Torres-ssf opened this issue Apr 17, 2024 · 0 comments · Fixed by #2579
Closed

Race Condition in E2E Tests Due to Shared Predicate UTXOs #2081

Torres-ssf opened this issue Apr 17, 2024 · 0 comments · Fixed by #2579
Assignees
Labels
bug Issue is a bug chore Issue is a chore p1 Medium priority
Milestone

Comments

@Torres-ssf
Copy link
Contributor

Our E2E tests frequently encounter race conditions due to shared usage of predicates across multiple test suites.

Since Predicates have unique addresses and are reused in various tests, this setup leads to concurrent test cases interfering with each other's transaction requests.

When two test cases run concurrently and interact with the same predicate, they attempt to fetch and use the same UTXO(s) for their transactions. This results in a race condition where:

  1. Both test cases successfully fetch the UTXO(s) and add them to the TransactionRequest.

  2. The first test submits the TX and finishes its execution, marking the UTXO(s) spent.

  3. The subsequent test case attempts to submit its transaction using the same now-spent UTXO(s), leading to a failure.

https://github.com/FuelLabs/fuels-ts/actions/runs/8713044366/job/23920586805#step:10:510

@Torres-ssf Torres-ssf added the chore Issue is a chore label Apr 17, 2024
@maschad maschad self-assigned this Jul 11, 2024
@maschad maschad added the bug Issue is a bug label Jul 11, 2024
@danielbate danielbate added this to the 0.x mainnet milestone Jul 12, 2024
@danielbate danielbate added the p1 Medium priority label Jul 12, 2024
@maschad maschad modified the milestones: 0.x post-launch, 0.x mainnet Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is a bug chore Issue is a chore p1 Medium priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants