awslabs / awslabs/shuttle

Suppress `generator` error on panic

Open
#48 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.1k
Forks
59
Avg merge
4d 2h
Merged PRs (30d)
15

Description

When a thread panics in a Shuttle test, [`generator` produces an error](https://github.com/Xudong-Huang/generator-rs/blob/master/src/gen_impl.rs#L558) that gets printed to stdout via `tracing`. This error is a red herring: it mentions `generator::gen_impl` and so suggests that maybe something went wrong in that code, when really it's just that a Shuttle thread panicked and that panic is being propagated. It would be nice to suppress this error so we don't lead users down the wrong debugging path.

Contributor guide

Open the contributing guide

Research direction

Start by reading generator-rs's src/gen_impl.rs around line 558, then trace how Shuttle propagates a panic from a test thread and emits the tracing error. Done means the expected generator error is no longer printed for Shuttle thread panics, without hiding unrelated errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.