cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
29.97k stars 3.79k forks source link

asim: enhance asim testing framework with randomized testing integration #106192

Open wenyihu6 opened 1 year ago

wenyihu6 commented 1 year ago

Currently, the allocator simulator assesses the allocator’s behavior under explicit and user-defined conditions. This could restrict the exposure of complex scenarios.

Issues: https://github.com/cockroachdb/cockroach/issues/106311

This issue tracks work that needs to be done to integrate randomness into the simulator framework, eliminating manual test setup and explicit assertions.

Future work:

Anticipated difficulties:

Some ideas to help alleviate these issues:

Potentially useful libraries:

Note that this issue just outlines potential project directions. Some ideas might be out of scope of this project.

Jira issue: CRDB-29441

wenyihu6 commented 1 year ago

Flushing some idea to add:

Idea that didn't make it: