Repository navigation
Fix flaky processing-screen test and close the deferred minors from the 3-D metrics and native 3-D files work - #145
Merged
Conversation
test_no_rebuild_after_shutdown failed about 1 run in 12. _hold_lane returned as soon as the holder was submitted; if shutdown() cancelled everything before the pool thread had started it, the holder was cancelled while still queued and reported 'cancelled' without ever holding the lane, so two tasks were cancelled and the test (which expects exactly the one dropped build) timed out waiting for len(cancelled) == 1. The helper now returns only once the holder runs. 0 failures in 150 runs afterwards. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
…iles) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
…rrors, refuse duplicate columns Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
…onsistent DeepLabCut 3-D wording Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
keep_animals warns when it drops a mismatched raw_z; the fuse() refusal names the missing pixel frame; identity-switch correction warns that z is not re-labelled; Session.pixel_size_known (unused) removed; t2d add names the unreadable native file; ProjectStore.add_session runs the native mixing/unit pre-check before listing when the folder's reader is detectable. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
A bare add cannot supply the required unit/fps, and a reader-less entry was counted as a pixel session by the project rules; refuse with NATIVE_3D_NEEDS_OPTIONS pointing to the scan/confirm step or t2d add. Design doc: new fuse refusal wording. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
…e project before listing Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
…log path too Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Two things on this branch.
1. Flaky test fix (
tests/test_ui/test_processing_screen.py::test_no_rebuild_after_shutdown, failed ~1 run in 12). The_hold_lanehelper returned as soon as its holder task was submitted. IfTaskRunner.shutdown()cancelled everything before the pool thread had started it, the holder was cancelled while still queued and reported "cancelled" without ever holding the lane, so two tasks were cancelled andwaitUntil(len(cancelled) == 1)timed out. The helper now returns only once the holder is running. Test-only; 0 failures in 150 runs afterwards.2. Deferred minor fixes from the reviews of the 3-D metrics (B2) and native 3-D files (A) work, executed from
docs/superpowers/plans/2026-10-11-deferred-minors.md. No metric value, exported file orproject_hashchanges for pixel, fused or existing native projects.keypointchoices are the union across scanned files; the DLC-3D reader has its own error codes (DLC3D_*) and "DeepLabCut 3-D" wording instead of borrowing the 2-D reader's; a duplicate DLC-3D column is refused; consistent naming.keep_animalswarns when it drops a mismatchedraw_z; thefuse()refusal names the real condition; identity-switch correction warns when a session with z has several animals; the unusedSession.pixel_size_knownis removed;t2d addnames the unreadable file;add_sessionrefuses a bare native folder up front (NATIVE_3D_NEEDS_OPTIONS, since a native file needsunitandfpsand a bare add could never read it) and keeps the pre-probe mixing check for pixel folders in a native project.t2d list-metricshas a footer pointing tot2d validate;t2d add --yesprints acheck:line for proposed options such asunit=mm;docs/METRICS_SPEC.mddocuments the native-project unavailability of IL-3/IL-9/IL-10/IL-14 and the group metrics.Not included, on purpose: counting a gap separator row as a frame (GL-1/GL-16; changes 2-D numbers), the
body_length_cmzero-length convention, IL-17's per-bin vertical-speed estimate, the Anipose real-sample contract case (fixture unreachable), and regenerating guide screenshots.Test plan
4359 passed, 191 skipped(Task 2) and4367 passed, 191 skipped(Task 3),QT_QPA_PLATFORM=offscreen pytest -q -W error::RuntimeWarning.ruff check .and mypy (CI versions) clean.Checklist
ruff check .passesdocs/METRICS_SPEC.md)CHANGELOG.mdentry under[Unreleased]🤖 Generated with Claude Code
https://claude.ai/code/session_01QXpnhJcJvaj5BxqfESMHNp