Open willemneal opened 7 months ago
I am applying to this issue via OnlyDust platform.
Am a software engineer
I will go through the documentation and implement the all the instruction..
I am applying to this issue via OnlyDust platform.
My name is Koxy. I'm a blockchain Rust developer and Stellar ecosystem contributor. As an SCF Pathfinder and contributor to Stellar documentation, I have hands-on experience with both Rust and the Stellar platform.
My background in open-source development and familiarity with Stellar's architecture positions me well to address the timing issues in Soroban CLI tests.
I'm eager to implement immediate solutions while collaborating with the team on long-term improvements to enhance Soroban CLI's reliability.
To address the timing issues in the Soroban CLI tests, I would:
Analyze: First, I'd thoroughly review the failing tests and surrounding code to understand the root causes of the timing issues.
Implement Quick Fix: Add strategic sleep statements to stabilize the tests, as a temporary solution to unblock development.
Document: Comment on the added sleep, explaining its purpose and marking it as temporary.
Test Thoroughly: Ensure the modified tests pass consistently across multiple runs and environments.
Propose Long-Term Solutions: Investigate more robust alternatives such as:
Collaborate: Discuss findings and proposed long-term solutions with the team to align on the best path forward.
Implement & Iterate: Based on team feedback, implement agreed-upon long-term fixes, iterating as necessary.
I am applying to this issue via OnlyDust platform.
I have experience in JavaScript and TypeScript, particularly in testing and debugging CLI tools. I understand the intricacies of test environments and the importance of reliable test execution.
I’d investigate the current test setup to identify why a sleep is required for tests to pass. I’d analyze the test timing and dependencies, then implement a solution to ensure the tests run reliably without unnecessary delays, potentially optimizing the test flow.
Helllo @janewang @willemneal for this other issue, sleep required to pass tests
I have been trying to work on the test, but i noticed that when ever i run cargo test .....
. It outputs issues about my connection. "error: error trying to connect: tcp connect error: Connection refused".
Was i supposed to run a command to start up my connection in my local environment?.
Yes you need to start a quickstart server.
If you are in the repo you can use cargo s
which is an alias for cargo run --quiet --
cargo s network container start --ports-mapping 8889:8000 local
Also this issues likely stems from the fact that multiple tests are trying to upload the same wasm binary at the same time.
A possible solution is to modify the Wasm binary for each test, by adding some random data to a custom section. This would mean that each test would have a unique wasm file to upload. The sleeps acted as a way for the tests no run sequentially which solved the issue of submitting the same wasm quickly.
Here is an example from loam, which had similar issues with its tests.
Checkout the rest of the PR for more details.
Also this issues likely stems from the fact that multiple tests are trying to upload the same wasm binary at the same time.
A possible solution is to modify the Wasm binary for each test, by adding some random data to a custom section. This would mean that each test would have a unique wasm file to upload. The sleeps acted as a way for the tests no run sequentially which solved the issue of submitting the same wasm quickly.
Here is an example from loam, which had similar issues with its tests.
Checkout the rest of the PR for more details.
okay, on this.
Hi @janewang @willemneal
I have fixed this issues. This test works fine now, sleep is no longer needed for test to pass. This is my pull request here. Kindly help review https://github.com/stellar/stellar-cli/pull/1651
What version are you using?
What did you do?
What did you expect to see?
What did you see instead?