Skip to content

An exec step cannot start a helper process that outlives the step #149

Done

Description

@bitomule

What happens

exec: { cmd: "start-proxy.sh" }, where the script backgrounds mitmdump with nohup … &, leaves no running proxy: the process group is killed when the step ends. #121 made that on purpose. There is no supported way for a flow to start a helper (mock server, proxy, log tailer) and stop it at the end of the run.

Use case

A flow that starts a mock backend, opens the app, runs, and stops the mock, all inside one mav run with failure-safe cleanup.

Proposal

One of:

  • exec: { cmd: …, background: true, name: mock } plus exec.stop: { name: mock }, with mav killing anything still running at the end of the run, also on failure.
  • A services: block in the flow or the config with start/stop commands, tied to the run lifecycle like fixtures.

Found while porting the end-to-end flows of a large UIKit + SwiftUI iOS app to mav flows.
Environment: mav 0.35.0 (darwin-arm64 release), AXe 2.0.4, baguette 0.2.12, idb_companion 1.1.8 (refused by mav doctor, floor 1.6.4), Xcode 26.4, iOS 26.4 simulator (23E244), iPhone 17 Pro, macOS 26.6.2, Apple Silicon. Debug simulator build of the app.

Activity

  1. added 4 commits that reference this issue on Dec 2, 2026
    10bc1c2
    c767172
    cc2fb9d
    f20212a
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