Skip to content

nanobind: extremely rare test failure on macos only #24880

Description

@rpoyner-tri

What happened?

First seen in CI: https://drake-cdash.csail.mit.edu/tests/2201738892

The //bindings/pydrake/geometry:alt_binder/common_test fails, with some very rare frequency, perhaps 1% and in some circumstances, lower.

Only ever observed on macos, both Sequoia and Tahoe machines can exhibit the problem.

History bisect indicates that this failure has been around for as long as running that test with nanobind has been working at all. That means at least since merge of PR #24837. That PR doesn't appear to me to be related at all.

The sampling that seems to find failures ever is over separate invocations/processes running the test. It doesn't seem that repeating the vulnerable tests in a healthy process has much chance of increasing failure rate.

Version

v1.55.0 plus current master

What operating system are you using?

macOS 26 (Tahoe)

What installation option are you using?

compiled from source code using Bazel

Relevant log output

======================================================================
FAIL [0.012s]: test_proximity_properties (common_test.TestGeometryCore.test_proximity_properties)
Tests the utility functions (not related to hydroelastic contact) for
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/ricopoyner/Library/Caches/bazel/_bazel_ricopoyner/27b47a6d9b400570878eb2115555e985/sandbox/darwin-sandbox/22438/execroot/_main/bazel-out/darwin_arm64-dbg/bin/bindings/pydrake/geometry/alt_binder/common_test/common_test.runfiles/_main/bindings/pydrake/geometry/test/common_test.py", line 521, in test_proximity_properties
    self.assertEqual(
    ~~~~~~~~~~~~~~~~^
        props.GetProperty("hydroelastic", "resolution_hint"), res_hint
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: <pydrake.multibody.plant.CoulombFriction object at 0x1096a7400> != 0.175

----------------------------------------------------------------------
Ran 16 tests in 0.019s

FAILED (failures=1, skipped=14)

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions