mario-eth / soldeer

Solidity Package Manager written in rust
MIT License
241 stars 26 forks source link

Issue while trying to run soldeer tests locally #151

Closed TilakMaddy closed 3 months ago

TilakMaddy commented 3 months ago

I thought I'll look into some of the tests here to get insight on this tool. Before that I wanted to run the tests by doing the following:

Steps:

  1. Clone repo
  2. cargo test

(I saw that the build step in rust.yml file doesn't have any pre-steps either. It installs rust from the stable toolchain and runs cargo test. So I assume it should work 😕)

Problem: Gets stuck

Output:


cargo test
    Finished `test` profile [optimized + debuginfo] target(s) in 0.15s
     Running unittests src/lib.rs (target/debug/deps/soldeer-3119a0e3c3f2840e)

running 104 tests
test config::tests::add_to_config_foundry_github_previous_commit_then_no_commit ... ok
test auth::tests::login_500 ... ok
test config::tests::add_to_config_foundry_with_custom_url_first_dependency ... ok
test auth::tests::email_validation ... ok
test config::tests::add_to_config_foundry_no_custom_url_second_dependency ... ok
test config::tests::add_to_config_foundry_update_dependency_version_no_custom_url ... ok
test config::tests::add_to_config_foundry_github_with_commit ... ok
test config::tests::add_to_config_foundry_no_custom_url_first_dependency ... ok
test config::tests::add_to_config_foundry_with_custom_url_second_dependency ... ok
test config::tests::add_to_config_foundry_update_dependency_version ... ok
test config::tests::create_new_file_if_not_defined_soldeer ... ok
test config::tests::add_to_config_foundry_github_previous_no_commit_then_with_commit ... ok
test config::tests::add_to_config_foundry_not_altering_the_existing_contents ... ok
test config::tests::define_config_file_choses_foundry ... ok
test auth::tests::login_success ... ok
test config::tests::add_to_config_soldeer_no_custom_url_first_dependency ... ok
test config::tests::add_to_config_soldeer_with_custom_url_first_dependency ... ok
test config::tests::generate_remappings_in_config_only_default_profile ... ok
test config::tests::generate_remappings_no_prefix_and_no_version_in_config ... ok
test config::tests::generate_remappings_keep_custom ... ok
test config::tests::generate_remappings_in_config_all_profiles ... ok
test config::tests::generate_remappings_in_config_existing ... ok
test auth::tests::login_401 ... ok
test config::tests::define_config_file_choses_soldeer ... ok
test config::tests::read_soldeer_configs_all_set ... ok
test config::tests::generate_remappings_with_prefix_and_version_in_config ... ok
test config::tests::read_soldeer_configs_append_at_in_remappings ... ok
test config::tests::read_soldeer_configs_generate_remappings ... ok
test config::tests::read_soldeer_configs_remappings_location ... ok
test config::tests::read_soldeer_configs_reg_remappings ... ok
test config::tests::remove_config_nonexistent_fails ... ok
test config::tests::generate_remappings_no_prefix_and_no_version_in_txt ... ok
test config::tests::read_soldeer_configs_remappings_version ... ok
test config::tests::remove_from_the_config_multiple ... ok
test config::tests::remove_from_the_config_single ... ok
test config::tests::generate_remappings_prefix_and_version_in_txt ... ok
test config::tests::generate_remappings_regenerate ... ok
test config::tests::read_foundry_config_version_v1_ok ... ok
test config::tests::read_foundry_config_version_v2_ok ... ok
test config::tests::read_malformed_config_empty_version_string_fails ... ok
test dependency_downloader::tests::get_download_tunnel_git_githttp ... ok
test config::tests::read_malformed_config_incorrect_version_string_fails ... ok
test dependency_downloader::tests::get_download_tunnel_git_giturl ... ok
test dependency_downloader::tests::get_download_tunnel_http ... ok
test config::tests::read_soldeer_config_version_v1_ok ... ok
test config::tests::read_soldeer_config_version_v2_ok ... ok
test dependency_downloader::tests::download_dependencies_git_http_two_success ... ok
test dependency_downloader::tests::download_dependency_should_replace_existing_zip ... ok
test dependency_downloader::tests::download_dependencies_http_two_success ... ok
test janitor::tests::cleanup_after_one_existing_one_not_existing_dependency ... ok
test janitor::tests::cleanup_existing_dependency ... ok
test janitor::tests::healthcheck_dependency_not_found ... ok
test janitor::tests::healthcheck_dependency_found ... ok
test lock::tests::check_lock_all_locked_test ... ok
test janitor::tests::cleanup_after_existing_dependency ... ok
test janitor::tests::cleanup_nonexisting_dependency ... ok
test lock::tests::lock_file_not_present_test ... ok
test lock::tests::remove_lock_multiple_success ... ok
test dependency_downloader::tests::download_dependencies_gitlab_httpurl_one_success ... ok
test dependency_downloader::tests::unzip_non_zip_file_error ... ok
test dependency_downloader::tests::download_dependencies_one_with_clean_success ... ok
test dependency_downloader::tests::download_dependencies_git_one_fail has been running for over 60 seconds
test dependency_downloader::tests::download_dependencies_http_one_fail has been running for over 60 seconds
test dependency_downloader::tests::download_dependencies_http_one_success has been running for over 60 seconds
test dependency_downloader::tests::download_dependency_gitlab_httpurl_with_a_specific_revision has been running for over 60 seconds
test dependency_downloader::tests::download_unzip_check_integrity has been running for over 60 seconds
test dependency_downloader::tests::remove_one_dependency has been running for over 60 seconds
test dependency_downloader::tests::unzip_dependency_success has been running for over 60 seconds
test lock::tests::remove_lock_one_fails has been running for over 60 seconds
test lock::tests::remove_lock_single_success has been running for over 60 seconds
test lock::tests::write_append_lock_test has been running for over 60 seconds
test lock::tests::write_clean_lock_test has been running for over 60 seconds
test tests::download_dependency_with_subdependencies_on_git_success_arg_config has been running for over 60 seconds
test tests::download_dependency_with_subdependencies_on_git_success_soldeer_config has been running for over 60 seconds
test tests::download_dependency_with_subdependencies_on_soldeer_success_arg_config has been running for over 60 seconds

I have also tried to pass the --test-threads=1 option but it didn't help.

OS: Mac

mario-eth commented 3 months ago

Hey thanks for reporting. Known issue for now, you just have to press enter in terminal to get over that. Press enter multiple times will update the stdout