quickwit-oss / quickwit-oss/quickwit
Improve accelerated_time
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 11.7k
- Forks
- 597
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 37
Description
We now have some Scheduler object in quickwit-actors that is helpful to simulate time.
It is not really dependent on actors and could actually be useful for anyone trying to mock time in a more powerful way than what tokio's test-utils offers:
- does not just jump and trigger everything at once
- triggered events are ordered in a specific order
- has some mechanism to prevent jump in time to give time for prcessing
- works cross runtime
- works with blocking code too
The name is lame and will rapidly be confusing.
TimeManager? TimeSource?
We might also want to add more methods to match what time offers.
For instance offers .now(), and maybe even utc_now() -> OffsetDateTime.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the accelerated_time implementation and Scheduler object in quickwit-actors, then compare their behavior with Tokio test-utils and the time API mentioned in the issue. Done should include an agreed name and scope for a reusable cross-runtime time utility, including only the additional methods and behaviors selected for implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100