Skip to content

test: extent_parity proptests can trip proptest's float range assertion (Windows merge group) #1951

Closed

Description

@rdoupe

scene::extent_parity::random_boxes_match_oracle (from #1922) can panic inside proptest before it reaches the code under test. It did on Windows in the merge group for #1929, which ejected #1929 from the queue (reported on #1922):

panicked at proptest-1.11.0/src/num/float_samplers.rs:466:1:
assertion failed: self.low - result < self.intervals.step

The stack goes through Range<f32>::new_tree inside the prop_oneof![-f32::MAX..-1.0e30f32, 1.0e30f32..f32::MAX] arm of entry(). Proptest's float sampler checks its first interval split with a debug_assert!, and a range that wide can overshoot that check. It is rare: 6 million samples of that strategy in a local debug build did not trip it. random_matrices_match_oracle uses the same entry().

Fix: draw that arm from the bit patterns of 1e30 up to f32::MAX, with a random sign. Positive floats order like their bits, so it produces the same set of values without a float range.

Activity

  1. rdoupe commented on Oct 23, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #1951 (our test from #1922).

  2. added
    claimed
    on Oct 23, 2026
  3. added 2 commits that reference this issue on Oct 23, 2026
    af0273e
    589a414
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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions