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

fix: flaky TransactionResponse test #2268

Merged
merged 6 commits into from
May 8, 2024

Conversation

nedsalk
Copy link
Contributor

@nedsalk nedsalk commented May 8, 2024

I retried the test 100s of times locally and could not get it to fail. My hunch is that it's because of the CI environment being slow.

I increased the --tx-pool-ttl to 1 second to allow for some more room before the transaction is squeezed out and --poa-interval-period to 4s to ensure that the transaction doesn't get processed before it's squeezed out. Still, these are just informed shots in the dark; I don't know the underlying root cause.

Due to the flakiness of the test and me not knowing the root cause, I also added { retry: 10 } to it so that it's retried if it fails. This should at least reduce the flakiness a lot if the changes to the flag values aren't enough.

Also note that this is the way to test the squeezing out of a transaction and I was given guidance by the fuel-core team on how to write it.

closes #2200

Copy link
Contributor

github-actions bot commented May 8, 2024

Coverage Report:

Lines Branches Functions Statements
79.75%(+0.01%) 69.42%(-0.02%) 77.83%(+0%) 79.86%(+0.01%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 packages/account/src/providers/generated/operations.ts 93.98%
(+0.19%)
100%
(+0%)
80.95%
(+0%)
94.44%
(+0.16%)
🔴 packages/account/src/providers/utils/gas.ts 100%
(+0%)
92%
(-0.59%)
100%
(+0%)
100%
(+0%)

@nedsalk nedsalk merged commit 24b1d0c into master May 8, 2024
19 checks passed
@nedsalk nedsalk deleted the ns/fix/flaky-transaction-response-test branch May 8, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: Inconsistent TransactionResponse tests
4 participants