Skip to content

RaceTracker memory allocation test is flaky on hosted CI #69

Backlog

Description

@ReubenBond

Summary

RaceTrackerMemoryTests.EachLinkAllocatesTheSameAndRetainedHeapIsFlat failed in the repeated race exploration corpus on hosted Linux CI while the same namespace suite passed locally three consecutive times.

Failure

Run: https://github.com/ReubenBond/Clockwork/actions/runs/44232515690

Assert.InRange() Failure: Value not in range
Range:  (0 - 151304)
Actual: 325552
at Orleans.Testing.Simulation.Runtime.Tests.Racing.RaceTrackerMemoryTests.EachLinkAllocatesTheSameAndRetainedHeapIsFlat()

The job ran:

dotnet run --project tests/Clockwork.Runtime.Tests/Clockwork.Runtime.Tests.csproj --configuration Release --no-build -- --timeout 60s --filter-namespace Orleans.Testing.Simulation.Runtime.Tests.Racing

Local evidence

The same command passed three consecutive runs locally, 211/211 each time. The full Release runtime suite also passed 1204/1204.

Expected

The allocation/retained-heap assertion should be stable across supported hosted CI environments, or the test should isolate and account for runtime/runner allocation noise without weakening the intended bounded-memory regression contract.

Activity

  1. ReubenBond commented on Nov 23, 2026

    @ReubenBond
    OwnerAuthor

    Recurred on #80 (unrelated change): https://github.com/ReubenBond/Clockwork/actions/runs/45092858835/job/137426102425 — EachLinkAllocatesTheSameAndRetainedHeapIsFlat, Range (0 - 151304), Actual 325528, in the 'Repeat race exploration corpus' step.

  2. ReubenBond commented on Nov 23, 2026

    @ReubenBond
    OwnerAuthor

    Also on #80, rerun 3 (https://github.com/ReubenBond/Clockwork/actions/runs/45092858835/job/137429319038): SteadyAccessesAllocateNothingAndLockSectionsOnlyTheirHeldLockIds — Expected 0, Actual 6.152 bytes per access. The first rerun failed EachLinkAllocatesTheSameAndRetainedHeapIsFlat again with exactly 325528.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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