Skip to content

Add --verbose-errors flag to joshua tail for actionable test failure reproduction #128

Description

@munozr1

Currently, when joshua tests fail, the error output is not actionable. Users see "exit status 1" or raw XML traces without clear information about:

  • Which specific test failed
  • What random seed triggered the failure
  • How to reproduce the failure locally

solution

Add a --verbose-errors flag to joshua tail that:

  1. Scans stored trace logs for error events (Severity >= 40)
  2. Extracts the TestFile and RandomSeed from the trace
  3. Prints a formatted reproduction command alongside error details

Proposed behavior (joshua tail --verbose-errors):

[ERROR] Test: tests/fast/SimpleAtomicAdd.toml
Seed: 1424533409
Severity: 40
Error: Assertion failed in atomicOps.actor.cpp:142

Reproduce with:
./bin/fdbserver -r simulation -f tests/fast/SimpleAtomicAdd.toml -s 1424533409 -b on

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