Comments (6)
@sh-ad
Hi!
Technically, you can write your own ScenarioGenerator
, but I agree that it is not an easy and enjoyable code.
Instead of just binding a thread we probably want a more general scenario specification.
Do you have any ideas on how the scenario should be configured?
For example, we can try to add a type-safe builder for Kotlin that looks like
options.scenario {
thread {
actorsPerThread(3)
operations(TestSet::isEmpty)
}
repeat(3) {
thread() // just a default thread
}
}
from lincheck.
@alefedor
Thank you, I wrote my own generator that solves the problem.
Did I get the idea right, to make it possible to configure each individual thread through the builder?
from lincheck.
@sh-ad
Yes, you are right. The idea is to choose the types and the number of operations in each thread
from lincheck.
@alefedor
I will try to implement this idea.
Is the implementation details better discussed here or elsewhere?
from lincheck.
@sh-ad
That's great that you want to implement this. Thank you!
Is the implementation details better discussed here or elsewhere?
How about telegram?
Telegram: @Alehard
from lincheck.
Summary:
- It seems interesting to add functionality that would allow you to configure scenario generation in more detail, right down to the level of operations.
- Create a separate issue with a description of this
- Collect usage cases there
from lincheck.
Related Issues (20)
- Not All Threads are Started During Invocation HOT 2
- Reporting lincheck bug HOT 2
- Testing blocking operations HOT 10
- Add validation function internals to a trace in case it's failed
- Refactor validation function containers to get rid of using Actor as a wrapper of a validation method HOT 2
- Allow at most one validation function to be declared
- Add actor results to trace in case of any failure
- Model checking deadlock HOT 5
- Create real-world benchmarks
- Support for IntelliJ IDEA plugin
- Coverage support
- Test on different VMs HOT 1
- Try to optimize the runner utilizing virtual threads
- New model checker
- Propagate `Error`s when catching exceptions
- Plan the work on the new API
- Track coroutine events in arbitrary code HOT 2
- Validate that virtual threads are supported
- JVM 21 support HOT 2
- NullPointerException: Parameter specified as non-null is null: 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 lincheck.