https://slatedb.io logo
Slow tests and timeouts - cargo-nextest https://n...
# general
c
Slow tests and timeouts - cargo-nextest https://nexte.st/docs/features/slow-tests/
n
Cannot recommend cargo-nextest enough
It is SO much better than the default test runner
The other option is to wrap tests in
tokio::time::timeout
manually but that's terribly error prone
c
Sold! Wanna PR? Else I can poke at it tomorrow
n
That's maybe the luckiest I've ever gotten with a GitHub Actions change 😂
c
🤣
r
thanks @nbenesch ! This looks like it dos what I was after (and more). Will this give us the thread stack traces as well? We use threads for some things (e.g. the compaction process) so it's still useful info
c
No, just logs
Ther'es a brief note at the bottom.. doesn't seem to be a good way to get stacks right now :/
Can we do
export RUST_BACKTRACE=1
?
If nextest does sigterm/sigkill, backtrace might give us what we want on term?
Hrm.. seems like no 😦
r
ah yeah I see. That's fine logs are super useful too.
I thought RUST_BACKTRACE was just for panics
c
Yea that's what i figured
^ Yea you're right..
We'd need to do a signal processor to catch the term and dump the stack..
Let's start with logs 😅
r
💯
c
@nbenesch is in fire.. already got the PR up for if not modified S3 😄
n
I got a little nerdsniped. Here's a PR that experiments with getting async backtraces when a test times out: https://github.com/slatedb/slatedb/pull/363
c
@nbenesch thx! Left a comment. Kinda feel we should skip it given how invasive it is.
Ah saw you commented
n
Half a year later but ... https://github.com/slatedb/slatedb/pull/363 is finally in what I think is a mergeable state
c
Merged!
thank's so much 🙂
Hope things are goin' well for you at Turbopuffer .. seems like you guys are cranking