Skip to content

fix(event): skip rotating native stress under loom feature - #1874

Closed
lavkushry wants to merge 1 commit into
mainfrom
fix/event-rotating-skip-under-loom
Closed

fix(event): skip rotating native stress under loom feature#1874
lavkushry wants to merge 1 commit into
mainfrom
fix/event-rotating-skip-under-loom

Conversation

@lavkushry

Copy link
Copy Markdown
Owner

Summary

Fixes CI job Event primitives native + Loom after ADR-0010 rotating stress landed.

  • cargo test -p aegis-event --all-features (and loom-enabled builds) compile RotatingAdmissionChannel with Loom atomics.
  • Integration tests in lib/event/tests/rotating.rs use native std::thread outside loom::model, which panics: cannot access Loom execution state from outside a Loom model.
  • Gate the file with #![cfg(not(feature = "loom"))] — same pattern as admission.rs, published_slab.rs, spsc.rs.
  • Unit loom_rotating_boundary_is_lossless_and_in_order remains the Loom model; native/sanitizer lanes still run the cross-thread stress tests.

Test plan

  • cargo test -p aegis-event --test rotating (2 pass)
  • cargo test -p aegis-event --all-features (exit 0; rotating harness runs 0 tests under loom)
  • cargo test -p aegis-event --features loom loom_ (exit 0)

Related

RotatingAdmissionChannel uses Loom atomics when --features loom is on;
std::thread stress in tests/rotating.rs must not run outside loom::model.
Gate the integration file with cfg(not(feature = "loom")), matching
admission/published_slab/spsc, so all-features CI stays green while
native and sanitizer lanes still exercise the stress suite.
Copilot AI review requested due to automatic review settings July 14, 2026 16:10

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@lavkushry, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 53 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

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 reviews.

How do review limits work?

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

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, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0445116c-3829-4c4e-9629-27f08339431c

📥 Commits

Reviewing files that changed from the base of the PR and between 65b3bad and 09fd056.

📒 Files selected for processing (1)
  • lib/event/tests/rotating.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/event-rotating-skip-under-loom

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.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request disables the rotating.rs integration tests when the loom feature is enabled by adding the `#![cfg(not(feature =

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@lavkushry

Copy link
Copy Markdown
Owner Author

Superseded by #1875 (includes this Loom cfg(not(feature = "loom")) gate plus ADR-0010 in-place pool rebind). Closing in favor of that PR.

@lavkushry

Copy link
Copy Markdown
Owner Author

Superseded by #1875 (Loom gate + in-place pool rebind).

@lavkushry lavkushry closed this Jul 14, 2026
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.

2 participants