letify 2.10.6__tar.gz → 2.10.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {letify-2.10.6 → letify-2.10.8}/PKG-INFO +1 -1
- {letify-2.10.6 → letify-2.10.8}/docs/SPEC.md +22 -2
- {letify-2.10.6 → letify-2.10.8}/docs/guide/07-troubleshooting.md +2 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/ko/07-/353/254/270/354/240/234-/355/225/264/352/262/260.md +2 -0
- {letify-2.10.6 → letify-2.10.8}/letify/__init__.py +1 -1
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/channel.py +28 -0
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/lease.py +16 -3
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/pool.py +5 -0
- letify-2.10.8/letify/runtime/reattach.py +177 -0
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/session.py +18 -2
- {letify-2.10.6 → letify-2.10.8}/letify/store/pathdata.py +8 -0
- {letify-2.10.6 → letify-2.10.8}/letify/tools.py +3 -2
- {letify-2.10.6 → letify-2.10.8}/letify-core/Cargo.lock +2 -2
- {letify-2.10.6 → letify-2.10.8}/letify-core/Cargo.toml +1 -1
- {letify-2.10.6 → letify-2.10.8}/letify-ext/package-lock.json +2 -2
- {letify-2.10.6 → letify-2.10.8}/letify-ext/package.json +1 -1
- {letify-2.10.6 → letify-2.10.8}/pyproject.toml +1 -1
- {letify-2.10.6 → letify-2.10.8}/tests/test_providers.py +17 -0
- letify-2.10.8/tests/test_run_reattach.py +308 -0
- {letify-2.10.6 → letify-2.10.8}/.github/workflows/ci.yml +0 -0
- {letify-2.10.6 → letify-2.10.8}/.github/workflows/docs.yml +0 -0
- {letify-2.10.6 → letify-2.10.8}/.github/workflows/publish-crates.yml +0 -0
- {letify-2.10.6 → letify-2.10.8}/.github/workflows/publish.yml +0 -0
- {letify-2.10.6 → letify-2.10.8}/.github/workflows/reserve-crates.yml +0 -0
- {letify-2.10.6 → letify-2.10.8}/.gitignore +0 -0
- {letify-2.10.6 → letify-2.10.8}/.researchtree +0 -0
- {letify-2.10.6 → letify-2.10.8}/CLAUDE.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/LICENSE +0 -0
- {letify-2.10.6 → letify-2.10.8}/PROJECT.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/README.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/COMPONENT.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/INTENT.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/NETWORK.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/01-getting-started.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/02-providers.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/03-execution-modes.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/04-environments-and-data.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/05-concurrency.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/06-cost.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/08-releasing.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/README.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/ko/01-/354/213/234/354/236/221/355/225/230/352/270/260.md" +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/ko/02-/355/224/204/353/241/234/353/260/224/354/235/264/353/215/224.md" +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/ko/03-/354/213/244/355/226/211-/353/260/251/354/213/235.md" +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/ko/04-/355/231/230/352/262/275/352/263/274-/353/215/260/354/235/264/355/204/260.md" +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/ko/05-/353/217/231/354/213/234-/354/213/244/355/226/211.md" +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/ko/06-/353/271/204/354/232/251.md" +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/ko/08-/353/246/264/353/246/254/354/212/244.md" +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/guide/ko/README.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/locales/README_ko.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/docs/mkdocs.yml +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/README.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/nvfp4-lora/.letify.example +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/nvfp4-lora/00_smoke.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/nvfp4-lora/01_sweep.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/nvfp4-lora/02_resume.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/nvfp4-lora/03_watch.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/nvfp4-lora/README.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/nvfp4-lora/README_ko.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/nvfp4-lora/common.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/examples/nvfp4-lora/recipe.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/cli.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/config/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/config/inventory.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/config/login.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/config/schema.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/config/secrets.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/config/writer.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/declare/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/declare/cache.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/declare/env.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/declare/exit.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/declare/function.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/declare/instance.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/declare/reduce.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/declare/replicas.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/errors.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/install.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/launcher.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/paths.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/protocol/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/protocol/codec.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/protocol/driver.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/protocol/handle.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/protocol/wire.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/protocol/worker.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/base.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/colab.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/colab_files.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/colab_keepalive.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/elice.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/kaggle.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/kaggle_adapter.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/local.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/modal.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/modal_adapter.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/naming.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/shell.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/tunnel.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/providers/usage.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/device/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/device/client.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/device/cuda.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/device/executor.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/device/frames.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/device/guard.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/device/tensor.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/device/trace.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/remoting/device/value.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/render.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/bootstrap.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/broker.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/control.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/takeover.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/telemetry.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/runtime/workers.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/backends/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/backends/drive.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/backends/filesystem.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/backends/google_auth.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/backends/layout.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/backends/objects.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/cas.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/handoff.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/sendorder.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/store/volume.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/stubs.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/__init__.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/agent.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/announce.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/link.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/nat.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/pipeline.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/portmap.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/probe.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/quic.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/rendezvous.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/setup.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/sshopts.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify/transport/strategies.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-core/.gitignore +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-core/build.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-core/letify/Cargo.toml +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-core/letify/LICENSE +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-core/letify/README.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-core/letify/src/lib.rs +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-core/letify-quic/Cargo.toml +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-core/letify-quic/src/main.rs +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-core/rust-toolchain.toml +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/.vscodeignore +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/LICENSE +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/README.md +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/media/icon.svg +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/src/cli.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/src/extension.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/src/history.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/src/model.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/src/poll.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/src/render.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/test/cli.test.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/test/manifest.test.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/test/model.test.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/test/regressions.test.ts +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify-ext/tsconfig.json +0 -0
- {letify-2.10.6 → letify-2.10.8}/letify_providers.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/scripts/sync-main.sh +0 -0
- {letify-2.10.6 → letify-2.10.8}/scripts/version.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/conftest.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/fake_kaggle_adapter.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/fake_modal_adapter.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_cli.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_cli_output.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_colab_keepalive.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_config.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_core.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_data.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_data_streaming.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_declare.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_device.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_device_compile.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_distributed.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_drive_handoff.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_drive_store.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_editor_sessions.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_elice.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_frames.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_install.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_kaggle.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_kaggle_cookie.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_kaggle_link.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_link_log.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_notebook.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_parallel_placement.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_paths.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_portmap.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_protocol.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_punch_sockets.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_quic.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_remoting.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_render.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_run_control.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_run_takeover.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_runtime.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_shell_workers.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_ship.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_store.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_strategies.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_stubs.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_transport.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_tunnel_setup.py +0 -0
- {letify-2.10.6 → letify-2.10.8}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: letify
|
|
3
|
-
Version: 2.10.
|
|
3
|
+
Version: 2.10.8
|
|
4
4
|
Summary: Declarations that become infrastructure.
|
|
5
5
|
Project-URL: Homepage, https://github.com/DarkPyonix/letify
|
|
6
6
|
Project-URL: Documentation, https://github.com/DarkPyonix/letify/tree/main/docs
|
|
@@ -357,7 +357,7 @@ for. A bare `stop` otherwise reads as ending everything. The command lists what
|
|
|
357
357
|
|
|
358
358
|
No session URL is ever registered by hand, and none of this chain accepts an API key: the internal endpoints treat one as anonymous and answer empty, so starting a session and minting its proxy URL stay on the cookie regardless of whether the account also has a token.
|
|
359
359
|
|
|
360
|
-
The official Kaggle CLI (`kaggle`, run through `uv tool run --from kaggle kaggle ...` with the account's verbatim token in `KAGGLE_API_TOKEN`) is a different, slug-keyed surface built around batch kernel runs: `kernels push` commits and runs a kernel to completion and is not the interactive session this provider needs, `kernels init`, `status`, `logs` and `output` belong to that same batch model, and there is no CLI command to start or cancel an interactive session. `kernels init` was found to itself require the account to already be authenticated to the CLI before it will even write a local `kernel-metadata.json` template, which is why that file's documented fields, checked against the CLI's own docs rather than run live, are what settles that `kernels push` has no interactive mode, not an assumption. `kernels delete` is the only way the notebook is deleted, and `quota` is the only way usage is read; neither ever falls back to a cookie call, per the boundary table above.
|
|
360
|
+
The official Kaggle CLI (`kaggle`, run through `uv tool run --with six --from kaggle kaggle ...` with the account's verbatim token in `KAGGLE_API_TOKEN`; `six` is added because release 2.2.5 still imports it in `kaggle/models/upload_file.py` but no longer declares it, so every command failed with `ModuleNotFoundError: No module named 'six'` and no notebook was deleted) is a different, slug-keyed surface built around batch kernel runs: `kernels push` commits and runs a kernel to completion and is not the interactive session this provider needs, `kernels init`, `status`, `logs` and `output` belong to that same batch model, and there is no CLI command to start or cancel an interactive session. `kernels init` was found to itself require the account to already be authenticated to the CLI before it will even write a local `kernel-metadata.json` template, which is why that file's documented fields, checked against the CLI's own docs rather than run live, are what settles that `kernels push` has no interactive mode, not an assumption. `kernels delete` is the only way the notebook is deleted, and `quota` is the only way usage is read; neither ever falls back to a cookie call, per the boundary table above.
|
|
361
361
|
|
|
362
362
|
An internal call that fails raises `RuntimeFailure` naming the endpoint, the HTTP status and the `message` of Kaggle's reply when it carries one, so a refused start says what Kaggle refused. The cookie never appears in the error.
|
|
363
363
|
|
|
@@ -971,7 +971,7 @@ After each write the worker lists the blob directory and removes files, oldest m
|
|
|
971
971
|
|
|
972
972
|
> Infrastructure failure may be retried. User code failure never is. Neither falls back to a slower path.
|
|
973
973
|
|
|
974
|
-
`RuntimeFailure` and `ProtocolError` mean the session misbehaved, so the runtime is discarded and the call is retried on a fresh one up to `retries` times. Before that, `Provider.diagnose(runtime, failure)` may replace the failure with a more specific infrastructure failure, as Elice does with `SpotPreempted`; the default returns it unchanged. A `SpotPreempted` left after the last retry is raised as it is. `RemoteError` means the shipped function raised, and it propagates with the remote traceback attached.
|
|
974
|
+
`RuntimeFailure` and `ProtocolError` mean the session misbehaved, so the runtime is discarded and the call is retried on a fresh one up to `retries` times. Before that, `Provider.diagnose(runtime, failure)` may replace the failure with a more specific infrastructure failure, as Elice does with `SpotPreempted`; the default returns it unchanged. A `SpotPreempted` left after the last retry is raised as it is. `RemoteError` means the shipped function raised, and it propagates with the remote traceback attached. A `ProtocolError` from a channel that broke while the worker may still be running is first handled by [Reattaching after a lost channel](#run-reattach).
|
|
975
975
|
|
|
976
976
|
A `RuntimeFailure` raised for a failed command carries `command` and `stderr`, and its message names the command and the last 40 lines of stderr. The `RuntimeLost` raised after the last retry keeps the last failure's message, `command` and `stderr`.
|
|
977
977
|
|
|
@@ -1097,6 +1097,26 @@ A call has exactly one owner at a time, and the session still ends with the call
|
|
|
1097
1097
|
|
|
1098
1098
|
A provider whose runtime cannot be reached by a second process refuses with `UnsupportedMode` naming it. On the `Local` provider the runtime is this machine, so the new owner connects to the socket directly, but the worker is a child of the owning process and dies with it: a `Local` run can be taken over only from an owner that is still alive.
|
|
1099
1099
|
|
|
1100
|
+
### Reattaching after a lost channel <!-- id: run-reattach -->
|
|
1101
|
+
|
|
1102
|
+
> An owner whose channel to a running call broke reopens a channel to the same worker and adopts its own run, so a dropped connection does not cost the call.
|
|
1103
|
+
|
|
1104
|
+
The worker outlives a channel that closes without a shutdown frame, as [Taking over a running call](#run-takeover) describes. The owner uses that itself before it discards the session.
|
|
1105
|
+
|
|
1106
|
+
1. **What counts as a lost channel.** A persistent-channel call raises `ProtocolError`, the stream ended with no reply, and all of these hold:
|
|
1107
|
+
- the channel's local process has not exited, or exited with status 255 (ssh could not keep the link) or by a signal. Any other exit status, including 0, is the worker's own end, and the call is not reattached;
|
|
1108
|
+
- the runtime has a lease whose `deadline` is more than `MARGIN_S` (10 s) in the future;
|
|
1109
|
+
- the run's record names a `door`;
|
|
1110
|
+
- `Provider.runtime_state` does not say `ended`, and `Provider.diagnose` returns the failure unchanged.
|
|
1111
|
+
|
|
1112
|
+
`RuntimeLost` (including `SpotPreempted`), `RuntimeFailure` (including a call that exceeded its `timeout`), `RemoteError` and a provider that raises `UnsupportedMode` from `attach_channel` are never reattached. They take the path of [Failure and retry](#failure-and-retry).
|
|
1113
|
+
2. **Attempts.** The owner stops renewing the lease on the dead channel, waits 5, 10, 20, then 40 s before each attempt (40 s for every attempt after the fourth, at most 8 attempts), and gives up when the next wait plus `MARGIN_S` would pass the lease deadline. Each attempt builds a channel with `Provider.attach_channel`, starts it and sends `adopt` for the run id, exactly as `letify takeover` does, and the body's `timeout` keeps counting from the first send.
|
|
1114
|
+
3. **On success.** The runtime's channel becomes the new one, which keeps the old channel's output setting. The lease is armed again over it, the buffered output reaches this process first, and the call goes on waiting for its reply. The call's value, its raised exception and its written-back outputs are those of the original call. The body is not run again. A channel lost again is reattached again under the same limits. As after a takeover, the session ends when the reattached call returns, even inside `keep_alive`.
|
|
1115
|
+
4. **Messages.** Before each attempt the owner prints to standard error `letify: lost the channel to <runtime> during <run>; reattaching (attempt <n>)`, and on success `letify: reattached to <run> on <runtime>`.
|
|
1116
|
+
5. **When it gives up.** The old channel is closed without a shutdown frame, and the original failure takes the path of [Failure and retry](#failure-and-retry): the runtime is discarded and the call is retried on a fresh one under `retries`. A failure of the user's code is never retried, as before.
|
|
1117
|
+
|
|
1118
|
+
Only `Runtime.call` reattaches. A `host="local"` call runs its body in this process, so there is no remote body to reattach to.
|
|
1119
|
+
|
|
1100
1120
|
### A deliberate shutdown <!-- id: run-shutdown -->
|
|
1101
1121
|
|
|
1102
1122
|
> A shutdown frame from the channel that owns a running call ends the body and the worker, because a lost owner can be replaced and an owner that left on purpose cannot.
|
|
@@ -193,6 +193,8 @@ The remote process died without returning. The tail of its output is included, w
|
|
|
193
193
|
|
|
194
194
|
letify discards the runtime and retries once by default, because the session is at fault.
|
|
195
195
|
|
|
196
|
+
One case is handled before that. When only your connection to the machine broke (for example `client_loop: send disconnect: Broken pipe`, ssh exit status 255) and the lease still has time left, the worker keeps running your function. letify prints `letify: lost the channel to <runtime> during <run>; reattaching (attempt 1)`, reconnects to the same run after 5, 10, 20 and 40 s, and prints `letify: reattached to <run> on <runtime>`. The function does not run again. Only when every attempt fails, or the machine itself is gone, does the discard and retry above apply.
|
|
197
|
+
|
|
196
198
|
---
|
|
197
199
|
|
|
198
200
|
## `RuntimeFailure` and `RuntimeLost`
|
|
@@ -193,6 +193,8 @@ below Python.
|
|
|
193
193
|
|
|
194
194
|
세션이 잘못한 것이므로 letify가 런타임을 버리고 기본 1회 재시도합니다.
|
|
195
195
|
|
|
196
|
+
그 전에 처리하는 경우가 하나 있습니다. 머신과의 연결만 끊겼고(예: `client_loop: send disconnect: Broken pipe`, ssh 종료 코드 255) 리스에 시간이 남아 있으면 워커는 함수를 계속 실행합니다. letify는 `letify: lost the channel to <runtime> during <run>; reattaching (attempt 1)`을 출력하고, 5, 10, 20, 40초 간격으로 같은 실행에 다시 연결한 뒤 `letify: reattached to <run> on <runtime>`을 출력합니다. 함수는 다시 실행되지 않습니다. 모든 시도가 실패하거나 머신 자체가 사라졌을 때만 위의 폐기 후 재시도가 적용됩니다.
|
|
197
|
+
|
|
196
198
|
---
|
|
197
199
|
|
|
198
200
|
## `RuntimeFailure`와 `RuntimeLost`
|
|
@@ -98,6 +98,14 @@ class Channel(abc.ABC):
|
|
|
98
98
|
"""
|
|
99
99
|
self.close()
|
|
100
100
|
|
|
101
|
+
def worker_may_survive(self) -> bool:
|
|
102
|
+
"""Whether the worker on the other end may still be running after this channel failed.
|
|
103
|
+
|
|
104
|
+
Spec "Reattaching after a lost channel", the first item. The default says no, for a
|
|
105
|
+
channel that cannot tell its transport breaking from its worker ending.
|
|
106
|
+
"""
|
|
107
|
+
return False
|
|
108
|
+
|
|
101
109
|
def declare_lost(self, message: str) -> None:
|
|
102
110
|
"""Make a call waiting on this channel fail with ``RuntimeLost(message)``.
|
|
103
111
|
|
|
@@ -1004,6 +1012,22 @@ class PersistentChannel(FramedChannel):
|
|
|
1004
1012
|
code = exit_text(process.returncode)
|
|
1005
1013
|
return f"the worker exited with {code}" if code else None
|
|
1006
1014
|
|
|
1015
|
+
def worker_may_survive(self) -> bool:
|
|
1016
|
+
"""True unless the process ended with a status of its own.
|
|
1017
|
+
|
|
1018
|
+
Spec "Reattaching after a lost channel". A process still running, one that exited 255
|
|
1019
|
+
(ssh could not keep the link) and one a signal ended are a transport that broke. Any
|
|
1020
|
+
other status, including 0, is the worker's end and is passed on by the transport.
|
|
1021
|
+
"""
|
|
1022
|
+
process = self._process
|
|
1023
|
+
if process is None:
|
|
1024
|
+
return False
|
|
1025
|
+
try:
|
|
1026
|
+
process.wait(timeout=2)
|
|
1027
|
+
except subprocess.TimeoutExpired:
|
|
1028
|
+
return True
|
|
1029
|
+
return process.returncode == 255 or process.returncode < 0
|
|
1030
|
+
|
|
1007
1031
|
def _stderr_text(self) -> str:
|
|
1008
1032
|
"""The process's own standard error, complete once the process has exited."""
|
|
1009
1033
|
process = self._process
|
|
@@ -1120,6 +1144,10 @@ class SocketChannel(FramedChannel):
|
|
|
1120
1144
|
)
|
|
1121
1145
|
self._await_ready()
|
|
1122
1146
|
|
|
1147
|
+
def worker_may_survive(self) -> bool:
|
|
1148
|
+
"""A closed door says nothing about the worker, which the next adoption finds out."""
|
|
1149
|
+
return True
|
|
1150
|
+
|
|
1123
1151
|
def _kill(self) -> None:
|
|
1124
1152
|
if self._socket is not None:
|
|
1125
1153
|
with contextlib.suppress(OSError):
|
|
@@ -48,7 +48,10 @@ class Lease:
|
|
|
48
48
|
return
|
|
49
49
|
self._renew()
|
|
50
50
|
self._thread = threading.Thread(
|
|
51
|
-
target=self._loop,
|
|
51
|
+
target=self._loop,
|
|
52
|
+
args=(self._stop,),
|
|
53
|
+
name=f"letify-lease-{self.runtime.name}",
|
|
54
|
+
daemon=True,
|
|
52
55
|
)
|
|
53
56
|
self._thread.start()
|
|
54
57
|
|
|
@@ -56,8 +59,18 @@ class Lease:
|
|
|
56
59
|
self._stop.set()
|
|
57
60
|
self._thread = None
|
|
58
61
|
|
|
59
|
-
def
|
|
60
|
-
|
|
62
|
+
def restart(self) -> None:
|
|
63
|
+
"""Renew again after ``release``, over whatever channel the runtime has now.
|
|
64
|
+
|
|
65
|
+
Spec "Reattaching after a lost channel". The stopped renewer ends on its own stop
|
|
66
|
+
event, so it cannot renew beside the new one.
|
|
67
|
+
"""
|
|
68
|
+
self.release()
|
|
69
|
+
self._stop = threading.Event()
|
|
70
|
+
self.arm()
|
|
71
|
+
|
|
72
|
+
def _loop(self, stop: threading.Event) -> None:
|
|
73
|
+
while not stop.wait(self.interval):
|
|
61
74
|
if not self._renew():
|
|
62
75
|
return
|
|
63
76
|
|
|
@@ -205,6 +205,11 @@ class RuntimePool:
|
|
|
205
205
|
# the session ends with it as it would have.
|
|
206
206
|
runtime.shutdown(reason="released_but_not_taken")
|
|
207
207
|
return
|
|
208
|
+
if runtime.reattached:
|
|
209
|
+
# Spec "Reattaching after a lost channel": the session ends with the call that
|
|
210
|
+
# was adopted again, as one does after a takeover.
|
|
211
|
+
self.discard(runtime, reason="reattached_call_done")
|
|
212
|
+
return
|
|
208
213
|
with self._guard:
|
|
209
214
|
runtime.busy = False
|
|
210
215
|
runtime.last_used = time.monotonic()
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"""Reattaching to a running call after the owner's channel broke.
|
|
2
|
+
|
|
3
|
+
Owns spec "Reattaching after a lost channel": the rule for when a lost channel is worth a
|
|
4
|
+
reattach, the attempts that follow it and the messages they print. It does not own how a
|
|
5
|
+
channel to the worker's second door is built, which ``Provider.attach_channel`` does, the
|
|
6
|
+
adoption itself, which the worker source owns, or the lease, which ``letify.runtime.lease``
|
|
7
|
+
owns. The sequence of connecting, adopting and receiving the reply is the one of
|
|
8
|
+
``letify.runtime.takeover``, with this process as both the old and the new owner.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import contextlib
|
|
14
|
+
import os
|
|
15
|
+
import sys
|
|
16
|
+
import time
|
|
17
|
+
from collections.abc import Callable, Iterator
|
|
18
|
+
from typing import TYPE_CHECKING, Any
|
|
19
|
+
|
|
20
|
+
from ..errors import LetifyError, ProtocolError, RemoteError, RuntimeFailure, UnsupportedMode
|
|
21
|
+
|
|
22
|
+
if TYPE_CHECKING:
|
|
23
|
+
from . import control
|
|
24
|
+
from .channel import Channel
|
|
25
|
+
from .session import Runtime
|
|
26
|
+
|
|
27
|
+
#: Seconds waited before attempt 1, 2, 3 and 4. Every later attempt waits the last value.
|
|
28
|
+
DELAYS_S: tuple[float, ...] = (5.0, 10.0, 20.0, 40.0)
|
|
29
|
+
|
|
30
|
+
#: The most attempts made for one lost channel.
|
|
31
|
+
MAX_ATTEMPTS = 8
|
|
32
|
+
|
|
33
|
+
#: Seconds that must remain before the lease deadline for an attempt to be worth making.
|
|
34
|
+
MARGIN_S = 10.0
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def eligible(runtime: Runtime, run: control.Run, failure: ProtocolError) -> bool:
|
|
38
|
+
"""Whether ``failure`` is a lost channel whose worker may still be running its call.
|
|
39
|
+
|
|
40
|
+
Spec "Reattaching after a lost channel", the first item. The worker is not shown to have
|
|
41
|
+
died, the lease still has time, the run has a second door and the provider does not say
|
|
42
|
+
the runtime is gone.
|
|
43
|
+
"""
|
|
44
|
+
channel, lease = runtime.channel, runtime.lease
|
|
45
|
+
if channel is None or lease is None or lease.deadline is None:
|
|
46
|
+
return False
|
|
47
|
+
if lease.deadline - time.time() <= MARGIN_S:
|
|
48
|
+
return False
|
|
49
|
+
if not run.details.get("door"):
|
|
50
|
+
return False
|
|
51
|
+
if not channel.worker_may_survive():
|
|
52
|
+
return False
|
|
53
|
+
from ..providers.base import RuntimeState
|
|
54
|
+
|
|
55
|
+
try:
|
|
56
|
+
state = runtime.provider.runtime_state(runtime)
|
|
57
|
+
except Exception:
|
|
58
|
+
state = RuntimeState()
|
|
59
|
+
if state.status == "ended":
|
|
60
|
+
return False
|
|
61
|
+
try:
|
|
62
|
+
return runtime.provider.diagnose(runtime, failure) is failure
|
|
63
|
+
except Exception:
|
|
64
|
+
return False
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def request(
|
|
68
|
+
runtime: Runtime,
|
|
69
|
+
run: control.Run,
|
|
70
|
+
payload: dict[str, Any],
|
|
71
|
+
*,
|
|
72
|
+
timeout: float | None,
|
|
73
|
+
on_channel: Callable[[Channel], None] | None = None,
|
|
74
|
+
) -> tuple[Any, str]:
|
|
75
|
+
"""Send ``payload`` on the runtime's channel and answer like ``Channel.request``.
|
|
76
|
+
|
|
77
|
+
A channel lost while the call runs is replaced by one to the same worker, and the call's
|
|
78
|
+
reply comes over that. ``on_channel`` is told of each new channel once it is the
|
|
79
|
+
runtime's, so a thread that watches the channel can move to it. When reattaching is not
|
|
80
|
+
possible the original failure is raised, for the caller's discard and retry.
|
|
81
|
+
"""
|
|
82
|
+
started = time.monotonic()
|
|
83
|
+
assert runtime.channel is not None
|
|
84
|
+
try:
|
|
85
|
+
return runtime.channel.request(payload, timeout=timeout)
|
|
86
|
+
except ProtocolError as exc:
|
|
87
|
+
failure = exc
|
|
88
|
+
while True:
|
|
89
|
+
remaining = None
|
|
90
|
+
if timeout is not None:
|
|
91
|
+
remaining = timeout - (time.monotonic() - started)
|
|
92
|
+
if remaining <= 0:
|
|
93
|
+
raise RuntimeFailure(f"{runtime.name}: the call exceeded {timeout}s") from failure
|
|
94
|
+
pieces = _reattach(runtime, run, failure, remaining, on_channel)
|
|
95
|
+
try:
|
|
96
|
+
return next(pieces), ""
|
|
97
|
+
except ProtocolError as exc:
|
|
98
|
+
# Lost again: the same limits apply to the new loss.
|
|
99
|
+
failure = exc
|
|
100
|
+
finally:
|
|
101
|
+
pieces.close()
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def _reattach(
|
|
105
|
+
runtime: Runtime,
|
|
106
|
+
run: control.Run,
|
|
107
|
+
failure: ProtocolError,
|
|
108
|
+
timeout: float | None,
|
|
109
|
+
on_channel: Callable[[Channel], None] | None,
|
|
110
|
+
) -> Iterator[Any]:
|
|
111
|
+
"""Adopt the run again over a new channel and return the stream that carries its reply.
|
|
112
|
+
|
|
113
|
+
Raises ``failure`` when the conditions do not hold or no attempt succeeds.
|
|
114
|
+
"""
|
|
115
|
+
if not eligible(runtime, run, failure):
|
|
116
|
+
raise failure
|
|
117
|
+
lease = runtime.lease
|
|
118
|
+
assert lease is not None and lease.deadline is not None
|
|
119
|
+
old = runtime.channel
|
|
120
|
+
assert old is not None
|
|
121
|
+
# The lease does not renew on a dead channel. It starts again over the new one.
|
|
122
|
+
lease.release()
|
|
123
|
+
record = {**run.record(run.socket_file), "external_id": runtime.external_id}
|
|
124
|
+
for attempt in range(1, MAX_ATTEMPTS + 1):
|
|
125
|
+
delay = DELAYS_S[min(attempt, len(DELAYS_S)) - 1]
|
|
126
|
+
if lease.deadline - time.time() < delay + MARGIN_S:
|
|
127
|
+
break
|
|
128
|
+
try:
|
|
129
|
+
channel = runtime.provider.attach_channel(runtime.name, record)
|
|
130
|
+
except UnsupportedMode:
|
|
131
|
+
break
|
|
132
|
+
time.sleep(delay)
|
|
133
|
+
print(
|
|
134
|
+
f"letify: lost the channel to {runtime.name} during {run.id}; "
|
|
135
|
+
f"reattaching (attempt {attempt})",
|
|
136
|
+
file=sys.stderr,
|
|
137
|
+
flush=True,
|
|
138
|
+
)
|
|
139
|
+
channel.echo, channel.on_output = old.echo, old.on_output
|
|
140
|
+
pieces = None
|
|
141
|
+
try:
|
|
142
|
+
channel.start()
|
|
143
|
+
pieces = channel.stream(
|
|
144
|
+
{"op": "adopt", "run": run.id, "owner": os.getpid()}, timeout=timeout
|
|
145
|
+
)
|
|
146
|
+
next(pieces)
|
|
147
|
+
except RemoteError:
|
|
148
|
+
# The worker answered that it has no such call: nothing is left to adopt.
|
|
149
|
+
_let_go(channel, pieces)
|
|
150
|
+
break
|
|
151
|
+
except LetifyError:
|
|
152
|
+
_let_go(channel, pieces)
|
|
153
|
+
continue
|
|
154
|
+
runtime.channel = channel
|
|
155
|
+
runtime.reattached = True
|
|
156
|
+
lease.restart()
|
|
157
|
+
if on_channel is not None:
|
|
158
|
+
on_channel(channel)
|
|
159
|
+
_let_go(old)
|
|
160
|
+
print(f"letify: reattached to {run.id} on {runtime.name}", file=sys.stderr, flush=True)
|
|
161
|
+
assert pieces is not None
|
|
162
|
+
return pieces
|
|
163
|
+
# Gave up. The lease stays released, so a worker nobody reaches ends at its deadline.
|
|
164
|
+
raise failure
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def _let_go(channel: Channel, pieces: Iterator[Any] | None = None) -> None:
|
|
168
|
+
"""Drop a channel without a shutdown frame, which the worker would take as an end."""
|
|
169
|
+
if pieces is not None:
|
|
170
|
+
with contextlib.suppress(Exception):
|
|
171
|
+
pieces.close()
|
|
172
|
+
kill = getattr(channel, "_kill", None)
|
|
173
|
+
if kill is not None:
|
|
174
|
+
with contextlib.suppress(Exception):
|
|
175
|
+
kill()
|
|
176
|
+
with contextlib.suppress(Exception):
|
|
177
|
+
channel.detach()
|
|
@@ -38,7 +38,7 @@ from ..errors import (
|
|
|
38
38
|
RemoteError,
|
|
39
39
|
RuntimeFailure,
|
|
40
40
|
)
|
|
41
|
-
from . import control
|
|
41
|
+
from . import control, reattach
|
|
42
42
|
from .lease import Lease
|
|
43
43
|
|
|
44
44
|
if TYPE_CHECKING:
|
|
@@ -191,6 +191,10 @@ class Runtime:
|
|
|
191
191
|
#: Set once the worker switched to the other process, which ends the session from now on.
|
|
192
192
|
handed_over: bool = field(default=False, repr=False)
|
|
193
193
|
|
|
194
|
+
#: Set when this process adopted its own running call over a new channel. Spec
|
|
195
|
+
#: "Reattaching after a lost channel": the session ends with that call.
|
|
196
|
+
reattached: bool = field(default=False, repr=False)
|
|
197
|
+
|
|
194
198
|
#: The environment pack running on the worker, or None. Spec "Materializing into a
|
|
195
199
|
#: runtime": the pack to Drive runs beside the session's calls.
|
|
196
200
|
_pack: _DrivePack | None = field(default=None, repr=False)
|
|
@@ -543,9 +547,21 @@ class Runtime:
|
|
|
543
547
|
if "door" in run.details:
|
|
544
548
|
request["takeover"] = {"run": run.id, "door": run.details["door"]}
|
|
545
549
|
moved = False
|
|
550
|
+
|
|
551
|
+
def follow(channel: Any) -> None:
|
|
552
|
+
# The Drive grants of a running call are answered over the channel it uses now.
|
|
553
|
+
nonlocal grants
|
|
554
|
+
grants.close()
|
|
555
|
+
grants = handoff.GrantWatcher(channel)
|
|
556
|
+
grants.start()
|
|
557
|
+
if back is not None:
|
|
558
|
+
back.resume()
|
|
559
|
+
|
|
546
560
|
try:
|
|
547
561
|
with run.interruptible():
|
|
548
|
-
outcome =
|
|
562
|
+
outcome = reattach.request(
|
|
563
|
+
self, run, request, timeout=timeout, on_channel=follow
|
|
564
|
+
)
|
|
549
565
|
except OwnershipMoved:
|
|
550
566
|
moved = True
|
|
551
567
|
raise
|
|
@@ -1515,6 +1515,14 @@ class WriteBack:
|
|
|
1515
1515
|
self.files += 1
|
|
1516
1516
|
self.bytes += int(size)
|
|
1517
1517
|
|
|
1518
|
+
def resume(self) -> None:
|
|
1519
|
+
"""Poll again after a lost channel ended the poll, as spec run-reattach says."""
|
|
1520
|
+
thread = self._thread
|
|
1521
|
+
if thread is not None and thread.is_alive():
|
|
1522
|
+
return
|
|
1523
|
+
if not self._cancelled.is_set():
|
|
1524
|
+
self.start()
|
|
1525
|
+
|
|
1518
1526
|
def cancel(self) -> None:
|
|
1519
1527
|
"""Stop polling, which the call's end does before the final write-back runs."""
|
|
1520
1528
|
self._cancelled.set()
|
|
@@ -67,8 +67,9 @@ KAGGLE_KERNEL = Tool(
|
|
|
67
67
|
|
|
68
68
|
#: The official Kaggle CLI, run with the account's API token, never the cookie. It does
|
|
69
69
|
#: everything that does not require the live web session: creating and deleting the
|
|
70
|
-
#: ephemeral notebook, and reading the weekly quota.
|
|
71
|
-
|
|
70
|
+
#: ephemeral notebook, and reading the weekly quota. Release 2.2.5 imports ``six`` without
|
|
71
|
+
#: declaring it, so every command fails on import without the pin.
|
|
72
|
+
KAGGLE_CLI = Tool(package="kaggle", executable="kaggle", python="3.13", pins=("six",))
|
|
72
73
|
|
|
73
74
|
#: The Kaggle adapter file, run by path so it needs nothing of letify's own environment.
|
|
74
75
|
KAGGLE_ADAPTER = Path(__file__).parent / "providers" / "kaggle_adapter.py"
|
|
@@ -138,11 +138,11 @@ dependencies = [
|
|
|
138
138
|
|
|
139
139
|
[[package]]
|
|
140
140
|
name = "letify"
|
|
141
|
-
version = "2.10.
|
|
141
|
+
version = "2.10.8"
|
|
142
142
|
|
|
143
143
|
[[package]]
|
|
144
144
|
name = "letify-quic"
|
|
145
|
-
version = "2.10.
|
|
145
|
+
version = "2.10.8"
|
|
146
146
|
dependencies = [
|
|
147
147
|
"quinn",
|
|
148
148
|
"rcgen",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "letify-status",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.8",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "letify-status",
|
|
9
|
-
"version": "2.10.
|
|
9
|
+
"version": "2.10.8",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@types/node": "^18.19.0",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "letify-status",
|
|
3
3
|
"displayName": "letify Status",
|
|
4
4
|
"description": "letify quota and GPU activity in the status bar, read from the letify CLI.",
|
|
5
|
-
"version": "2.10.
|
|
5
|
+
"version": "2.10.8",
|
|
6
6
|
"publisher": "darkpyonix",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE",
|
|
8
8
|
"repository": {
|
|
@@ -3363,3 +3363,20 @@ def test_a_punched_link_command_shares_no_connection() -> None:
|
|
|
3363
3363
|
assert not any(part.startswith("Control") for part in command)
|
|
3364
3364
|
assert command[:3] == ["ssh", "-p", "22"]
|
|
3365
3365
|
link.close()
|
|
3366
|
+
|
|
3367
|
+
|
|
3368
|
+
def test_the_kaggle_cli_runs_with_six_because_its_release_imports_it_undeclared() -> None:
|
|
3369
|
+
# Spec "Kaggle": kaggle 2.2.5 imports six without declaring it, so without the pin every
|
|
3370
|
+
# CLI command fails on import and no notebook is deleted.
|
|
3371
|
+
assert tools_module.kaggle_cli_command("/usr/bin/uv") == [
|
|
3372
|
+
"/usr/bin/uv",
|
|
3373
|
+
"tool",
|
|
3374
|
+
"run",
|
|
3375
|
+
"--python",
|
|
3376
|
+
"3.13",
|
|
3377
|
+
"--with",
|
|
3378
|
+
"six",
|
|
3379
|
+
"--from",
|
|
3380
|
+
"kaggle",
|
|
3381
|
+
"kaggle",
|
|
3382
|
+
]
|