Skip to content

Impossible to profile binary with exit status 1 #242

Open

Description

@beeb

My process exits with status 1, but I want to be able to profile its execution. codspeed exec fails in this case with:

Error: failed to execute the benchmark process: exit status: 1

It would be great to add a flag to allow non-zero exit codes, just like hyperfine does for example.

Activity

  1. GuillaumeLagrange commented on Feb 12, 2026

    @GuillaumeLagrange
    Contributor

    That would definitely be something we should do, thanks for the feedback!

  2. yaowubarbara commented on Apr 12, 2026

    @yaowubarbara

    I'd be happy to pick this up. Two quick design questions before I send a PR:

    1. Flag name — following hyperfine's convention cited above, my default would be -i / --ignore-failure. Any
      preference for a different naming?

    2. Scope — the cmd_status != 0 bail lives in src/executor/valgrind/measure.rs, and there's a symmetric
      !status.success() check in src/executor/wall_time/executor.rs. Would you like the flag to apply to both executors,
      or keep it scoped to codspeed exec only?

    Happy to open a draft PR first if you'd prefer to review the shape before I add tests.

  3. added a commit that references this issue on Apr 12, 2026
    82244cf
  4. yaowubarbara commented on Apr 12, 2026

    @yaowubarbara

    I've opened #286 as a draft to show the shape, happy to rename the flag or narrow the scope based on your preference before marking it ready.

  5. added a commit that references this issue on Apr 13, 2026
    51cffa2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions