Skip to content

Test Failures After Running nix develop and make test #2338

Closed
@byteshiva

Description

@byteshiva

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:

  1. 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

  1. 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)
    
  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)
    
  3. 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)
    
  4. 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)
    
  5. 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)
    
  6. 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

Originally posted by @byteshiva in #2337 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions