spin
spin copied to clipboard
Test Failures After Running `nix develop` and `make test`
Description:
After running nix develop
followed by make test
, the test suite encountered several failures. The errors seem to be related to the failure of services to spawn during the test environment boot process. The common error is "No such file or directory (os error 2)."
Steps to Reproduce:
- Execute the following commands:
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz -p rust git clone https://github.com/fermyon/spin.git direnv allow nix develop ## not required cargo build export PATH=$PWD/target/debug:$PATH make test
Test Failures:
Test Report Details
-
integration_tests::test_outbound_post
:Error: Test failed to run: failed to boot test environment Caused by: failed to start services Caused by: service failed to spawn Caused by: No such file or directory (os error 2)
-
integration_tests::test_wasi_http_0_2_0
:Error: Test failed to run: failed to boot test environment Caused by: failed to start services Caused by: service failed to spawn Caused by: No such file or directory (os error 2)
-
integration_tests::test_wasi_http_rc_11_10
:Error: Test failed to run: failed to boot test environment Caused by: failed to start services Caused by: service failed to spawn Caused by: No such file or directory (os error 2)
-
integration_tests::test_wasi_http_hash_all
:Error: Test failed to run: failed to boot test environment Caused by: failed to start services Caused by: service failed to spawn Caused by: No such file or directory (os error 2)
-
integration_tests::test_spin_plugin_install_command
:Error: 'cd "/tmp/t1b33e-11" && CARGO_TARGET_DIR="/tmp/t1b33e-11/target" TEST_PLUGINS_DIRECTORY="./plugins" "/home/xyz/developments/spin-ws/spin/target/release/spin" "example"' failed with status code Some(1) stdout: stderr: Error: No such file or directory (os error 2)
-
integration_tests::test_cloud_plugin_autoinstall
:Error: 'cd "/tmp/t1b33e-b" && CARGO_TARGET_DIR="/tmp/t1b33e-b/target" TEST_PLUGINS_DIRECTORY="./plugins" "/home/xyz/developments/spin-ws/spin/target/release/spin" "login" "--help"' failed with status code Some(1) stdout: The `cloud` plugin is required. Installing now. Plugin 'cloud' was installed successfully! stderr: Error: No such file or directory (os error 2)
Environment:
- Operating System: nixos
-
spin
version: spin 2.2.0 - Dependencies: rust
Reference
- https://developer.fermyon.com/spin/v2/contributing-spin
Originally posted by @byteshiva in https://github.com/fermyon/spin/issues/2337#issuecomment-1986803019