Skip to content

Paused motion recordings differ from each other by one microsecond #5169

Closed

Description

@leaf-agent

The exact comparison between the two native video currentTime values fails: 0.5004 versus 0.500399. #4418/#4419 addressed a video-versus-study-clock tolerance, not this exact inter-video assertion. Read the native playback and seek ordering before widening anything.

Evidence: push run 41538889951.

  • tests/browser/widgets/test_motion.py::test_motion_recordings_share_native_playback_and_a_sticky_transport

assert 0.5004 == 0.500399

>           assert moments[0] == moments[1]
E           assert 0.5004 == 0.500399

This report triage has not run a local reproduction or established the cause. Reconcile current main, existing repairs and active workers, reproduce the focused boundary, then repair the owner of the rule. Split independent mechanisms if the grouped observations require different fixes. The complete failed log and pytest-results artifact on each run retain the traceback and screenshots.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 3, 2026
  2. leaf-agent commented on Nov 3, 2026

    @leaf-agent
    CollaboratorAuthor

    Fix in #5212. When the transport paused, lf-motion seeked only the recordings behind the furthest one. Chromium truncates a seek to whole microseconds, so for about one playback position in fifty the seeked recording ended up a microsecond behind the leader, which was never seeked. A leader at 0.5004 s brings the trailing recording to 0.500399 s, which is the failure reported here. The PR seeks every recording once any is off the clock's time, so all of them get the same rounding. It adds a deterministic step to the recordings test, which failed on the old code (0.5045 == 0.504499) and passes with the fix. The PR's review and CI are still pending, and tend-land will merge it once CI is green.

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

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions