Repository navigation
Template 0.1.43: installers use LabConstrictor-Tools v0.3.0-alpha.5 - #67
Merged
Merged
Conversation
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
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.
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_PINinapp/bash_bat_scripts/post_install.shandpost_install.batmoves fromv0.3.0-alpha.4tov0.3.0-alpha.5, only when the line still holds exactly the old template value. Line endings are kept (the .bat stays CRLF).Changes in the template
app/bash_bat_scripts/post_install.sh/.bat: the pin is nowv0.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_43puts the 0.1.42 pin back.before_0_1_42now calls it first, so older tests keep seeing what they saw.test_template_sync_0_1_34.pynow reads the live files throughbefore_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 passedruff check .template_sync .tools/python tests: All checks passed!python -m mypy .template_sync .tools/python tests: Success: no issues found in 122 source filesGenerated by Claude Code