quickwit-oss / quickwit-oss/quickwit

Improve accelerated_time

Open
#2,642 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.