guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#51901] [PATCH] rust-cargo-make: Initial commit


From: Jacob Hrbek
Subject: [bug#51901] [PATCH] rust-cargo-make: Initial commit
Date: Tue, 16 Nov 2021 22:33:33 +0000

DISCLAIMER: FIrst time making a package for GNU Guix

it generates bunch of test failures:

```

failures:

---- command::command_test::run_command_for_toolchain stdout ----
Unable to setup logger.
thread 'command::command_test::run_command_for_toolchain' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:94:41

---- condition::condition_test::validate_condition_for_step_invalid_rust_version stdout ----
thread 'condition::condition_test::validate_condition_for_step_invalid_rust_version' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/condition_test.rs:2587:40

---- condition::condition_test::validate_condition_for_step_valid_rust_version stdout ----
thread 'condition::condition_test::validate_condition_for_step_valid_rust_version' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/condition_test.rs:2528:36

---- descriptor::makefiles::mod_test::makefile_audit_test stdout ----
thread 'descriptor::makefiles::mod_test::makefile_audit_test' panicked at 'assertion failed: `(left == right)`
  left: `true`,
 right: `false`', src/lib/descriptor/makefiles/mod_test.rs:66:9

---- descriptor::makefiles::mod_test::makefile_coverage_kcov_test stdout ----
Unable to setup logger.
thread 'descriptor::makefiles::mod_test::makefile_coverage_kcov_test' panicked at 'assertion failed: `(left == right)`
  left: `true`,
 right: `false`', src/lib/descriptor/makefiles/mod_test.rs:66:9

---- condition::condition_test::validate_rust_version_with_invalid_condition stdout ----
thread 'condition::condition_test::validate_rust_version_with_invalid_condition' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/condition_test.rs:2925:40

---- condition::condition_test::validate_rust_version_with_valid_condition stdout ----
thread 'condition::condition_test::validate_rust_version_with_valid_condition' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/condition_test.rs:2895:36

---- environment::crateinfo::crateinfo_test::expand_glob_members_found stdout ----
thread 'environment::crateinfo::crateinfo_test::expand_glob_members_found' panicked at 'assertion failed: members.len() > 0', src/lib/environment/crateinfo_test.rs:342:5                                                                                          

---- environment::crateinfo::crateinfo_test::load_workspace_members_mixed stdout ----
thread 'environment::crateinfo::crateinfo_test::load_workspace_members_mixed' panicked at 'assertion failed: members.iter().position(|member|\n                            member == \"examples/workspace/member1\").is_some()', src/lib/environment/crateinfo_test.rs:552:5

---- environment::crateinfo::crateinfo_test::normalize_members_mixed stdout ----
thread 'environment::crateinfo::crateinfo_test::normalize_members_mixed' panicked at 'assertion failed: members.iter().position(|member|\n                            member == \"examples/workspace/member1\").is_some()', src/lib/environment/crateinfo_test.rs:453:5

---- environment::mod_test::get_base_directory_name_valid stdout ----
thread 'environment::mod_test::get_base_directory_name_valid' panicked at 'assertion failed: `(left == right)`
  left: `"cargo-make-0.35.6"`,
 right: `"cargo-make"`', src/lib/environment/mod_test.rs:1654:5

---- installer::cargo_plugin_installer::cargo_plugin_installer_test::is_crate_installed_with_toolchain_false stdout ----
Unable to setup logger.
thread 'installer::cargo_plugin_installer::cargo_plugin_installer_test::is_crate_installed_with_toolchain_false' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:94:41

---- installer::cargo_plugin_installer::cargo_plugin_installer_test::is_crate_installed_with_toolchain_true stdout ----
Unable to setup logger.
thread 'installer::cargo_plugin_installer::cargo_plugin_installer_test::is_crate_installed_with_toolchain_true' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:94:41                                          

---- installer::crate_installer::crate_installer_test::install_already_installed_crate_only_min_version_equal stdout ----
thread 'installer::crate_installer::crate_installer_test::install_already_installed_crate_only_min_version_equal' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/installer/crate_installer_test.rs:163:72

---- installer::crate_installer::crate_installer_test::install_already_installed_crate_only_min_version_smaller stdout ----
thread 'installer::crate_installer::crate_installer_test::install_already_installed_crate_only_min_version_smaller' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/installer/crate_installer_test.rs:187:76

---- installer::crate_installer::crate_installer_test::install_already_installed_crate_only_version_equal stdout ----
thread 'installer::crate_installer::crate_installer_test::install_already_installed_crate_only_version_equal' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/installer/crate_installer_test.rs:219:72

---- installer::crate_installer::crate_installer_test::install_test_with_toolchain_test stdout ----
Unable to setup logger.
thread 'installer::crate_installer::crate_installer_test::install_test_with_toolchain_test' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:106:41

---- installer::crate_installer::crate_installer_test::invoke_cargo_install_with_toolchain_test stdout ----
Unable to setup logger.
thread 'installer::crate_installer::crate_installer_test::invoke_cargo_install_with_toolchain_test' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:106:41

---- installer::crate_installer::crate_installer_test::invoke_rustup_install_with_toolchain_fail stdout ----
Unable to setup logger.
thread 'installer::crate_installer::crate_installer_test::invoke_rustup_install_with_toolchain_fail' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:106:41

---- installer::crate_version_check::crate_version_check_test::is_min_version_valid_newer_version stdout ----
thread 'installer::crate_version_check::crate_version_check_test::is_min_version_valid_newer_version' panicked at 'assertion failed: !valid', src/lib/installer/crate_version_check_test.rs:225:5                                                                                             

---- installer::crate_version_check::crate_version_check_test::is_min_version_valid_same_version stdout ----
thread 'installer::crate_version_check::crate_version_check_test::is_min_version_valid_same_version' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/installer/crate_version_check_test.rs:230:51

---- installer::crate_version_check::crate_version_check_test::is_version_valid_newer_version stdout ----
thread 'installer::crate_version_check::crate_version_check_test::is_version_valid_newer_version' panicked at 'assertion failed: !valid', src/lib/installer/crate_version_check_test.rs:308:5                                                                                             

---- installer::crate_version_check::crate_version_check_test::is_version_valid_old_version stdout ----
thread 'installer::crate_version_check::crate_version_check_test::is_version_valid_old_version' panicked at 'assertion failed: !valid', src/lib/installer/crate_version_check_test.rs:301:5                                                                                             

---- installer::crate_version_check::crate_version_check_test::is_version_valid_same_version stdout ----
thread 'installer::crate_version_check::crate_version_check_test::is_version_valid_same_version' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/installer/crate_version_check_test.rs:313:51

---- installer::crate_installer::crate_installer_test::invoke_rustup_install_with_toolchain_none stdout ----
Unable to setup logger.
thread 'installer::crate_installer::crate_installer_test::invoke_rustup_install_with_toolchain_none' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:106:41

---- installer::rustup_component_installer::rustup_component_installer_test::install_with_toolchain_test stdout ----
Unable to setup logger.
thread 'installer::rustup_component_installer::rustup_component_installer_test::install_with_toolchain_test' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:106:41

---- installer::rustup_component_installer::rustup_component_installer_test::invoke_rustup_install_with_toolchain_fail stdout ----
Unable to setup logger.
thread 'installer::rustup_component_installer::rustup_component_installer_test::invoke_rustup_install_with_toolchain_fail' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:106:41

---- installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_false stdout ----
Unable to setup logger.
thread 'installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_false' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:94:41

---- installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_non_zero stdout ----
Unable to setup logger.
thread 'installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_non_zero' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:106:41

---- installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_true stdout ----
Unable to setup logger.
thread 'installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_true' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:94:41

---- io::io_test::get_path_list_dirs_with_gitignore stdout ----
thread 'io::io_test::get_path_list_dirs_with_gitignore' panicked at 'assertion failed: output.is_empty()', src/lib/io_test.rs:109:5

---- scriptengine::mod_test::invoke_duckscript_runner stdout ----
Unable to setup logger.
thread 'scriptengine::mod_test::invoke_duckscript_runner' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:45:41

---- scriptengine::mod_test::invoke_rust_runner stdout ----
Unable to setup logger.
thread 'scriptengine::mod_test::invoke_rust_runner' panicked at 'called `Option::unwrap()` on a `None` value', src/lib/test/mod.rs:45:41

---- toolchain::toolchain_test::wrap_command_empty_args stdout ----
thread 'toolchain::toolchain_test::wrap_command_empty_args' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', /tmp/guix-build-rust-cargo-make-0.35.6.drv-0/cargo-make-0.35.6/guix-vendor/rust-envmnt-0.9.1.tar.gz/src/environment.rs:53:19

---- toolchain::toolchain_test::wrap_command_with_args stdout ----
thread 'toolchain::toolchain_test::wrap_command_with_args' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', /tmp/guix-build-rust-cargo-make-0.35.6.drv-0/cargo-make-0.35.6/guix-vendor/rust-envmnt-0.9.1.tar.gz/src/environment.rs:53:19

---- toolchain::toolchain_test::wrap_command_none_args stdout ----
thread 'toolchain::toolchain_test::wrap_command_none_args' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', /tmp/guix-build-rust-cargo-make-0.35.6.drv-0/cargo-make-0.35.6/guix-vendor/rust-envmnt-0.9.1.tar.gz/src/environment.rs:53:19


failures:
    command::command_test::run_command_for_toolchain
    condition::condition_test::validate_condition_for_step_invalid_rust_version
    condition::condition_test::validate_condition_for_step_valid_rust_version
    condition::condition_test::validate_rust_version_with_invalid_condition
    condition::condition_test::validate_rust_version_with_valid_condition
    descriptor::makefiles::mod_test::makefile_audit_test
    descriptor::makefiles::mod_test::makefile_coverage_kcov_test
    environment::crateinfo::crateinfo_test::expand_glob_members_found
    environment::crateinfo::crateinfo_test::load_workspace_members_mixed
    environment::crateinfo::crateinfo_test::normalize_members_mixed
    environment::mod_test::get_base_directory_name_valid
    installer::cargo_plugin_installer::cargo_plugin_installer_test::is_crate_installed_with_toolchain_false
    installer::cargo_plugin_installer::cargo_plugin_installer_test::is_crate_installed_with_toolchain_true
    installer::crate_installer::crate_installer_test::install_already_installed_crate_only_min_version_equal
    installer::crate_installer::crate_installer_test::install_already_installed_crate_only_min_version_smaller
    installer::crate_installer::crate_installer_test::install_already_installed_crate_only_version_equal
    installer::crate_installer::crate_installer_test::install_test_with_toolchain_test
    installer::crate_installer::crate_installer_test::invoke_cargo_install_with_toolchain_test
    installer::crate_installer::crate_installer_test::invoke_rustup_install_with_toolchain_fail
    installer::crate_installer::crate_installer_test::invoke_rustup_install_with_toolchain_none
    installer::crate_version_check::crate_version_check_test::is_min_version_valid_newer_version
    installer::crate_version_check::crate_version_check_test::is_min_version_valid_same_version
    installer::crate_version_check::crate_version_check_test::is_version_valid_newer_version
    installer::crate_version_check::crate_version_check_test::is_version_valid_old_version
    installer::crate_version_check::crate_version_check_test::is_version_valid_same_version
    installer::rustup_component_installer::rustup_component_installer_test::install_with_toolchain_test
    installer::rustup_component_installer::rustup_component_installer_test::invoke_rustup_install_with_toolchain_fail
    installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_false
    installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_non_zero
    installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_true
    io::io_test::get_path_list_dirs_with_gitignore
    scriptengine::mod_test::invoke_duckscript_runner
    scriptengine::mod_test::invoke_rust_runner
    toolchain::toolchain_test::wrap_command_empty_args
    toolchain::toolchain_test::wrap_command_none_args
    toolchain::toolchain_test::wrap_command_with_args

test result: FAILED. 668 passed; 36 failed; 245 ignored; 0 measured; 0 filtered out; finished in 802.13s
```

Which seems like they are related to how guix handles sandboxing, the software passes demanding CI on upstream: https://github.com/sagiegurari/cargo-make/runs/4090012242?check_suite_focus=true

-- Jacob "Kreyren" Hrbek

Sent with ProtonMail Secure Email.

Attachment: cargo-make.patch
Description: Binary data

Attachment: publickey - kreyren@rixotstudio.cz - 0x1677DB82.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]