Skip to content

Opener acceptance-timeout test fails whenever the mobile tests run beside it #654

Closed

Description

@yansfil

What fails

hided/tests/opener_lifecycle.rs acceptance_timeout_ends_cli_spawned_before_watcher fails on macOS (arm64) whenever the mobile test binary runs beside it:

panicked at hided/tests/opener_lifecycle.rs:154:9:
fake helper never wrote its pid

Reproduction (deterministic here)

bash scripts/verify-cargo.sh nextest -p hided --no-fail-fast -E 'binary(mobile) | binary(opener_lifecycle)'
  • main at b520d6e: fails 2 of 2.
  • nextest -p hided (whole crate): fails 3 of 3.
  • nextest --workspace (default profile): fails 2 of 2; the ci profile passes it on its retry and reports it FLAKY.
  • opener_lifecycle alone: passes 10 of 10.
  • opener_lifecycle paired with each other hided binary (lib and bins, browser_control, connect_build, connect_stop, handshake, real_herdr): passes; only mobile triggers it.

What is known

In this test the owner spawns the --open-helper supervisor with HIDE_OPEN_HELPER_TEST_PAUSE_MS=3000, so the 2-second acceptance read times out and OwnedOpener::stop ends the supervisor's group.
The test expects the fake helper (the test binary re-run through sh) to have written its pid before that, and waits 20 s for it; with mobile running, it never appears.
mobile starts in-process daemons with hided::start_daemon and kills nothing itself, so the interaction is not yet explained: whether the helper is slower to start than 2 s while those daemons start, or something ends it earlier, is the open question.
Do not fix it with a longer acceptance window or wait.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions