Skip to content

[MRESOLVER-674] Derandomize GenericVersionTest.testCompareUuidRandomย #1350

Closed

Description

@jira-importer

Elliotte Rusty Harold opened MRESOLVER-674 and commented

Using random in tests makes test non-reproducible


No further details from MRESOLVER-674

Activity

  1. added
    enhancementNew feature or request
    priority:minorMinor loss of function, or other problem where easy workaround is present
    on Jun 13, 2025
  2. kharea970 commented on Aug 10, 2025

    @kharea970
  3. slachiewicz commented on Sep 1, 2026

    @slachiewicz
    Member

    Analysis & Triage

    • Problem Identified: GenericVersionTest.testCompareUuidRandom generates 2,048 unseeded UUID.randomUUID() strings per test run, leading to non-deterministic test runs and potential flakiness in CI environments.
    • Affected Versions: Both 1.9.x and 2.0.x.
    • Plan to Fix:
      1. Seed the Random instance with a fixed seed (0x5EEDCAFEL) to ensure 100% reproducible test runs across all platforms.
      2. Verify ordering and sorting assertions against fixed pseudo-random sequences. (Targeted for 2.0.24 in PR Fix listener error swallowing (#1990), SyncContext double-close (#1992), and test flakiness (#1350)ย #2108)
  4. modified the milestone: on Sep 1, 2026
  5. added a commit that references this issue on Sep 4, 2026
  6. added a commit that references this issue on Sep 8, 2026
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

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions