Skip to content

Flaky test: test_spawn_with_safe_arguments fails sporadically on Windows #239

Description

@logbie

Bug Description

The test test_spawn_with_safe_arguments in tests\subprocess_security_test.rs is failing sporadically with the error "Output should contain expected text".

Error Details

thread 'test_spawn_with_safe_arguments' (10228) panicked at tests\subprocess_security_test.rs:204:5:
Output should contain expected text
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    test_spawn_with_safe_arguments

test result: FAILED. 9 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.34s

error: test failed, to rerun pass `--test subprocess_security_test`

Environment

  • WFL Version: 26.1.17
  • Operating System: Windows 11
  • Failure Pattern: Sporadic (intermittent failures)

Impact

This flaky test can cause CI/CD pipelines to fail intermittently and creates uncertainty about the actual health of the codebase. The test appears to be related to subprocess security functionality, so ensuring its reliability is important for validating WFL's security features.

Suggested Investigation

  1. Add more detailed logging to understand what output is being produced vs. expected
  2. Check for timing-related issues in subprocess spawning on Windows
  3. Consider adding retry logic or more robust output validation
  4. Run with RUST_BACKTRACE=1 to get more debugging information

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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