Skip to content

Template 0.1.43: installers use LabConstrictor-Tools v0.3.0-alpha.5 - #67

Merged
guijacquemet merged 1 commit into
mainfrom
claude/tools-pin-alpha-5
Dec 2, 2026
Merged

guijacquemet merged 1 commit into
mainfrom
claude/tools-pin-alpha-5

Conversation

@guijacquemet

Copy link
Copy Markdown
Collaborator

Template 0.1.43. The only change: app installers install LabConstrictor-Tools v0.3.0-alpha.5 instead of v0.3.0-alpha.4.

Why

Tools v0.3.0-alpha.5 (CellMigrationLab/LabConstrictor-Tools#172) makes the tool worker leave within 3 s after the host closes its stdin, also when a tool's library left a non-daemon thread running (PyTorch Lightning, CUDA). Before this, Fiji waited 10 s after every run and then killed the worker (exit 137), so every Fiji run of LabConstrictor-CAREamics on a GPU took 10 s longer.

What the migration does to an app (v0_1_42_to_v0_1_43.py)

Same approach as the 0.1.34 migration:

  • LC_TOOLS_PIN in app/bash_bat_scripts/post_install.sh and post_install.bat moves from v0.3.0-alpha.4 to v0.3.0-alpha.5, only when the line still holds exactly the old template value. Line endings are kept (the .bat stays CRLF).
  • An app with its own pin, a script with no pin line or several pin lines, or a script without the Tools hook is left as it is, and the sync log says why. A missing file is not created. Running it again changes nothing.
  • The new pin reaches users with the app's next release.

Changes in the template

  • app/bash_bat_scripts/post_install.sh / .bat: the pin is now v0.3.0-alpha.5. These are the only live places that name the pinned tag; older migration docstrings and frozen resources still name it as before.
  • .template_sync/manifest.yaml: template_version: 0.1.43, with the new migration entry.
  • .tools/docs/migration_0_1_43.md: design note (not listed in .tools/docs/README.md).
  • tests/test_template_sync_0_1_43.py: tests of the migration.
  • tests/_v0_1_43.py: before_0_1_43 puts the 0.1.42 pin back. before_0_1_42 now calls it first, so older tests keep seeing what they saw. test_template_sync_0_1_34.py now reads the live files through before_0_1_35.

Merge after LabConstrictor-Tools v0.3.0-alpha.5 is published.

Tests (Python 3.11, CI's pinned versions)

  • python -m pytest tests -q: 595 passed, 1606 subtests passed
  • ruff check .template_sync .tools/python tests: All checks passed!
  • python -m mypy .template_sync .tools/python tests: Success: no issues found in 122 source files

Generated by Claude Code

Tools v0.3.0-alpha.5 (LabConstrictor-Tools #172) makes the tool worker
leave within 3 s after the host closes its stdin, also when a tool's
library left a non-daemon thread running (PyTorch Lightning, CUDA).
Before, Fiji waited 10 s after every run and then killed the worker.

The migration v0_1_42_to_v0_1_43 moves LC_TOOLS_PIN in post_install.sh
and post_install.bat from v0.3.0-alpha.4 to v0.3.0-alpha.5 only where
the line still holds the old template value. tests/_v0_1_43.py gives
older tests the 0.1.42 pin (before_0_1_42 calls it first).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp98bPNSUhQXHiLUjA8h
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.

2 participants