Skip to content

ingestion-client: add stress tests#4911

Open
muhamadazmy wants to merge 2 commits into
mainfrom
pr4911
Open

ingestion-client: add stress tests#4911
muhamadazmy wants to merge 2 commits into
mainfrom
pr4911

Conversation

@muhamadazmy

@muhamadazmy muhamadazmy commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary:
The tests are ignored by default but can be ran manually
like

INGEST_STRESS_RECORDS=5000000 cargo nextest run -p restate-ingestion-client --run-ignored all ingest_exactly_once_under_leadership_churn

Stack created with Sapling. Best reviewed with ReviewStack.

@muhamadazmy muhamadazmy marked this pull request as ready for review June 10, 2026 16:50

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a15c9f65bf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


use bytes::{Buf, BufMut, Bytes, BytesMut};
use futures::{StreamExt, stream::FuturesUnordered};
use rand::{Rng, SeedableRng, rngs::SmallRng};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Enable rand's small_rng feature

Building this package's test targets now pulls in stress_test.rs, but this import uses rand::rngs::SmallRng while the new dev-dependency is declared only as rand = { workspace = true } in crates/ingestion-client/Cargo.toml:32, and the workspace dependency is a plain rand = "0.9.3" in Cargo.toml:224. SmallRng is gated behind rand's small_rng feature, so the ignored stress test cannot be compiled or run until that feature is enabled here or a default-enabled RNG is used.

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

Test Results

  8 files  ±0    8 suites  ±0   4m 47s ⏱️ -16s
 60 tests ±0   60 ✅ ±0  0 💤 ±0  0 ❌ ±0 
267 runs  ±0  267 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit e57ff93. ± Comparison against base commit a1a540e.

♻️ This comment has been updated with latest results.

Summary:
This to make sure RPC related error or un handled status are visible
in the logs
Summary:
The tests are ignored by default but can be ran manually
like

```
INGEST_STRESS_RECORDS=5000000 cargo nextest run -p restate-ingestion-client --run-ignored all ingest_exactly_once_under_leadership_churn
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant