Skip to content

fix: add seed support and interval validation to synthetic event generator#167

Open
Deepthit-23 wants to merge 4 commits into
Devnil434:mainfrom
Deepthit-23:fix-synthetic-event-generator
Open

fix: add seed support and interval validation to synthetic event generator#167
Deepthit-23 wants to merge 4 commits into
Devnil434:mainfrom
Deepthit-23:fix-synthetic-event-generator

Conversation

@Deepthit-23

Copy link
Copy Markdown
Contributor

Description

Addresses the missing seed functionality and validation of interval seconds in the synthetic event generator.

Changes

  • Updated generate_event and generate_events in utils/synthetic_event_generator.py to accept an optional seed parameter and set the random seed.
  • Added verification to raise a ValueError if interval_seconds <= 0 in generate_events.

Verification

Ran pytest tests/test_synthetic_event_generator.py and verified all tests pass successfully.

Closes #162

@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Deepthit-23, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 34 minutes and 49 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 878729be-e2e7-4887-b92c-fe2729e58642

📥 Commits

Reviewing files that changed from the base of the PR and between 3429ec9 and fe9a836.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • pyproject.toml
  • services/detection/requirements.txt
  • utils/synthetic_event_generator.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

[Bug]: Synthetic event generator fails seed and validation tests

1 participant