Skip to content

Reduce EMI stress test iterations to prevent CI timeout #57

@avrabe

Description

@avrabe

Context

PR #53 eliminated the ISLE skip block, so every function now gets full 12-pass optimization. This dramatically increased the work done per EMI stress test iteration.

Problem

test_emi_stress_10000_iterations in loom-testing/tests/stress_test.rs now takes ~8 minutes locally and even longer on CI (Windows, Code Coverage). Rust's test harness emits "has been running for over 60 seconds" warnings on both Code Coverage and Windows CI jobs.

The test still passes — it's just much slower because more functions are being optimized per iteration.

Options

  1. Reduce iterations (10000 → 2000) — still statistically meaningful, much faster
  2. Add #[ignore] and run separately — keep the thorough test but don't gate CI on it
  3. Make iteration count configurable via env var (e.g., EMI_STRESS_ITERATIONS)
  4. Profile and optimize the hot path — the optimizer itself may have O(n²) behavior in some passes

Files

  • loom-testing/tests/stress_test.rs:226test_emi_stress_10000_iterations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions