Repository navigation
feat(client): count sleap-app and sleap-nn processes in session metrics - #510
Open
gitttt-1234 wants to merge 1 commit into
Open
gitttt-1234 wants to merge 1 commit into
gitttt-1234 wants to merge 1 commit into
Conversation
gitttt-1234
changed the base branch from
main
to
fix/tofu-backend-bucket-region
October 10, 2026 00:11
The process sampler only recognised SLEAP 1.x launch shapes, so the time-to-first label/train/track milestones never fired on sleap-app deployments. Map sleap-app's GUI binary to sleap-label, and sleap-nn train / predict / track to sleap-train / sleap-track. The canonical names, DB columns and summary are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gitttt-1234
force-pushed
the
feat/monitoring-sleap-app
branch
from
October 10, 2026 00:12
a275396 to
4eca856
Compare
gitttt-1234
marked this pull request as ready for review
October 10, 2026 00:44
This branch has not been deployed
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.
Summary
Session metrics' time-to-first-label/train/track milestones only recognise SLEAP 1.x processes (
sleap-label,sleap track …,python -m sleap.cli train …). On a sleap-app deployment they never fire. This maps sleap-app's processes onto the same canonical names:/proc/<pid>/cmdline)/usr/bin/sleap-app(GUI binary, from the.deb)sleap-label<uv python> ~/.local/bin/sleap-nn train …sleap-trainsleap-nn predict …(ortrackon sleap-nn < 0.2)sleap-trackThe DB columns, cohort summary, export and
process_allowlistdefault don't change. Removing a canonical name from the allowlist still turns off its sleap-app equivalent.How sleap-app launches these
From
talmolab/sleap-appmainat3010697:sleap-app.runTraining→run_python_command("sleap-nn", ["train", …])(src/platform/backend.ts).sleap-nn predicton sleap-nn ≥ 0.2, otherwisesleap-nn track(pickInferenceSubcommand).sleap-nn exportand the overlay/progress sidecars (<python> -u <script>) aren't milestones and don't match.The other session metrics need no changes for sleap-app:
<file> - SLEAP v<version>matches the defaultsleappattern..slpfiles are HDF5 with aframestable.<project>/models/<run>/, so**/models/**/training_log.csvfinds them.Testing
packages/client/tests/monitoring/samplers/test_processes.pyfor the GUI binary,sleap-nn trainlaunched via uv,predict/track, unknown subcommands, and allowlist handling.PYTHONPATH=src uv run pytestinpackages/client: 186 passed.ruff check packages/client: clean.🤖 Generated with Claude Code