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 faucet timeout in long faucet chain test #2721

Merged

Conversation

jvff
Copy link
Contributor

@jvff jvff commented Oct 26, 2024

Motivation

The long faucet chain test fails because the mutation to obtain a new chain from the faucet times out. This happens because the mutation is sent immediately after the faucet starts, and the faucet takes a while to start up. During startup, the wallet synchronizes all of its chains. This includes the (long) faucet chain, but also all the chains created earlier, which are useless from this point of the test onwards.

Proposal

Remove the newly created chains from the wallet, so that they aren't synchronized when the faucet starts.

Test Plan

Tested manually to confirm the timeout disappears.

Release Plan

  • These changes should be backported to the latest devnet and testnet branches, to prevent CI from failing for known reasons.

Links

@jvff jvff added the testing label Oct 26, 2024
@jvff jvff added this to the Testnet #2 milestone Oct 26, 2024
@jvff jvff self-assigned this Oct 26, 2024
Allow removing chains from the wallet in tests.
The chains only serve to increase the Faucet chain's length in a way
that simulates the Faucet from being executed for a long time, so they
can be forgotten after they have been created.
@jvff jvff force-pushed the fix-faucet-timeout-in-long-faucet-chain-test branch from 59eb041 to 6686826 Compare October 26, 2024 16:05
@jvff jvff merged commit b9b94c5 into linera-io:main Oct 27, 2024
4 checks passed
@jvff jvff deleted the fix-faucet-timeout-in-long-faucet-chain-test branch October 27, 2024 03:01
jvff added a commit to jvff/linera-protocol that referenced this pull request Oct 27, 2024
* Add `forget_chain` method to wallet CLI wrapper

Allow removing chains from the wallet in tests.

* Forget irrelevant newly created chains in test

The chains only serve to increase the Faucet chain's length in a way
that simulates the Faucet from being executed for a long time, so they
can be forgotten after they have been created.
jvff added a commit that referenced this pull request Oct 27, 2024
* Add some tokens to the new chains (#2718)

* Fix faucet timeout in long faucet chain test (#2721)

* Add `forget_chain` method to wallet CLI wrapper

Allow removing chains from the wallet in tests.

* Forget irrelevant newly created chains in test

The chains only serve to increase the Faucet chain's length in a way
that simulates the Faucet from being executed for a long time, so they
can be forgotten after they have been created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants