Comments (2)
Yeah, I've had a similar experience with large failures being very unwieldy and failing to deserialize when replaying, but never had a chance to track it down.
Have you tried configuring the test to persist failures directly to a file, and then replaying from that? Something like this:
let scheduler = shuttle::scheduler::RandomScheduler::new(1000);
let config = shuttle::Config {
failure_persistence: shuttle::FailurePersistence::File(None),
..Default::default()
};
let runner = shuttle::Runner::new(scheduler, config);
runner.run(|| my_test());
That might at least behave a little better.
Your second problem sounds like a potential non-determinism issue, but without being able to reliably replay the original failure it's tricky to be sure.
from shuttle.
I think you're right that the second issue was just non-determinism: I accidentally was using real rand
instead of shuttle::rand
somewhere else at that commit.
from shuttle.
Related Issues (20)
- Failing schedule missing in output HOT 1
- Fix tracing spans
- "panicked while panicking" issues when drop handlers run concurrent code HOT 1
- `Once` breaks if moved HOT 1
- Rayon support HOT 1
- [TRACING] Improved testing of tracing functionality
- [TRACING] Add test which would catch the linked panic
- Use of Shuttle for Rust async and #[tokio::main] HOT 1
- Implement thread::scope HOT 2
- Run native blocking code
- Replace Condvar epochs with clocks
- Suppress `generator` error on panic HOT 2
- Release a new version? HOT 1
- Provide more useful feedback for deadlocks HOT 2
- `wait_timeout` and friends shouldn't count as deadlocking
- Implement thread park(), unpark(), and panicking() HOT 1
- Is shuttle planning to support fork mode?
- shuttle::thread_local isn't dropped when threads exit the scheduler HOT 4
- Make `future::JoinHandle::abort` actually cancel task HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shuttle.