Skip to content

Extend sleap-rtc doctor With Worker Pre-Flight Checks#71

Merged
alicup29 merged 1 commit intomainfrom
amick/0.0.6-version-precheck
Mar 23, 2026
Merged

Extend sleap-rtc doctor With Worker Pre-Flight Checks#71
alicup29 merged 1 commit intomainfrom
amick/0.0.6-version-precheck

Conversation

@alicup29
Copy link
Copy Markdown
Collaborator

Summary

  • Account key check — shows whether an account key is found, its source (env var or credentials file), and fix instructions if missing
  • GPU check — detects GPU via PyTorch CUDA, shows model, memory, and CUDA version using WorkerCapabilities. Warns but doesn't fail if unavailable.
  • Training dependencies — checks sleap-nn import and version
  • Data mounts & working directory — validates that configured mount paths and working directory exist on disk

Motivation

Workers are now deployable on GPU clusters via Docker (PR #70). Before starting a worker, users need a quick way to verify their setup is correct — is the account key set? Is the GPU detected? Are the data mounts accessible? The existing sleap-rtc doctor command checked Python, dependencies, network, and credentials, but missed these worker-specific checks. This PR fills that gap so users can run sleap-rtc doctor inside a container or on a remote machine and immediately see what's working and what needs fixing.

Test plan

  • 6 new tests in tests/test_doctor.py — all passing
  • Full test suite: 852 passed, 0 failed
  • Manual: run sleap-rtc doctor on a GPU machine and verify output

🤖 Generated with Claude Code

…p-nn checks

Add four new diagnostic checks to the existing doctor command:

- Account key: shows key source (env var or credentials file) with
  fix instructions if missing
- GPU: detects via torch.cuda, shows model/memory/CUDA version from
  WorkerCapabilities. Warns (no fail) if unavailable.
- Training dependencies: checks sleap-nn import and version
- Data mounts & working directory: validates configured mount paths
  and working directory exist on disk

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alicup29 alicup29 changed the title Extend sleap-rtc doctor with worker pre-flight checks Extend sleap-rtc doctor With Worker Pre-Flight Checks Mar 23, 2026
@alicup29 alicup29 merged commit 66031f4 into main Mar 23, 2026
6 checks passed
@alicup29 alicup29 deleted the amick/0.0.6-version-precheck branch March 23, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant