fix(tests): fix or ignore unstable tests#2365
Conversation
…isable `test_qrc20_tx_history` in wasm
…` in windows and update `TBTC_ELECTRUMS`
How do you ignore |
apparently, we can't ignore |
They are the only tests that are commented out for this reason :) |
|
Maybe we can let the Testing this out with the latest commit Edit: |
bab795f to
0a61d59
Compare
85e435e to
79d59a7
Compare
mm2src/mm2_net/src/native_http.rs
Outdated
| // The purpose of this test is to verify that the `slurp_url` function successfully retrieves data from an external service. | ||
| // This retry loop was added to mitigate any test instability, | ||
| // since the target service (https://httpbin.org/get) can sometimes return a temporary failure (e.g., 502 Bad Gateway). | ||
| for _ in 0..6 { | ||
| let (status, headers, body) = | ||
| block_on(slurp_url("https://httpbin.org/get")).expect("Request failed unexpectedly"); | ||
| if status.is_success() { | ||
| return; | ||
| } | ||
| log!( | ||
| "Request failed with status code: {}, headers: {:?}, body: {}, retrying...", | ||
| status, | ||
| headers, | ||
| String::from_utf8_lossy(&body) | ||
| ); | ||
| block_on(Timer::sleep(5.)); | ||
| } | ||
|
|
||
| panic!("Failed to retrieve data from the external service after multiple attempts. Please check the service status."); |
There was a problem hiding this comment.
we can revert this change and depend on https://postman-echo.com/get uptime seems very okay
|
In this PR, the CI has been very stable since this commit eff9652. Any failures were due to a cancellation triggered by pushing a new commit. In total, about 11 commits have had their testing jobs successfully completed. There may still be occasional flaky tests in the future, but most should be resolved by re-running the failed jobs. If that doesn’t help, we’ll look for additional SPV servers or disable the problematic tests on the relevant machine, at least until a more permanent solution can be implemented. |
|
|
||
| #[tokio::test] | ||
| #[cfg(not(windows))] // https://github.com/KomodoPlatform/atomicDEX-API/issues/1712 | ||
| #[cfg(target_os = "linux")] // https://github.com/KomodoPlatform/atomicDEX-API/issues/1712 |
There was a problem hiding this comment.
Why only linux OS instead of UNIX platform?
There was a problem hiding this comment.
I guess it fails on MacOS too. Can we do "unix but not macos"?
There was a problem hiding this comment.
Thanks, will look to fix it in another PR. Will add this to the nextest issue
could we have a |
Will open an issue for |
* dev: (24 commits) fix(eth-tpu): remove state from funding validation (GLEECBTC#2334) improvement(rpc-server): rpc server dynamic port allocation (GLEECBTC#2342) fix(tests): fix or ignore unstable tests (GLEECBTC#2365) fix(fs): make `filter_files_by_extension` return only files (GLEECBTC#2364) fix(derive_key_from_path): check length of current_key_material (GLEECBTC#2356) chore(release): bump mm2 version to 2.4.0-beta (GLEECBTC#2346) fix(tests): add additional testnet sepolia nodes to test code (GLEECBTC#2358) fix(swaps): maintain legacy compatibility for negotiation messages (GLEECBTC#2353) refactor(SwapOps): impl defaults for protocol specific swapops fns (GLEECBTC#2354) feat(tpu-v2): provide swap protocol versioning (GLEECBTC#2324) feat(wallet): add change mnemonic password rpc (GLEECBTC#2317) fix(tpu-v2): fix tpu-v2 wait for payment spend and extract secret (GLEECBTC#2261) feat(tendermint): unstaking/undelegation (GLEECBTC#2330) fix(utxo-withdraw): get hw ctx only when `PrivKeyPolicy` is trezor (GLEECBTC#2333) feat(event-streaming): API-driven subscription management (GLEECBTC#2172) fix(hash-types): remove panic, enforce fixed-size arrays (GLEECBTC#2279) fix(ARRR): store unconfirmed change output (GLEECBTC#2276) feat(tendermint): staking/delegation (GLEECBTC#2322) chore(deps): `timed-map` migration (GLEECBTC#2247) fix(mem-leak): `running_swap` never shrinks (GLEECBTC#2301) ...
* dev: feat(tendermint): claim delegation rewards (#2351) fix(eth-tpu): remove state from funding validation (#2334) improvement(rpc-server): rpc server dynamic port allocation (#2342) fix(tests): fix or ignore unstable tests (#2365) fix(fs): make `filter_files_by_extension` return only files (#2364)
* dev: feat(rpc): add is_success field to legacy MySwapStatusResponse (#2371) fix(key-derivation): use stored Argon2 parameters instead of default values (#2360) fix(tests): stabilize `tendermint_coin::test_claim_staking_rewards` (#2373) improvement(RPCs): group staking rpcs under a namespace (#2372) feat(tendermint): claim delegation rewards (#2351) fix(eth-tpu): remove state from funding validation (#2334) improvement(rpc-server): rpc server dynamic port allocation (#2342) fix(tests): fix or ignore unstable tests (#2365) fix(fs): make `filter_files_by_extension` return only files (#2364) fix(derive_key_from_path): check length of current_key_material (#2356) chore(release): bump mm2 version to 2.4.0-beta (#2346) fix(tests): add additional testnet sepolia nodes to test code (#2358) fix(swaps): maintain legacy compatibility for negotiation messages (#2353) refactor(SwapOps): impl defaults for protocol specific swapops fns (#2354) feat(tpu-v2): provide swap protocol versioning (#2324) feat(wallet): add change mnemonic password rpc (#2317)
No description provided.