letify 2.12.4__tar.gz → 2.12.6__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.12.4 → letify-2.12.6}/PKG-INFO +1 -1
- {letify-2.12.4 → letify-2.12.6}/docs/SPEC.md +3 -1
- {letify-2.12.4 → letify-2.12.6}/letify/__init__.py +1 -1
- {letify-2.12.4 → letify-2.12.6}/letify/providers/colab.py +24 -2
- {letify-2.12.4 → letify-2.12.6}/letify/transport/linkpump.py +8 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/Cargo.lock +3 -3
- {letify-2.12.4 → letify-2.12.6}/letify-core/Cargo.toml +1 -1
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/Cargo.toml +1 -1
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/fairness.rs +7 -2
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/gauge.rs +9 -1
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/handshake.rs +1 -1
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/keepalive.rs +7 -7
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/rekey.rs +5 -5
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/replay.rs +5 -5
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/session.rs +11 -11
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/trace.rs +4 -4
- {letify-2.12.4 → letify-2.12.6}/letify-ext/package-lock.json +2 -2
- {letify-2.12.4 → letify-2.12.6}/letify-ext/package.json +1 -1
- {letify-2.12.4 → letify-2.12.6}/pyproject.toml +1 -1
- {letify-2.12.4 → letify-2.12.6}/tests/conftest.py +187 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_agent.py +3 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_mailbox_close.py +44 -1
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_signal.py +3 -0
- letify-2.12.6/tests/test_network_guard.py +59 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_providers.py +40 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_run_takeover.py +6 -0
- letify-2.12.6/tests/test_suite_guards.py +46 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_transport.py +4 -2
- {letify-2.12.4 → letify-2.12.6}/tests/test_tunnel_setup.py +5 -1
- {letify-2.12.4 → letify-2.12.6}/.github/workflows/ci.yml +0 -0
- {letify-2.12.4 → letify-2.12.6}/.github/workflows/docs.yml +0 -0
- {letify-2.12.4 → letify-2.12.6}/.github/workflows/letify-link.yml +0 -0
- {letify-2.12.4 → letify-2.12.6}/.github/workflows/publish-crates.yml +0 -0
- {letify-2.12.4 → letify-2.12.6}/.github/workflows/publish.yml +0 -0
- {letify-2.12.4 → letify-2.12.6}/.github/workflows/reserve-crates.yml +0 -0
- {letify-2.12.4 → letify-2.12.6}/.gitignore +0 -0
- {letify-2.12.4 → letify-2.12.6}/.researchtree +0 -0
- {letify-2.12.4 → letify-2.12.6}/CLAUDE.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/LICENSE +0 -0
- {letify-2.12.4 → letify-2.12.6}/PROJECT.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/README.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/COMPONENT.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/INTENT.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/NETWORK.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/ROADMAP-3.0.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/01-getting-started.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/02-providers.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/03-execution-modes.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/04-environments-and-data.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/05-concurrency.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/06-cost.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/07-troubleshooting.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/08-releasing.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/09-agent.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/README.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/ko/01-/354/213/234/354/236/221/355/225/230/352/270/260.md" +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/ko/02-/355/224/204/353/241/234/353/260/224/354/235/264/353/215/224.md" +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/ko/03-/354/213/244/355/226/211-/353/260/251/354/213/235.md" +0 -0
- {letify-2.12.4 → letify-2.12.6}/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.12.4 → letify-2.12.6}/docs/guide/ko/05-/353/217/231/354/213/234-/354/213/244/355/226/211.md" +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/ko/06-/353/271/204/354/232/251.md" +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/ko/07-/353/254/270/354/240/234-/355/225/264/352/262/260.md" +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/ko/08-/353/246/264/353/246/254/354/212/244.md" +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/ko/09-/354/227/220/354/235/264/354/240/204/355/212/270.md" +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/guide/ko/README.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/locales/README_ko.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/docs/mkdocs.yml +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/README.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/nvfp4-lora/.letify.example +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/nvfp4-lora/00_smoke.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/nvfp4-lora/01_sweep.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/nvfp4-lora/02_resume.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/nvfp4-lora/03_watch.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/nvfp4-lora/README.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/nvfp4-lora/README_ko.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/nvfp4-lora/common.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/examples/nvfp4-lora/recipe.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/cli.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/config/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/config/inventory.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/config/login.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/config/schema.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/config/secrets.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/config/writer.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/declare/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/declare/cache.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/declare/env.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/declare/exit.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/declare/function.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/declare/instance.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/declare/reduce.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/declare/replicas.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/errors.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/install.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/launcher.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/paths.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/protocol/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/protocol/codec.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/protocol/driver.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/protocol/handle.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/protocol/wire.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/protocol/worker.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/base.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/colab_files.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/colab_keepalive.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/elice.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/kaggle.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/kaggle_adapter.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/local.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/modal.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/modal_adapter.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/naming.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/shell.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/tunnel.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/providers/usage.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/device/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/device/client.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/device/cuda.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/device/executor.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/device/frames.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/device/guard.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/device/tensor.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/device/trace.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/remoting/device/value.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/render.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/bootstrap.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/broker.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/channel.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/control.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/lease.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/pool.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/reattach.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/session.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/takeover.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/telemetry.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/runtime/workers.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/backends/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/backends/drive.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/backends/filesystem.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/backends/google_auth.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/backends/layout.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/backends/objects.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/cas.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/handoff.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/pathdata.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/sendorder.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/store/volume.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/stubs.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/tools.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/__init__.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/agent.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/announce.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/link.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/linkagent.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/linkchannel.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/linkd.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/linkmailbox.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/linkshim.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/linksignal.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/linkupload.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/linkwebsocket.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/nat.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/pipeline.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/portmap.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/probe.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/quic.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/rendezvous.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/setup.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/sshopts.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/transport/strategies.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify/useragent.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/.gitignore +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/build.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify/Cargo.toml +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify/LICENSE +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify/README.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify/src/lib.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/examples/bench.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/acceptor.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/bin/letify-link.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/config.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/error.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/frame.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/handshake.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/hysteresis.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/identity.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/keys.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/lib.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/observe.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/paths.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/plan.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/policing.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/punch.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/record.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/relay.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/rendezvous.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/replay.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/session.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/sidecar.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/stream.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/stun.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/tcp.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/trace.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/src/udp.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/acceptor.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/api.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/common/mod.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/diag_sim.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/hysteresis.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/mobile.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/nat.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/paths.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/qad.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/relay.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/relay_pairing.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/rendezvous.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/reorder.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/resume.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/revoke.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/sidecar.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/startup.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/subflows.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/udp.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-link/tests/udp_bench.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-quic/Cargo.toml +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/letify-quic/src/main.rs +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-core/rust-toolchain.toml +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/.vscodeignore +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/LICENSE +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/README.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/media/icon.svg +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/src/cli.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/src/extension.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/src/history.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/src/model.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/src/poll.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/src/render.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/test/cli.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/test/manifest.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/test/model.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/test/regressions.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-ext/tsconfig.json +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/README.md +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/cloudflare.config.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/package-lock.json +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/package.json +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/src/auth.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/src/ed25519.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/src/handler.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/src/index.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/src/limiter.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/src/mailbox.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/src/objects.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/src/protocol.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/src/storage.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/test/auth.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/test/ed25519.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/test/helpers.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/test/interop.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/test/limiter.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/test/mailbox.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/test/objects.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/test/setup.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/test/worker.test.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/tsconfig.json +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify-signal/vitest.config.ts +0 -0
- {letify-2.12.4 → letify-2.12.6}/letify_providers.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/scripts/sync-main.sh +0 -0
- {letify-2.12.4 → letify-2.12.6}/scripts/version.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/fake_kaggle_adapter.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/fake_modal_adapter.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_cli.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_cli_output.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_colab_keepalive.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_config.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_core.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_data.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_data_in_place.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_data_streaming.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_declare.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_device.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_device_compile.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_distributed.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_drive_handoff.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_drive_store.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_editor_sessions.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_elice.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_frames.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_install.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_kaggle.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_kaggle_cookie.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_kaggle_link.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_channel.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_command_channel.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_exec.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_log.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_opt_in.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_ssh_stream.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_link_upload.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_linkd.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_notebook.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_parallel_placement.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_paths.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_portmap.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_protocol.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_punch_sockets.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_quic.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_remoting.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_render.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_run_control.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_run_reattach.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_runtime.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_shell_workers.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_ship.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_store.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_strategies.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_stubs.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_tunnel_agent_login.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_user_agent.py +0 -0
- {letify-2.12.4 → letify-2.12.6}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: letify
|
|
3
|
-
Version: 2.12.
|
|
3
|
+
Version: 2.12.6
|
|
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
|
|
@@ -2467,7 +2467,7 @@ The sidecar is a binary named `letify-link`, built for each wheel and installed
|
|
|
2467
2467
|
8. **Bootstrap over a command channel (Colab and Kaggle).** `link = "letify-link"` on a `colab` or `kaggle` account carries the worker channel and the transfer streams over a session, with no ssh server, no strategy race and no Tailcat. These runtimes have no inbound TCP and no address, so the session starts from punched candidates only, as item 7 says for an account with no address. The bootstrap is the provider's own command channel, which runs one Python program on the runtime and returns what it printed: `colab exec` for Colab, and `eval` on the open kernel bridge for Kaggle. That channel costs seconds per call and has no standard input, so three pieces replace the ssh command of item 7.
|
|
2468
2468
|
- **The binary.** The same as item 7: the account's `link_binary`, or `letify-link` taken out of the wheel of letify's own version by running `install.remote_link_source` through the command channel, as `CommandRendezvous` does for `letify-quic`. A missing or non-executable file fails the connect with `<alias> cannot connect over letify-link: letify-link is not at <path>`.
|
|
2469
2469
|
- **Development upload.** The account's `link_binary_upload` (or `LETIFY_LINK_UPLOAD`) of item 7 applies to `colab` and `kaggle` accounts, and the binary goes through the command channel in chunks as item 7 describes.
|
|
2470
|
-
- **The mailbox.** `letify/transport/linkpump.py`, a standard-library program, is started once through the command channel as a detached process. It starts the shim of item 7 with pipes, appends every complete line the shim prints to an outbox file, and feeds every line appended to an inbox file to the shim's standard input, so the shim is unchanged. The local side then loops on the command channel: each call appends the pending lines to the inbox, waits up to 0.5 s for the outbox to grow past the byte offset the caller holds, and returns the new lines and the new offset. Each call is a poll and a send in one, so nothing is lost when a call is slow. `letify/transport/linkchannel.py` defines `Bootstrap`, with `send_line`, `recv_line`, `stderr_text` and `close`, and `connect` takes a function that returns one. An ssh command is one implementation (`PopenBootstrap`) and the mailbox is the other (`MailboxBootstrap`), so the rest of the connect is the same code for both. If the pump or the shim exits, the outbox ends with an `eof` line holding the tail of the shim's standard error, and the connect fails with that tail. **Close ends the runtime side.** `MailboxBootstrap.close` makes one last call, `op` `close`. The pump then stops the shim, which stops its sidecar, and removes its directory. When the shim has already said `handed_over`, the pump leaves the shim alone, because it serves the session and ends by itself under the idle rules of item 7, and only removes the directory and exits. A pump that no call has reached for `IDLE_S` (120 s) does the same, so a client that died leaves nothing behind. The shim, when its standard input ends before the hand-over, stops its sidecar before it exits. After a close before the hand-over, no process the bootstrap started is alive and its directory is gone within 5 s, and a test pins it.
|
|
2470
|
+
- **The mailbox.** `letify/transport/linkpump.py`, a standard-library program, is started once through the command channel as a detached process. It starts the shim of item 7 with pipes, appends every complete line the shim prints to an outbox file, and feeds every line appended to an inbox file to the shim's standard input, so the shim is unchanged. The local side then loops on the command channel: each call appends the pending lines to the inbox, waits up to 0.5 s for the outbox to grow past the byte offset the caller holds, and returns the new lines and the new offset. Each call is a poll and a send in one, so nothing is lost when a call is slow. `letify/transport/linkchannel.py` defines `Bootstrap`, with `send_line`, `recv_line`, `stderr_text` and `close`, and `connect` takes a function that returns one. An ssh command is one implementation (`PopenBootstrap`) and the mailbox is the other (`MailboxBootstrap`), so the rest of the connect is the same code for both. If the pump or the shim exits, the outbox ends with an `eof` line holding the tail of the shim's standard error, and the connect fails with that tail. **Close ends the runtime side.** `MailboxBootstrap.close` makes one last call, `op` `close`. The pump then stops the shim, which stops its sidecar, and removes its directory. When the shim has already said `handed_over`, which the pump knows from reading that line before it makes the line readable, so a close that follows at once is too late to end the shim, the pump leaves the shim alone, because it serves the session and ends by itself under the idle rules of item 7, and only removes the directory and exits. A pump that no call has reached for `IDLE_S` (120 s) does the same, so a client that died leaves nothing behind. The shim, when its standard input ends before the hand-over, stops its sidecar before it exits. After a close before the hand-over, no process the bootstrap started is alive and its directory is gone within 5 s, and a test pins it.
|
|
2471
2471
|
- **Timing from the measured round trip.** After the pump starts, the local side makes 2 calls that wait for nothing and takes the longer as the bootstrap round trip `rtt`. A message from one sidecar reaches the other in at most one `rtt` (the call that carries it is in flight for at most `rtt` and the next one carries it), so a punch offer and its answer need at most 2 `rtt`. The rules are:
|
|
2472
2472
|
- `lead_ms = max(2000, ceil(3 * rtt_ms))`, passed to the sidecar's `punch` in place of its default of 2000, so the offer is at the responder, and the answer back, before the start time.
|
|
2473
2473
|
- `answer_margin_ms = max(500, ceil(rtt_ms))`, passed to the responder's `punch` through the shim (and through the agent's `punch` command), so the responder names its own start as the Answer start bullet of this section says. The answer needs at most one `rtt` to reach the initiator, so the initiator holds the start before it is due, and the wait after the answer arrives is at most the margin less the time the answer took. `lead_ms` stays the initiator's bound on how long it waits for the answer. A shim of an older letify ignores the field and the punch starts at `lead_ms` as before.
|
|
@@ -2546,6 +2546,8 @@ A Colab VM keeps its GPU driver libraries in `/usr/lib64-nvidia`, and only the n
|
|
|
2546
2546
|
|
|
2547
2547
|
The fallback has no persistent worker and starts one program per request through `OneShotChannel`. Bootstrap requests already allow 120 s, exceeding the measured 1.7 to 3.7 s `colab exec` round trip. A CLI `Timeout waiting for reply` failure names the session and `colab exec`, retains the command and standard error, and identifies a notebook kernel that is busy or not answering as a possible cause. A command timeout also names the requested limit. Neither error asserts that the runtime was reclaimed without separate evidence.
|
|
2548
2548
|
|
|
2549
|
+
`colab exec` exits 0 when the program it ran raised, and writes the remote traceback to its standard error. A reply with a traceback on standard error and no result marker on standard output is therefore a failed program, and the fallback raises `RuntimeFailure` carrying that traceback as `stderr`, instead of discarding it and leaving the caller to report a program that ended without a value and empty output. Standard error without a traceback, or beside a result marker, is the program's own output and is not an error.
|
|
2550
|
+
|
|
2549
2551
|
The fallback sends calls with `colab exec` and bulk data through the Jupyter contents API that the Colab runtime proxy exposes: uploads are split into parts sent in parallel, each part in chunked `PUT` requests, and downloads read `/files/<path>` in parallel parts. The contents API root is `/` on the VM, not `/content`.
|
|
2550
2552
|
|
|
2551
2553
|
The proxy URL and token are the session's `url` and `token` in `.config/colab-cli/sessions.json` under the account directory, where the Colab CLI records them when `colab new` creates the session. A session that file does not name raises `RuntimeFailure` naming the file. Every request carries the token as the `colab-runtime-proxy-token` query parameter and the `X-Colab-Runtime-Proxy-Token` header, with `authuser=0`, as the CLI does.
|
|
@@ -304,8 +304,12 @@ class Colab(Shell):
|
|
|
304
304
|
timeout: float | None = None,
|
|
305
305
|
stdin: str | None = None,
|
|
306
306
|
script: str | None = None,
|
|
307
|
+
stderr_to: list[str] | None = None,
|
|
307
308
|
) -> str:
|
|
308
|
-
"""Run the CLI; with ``script``, run that code in the CLI's Python with ``args`` as argv.
|
|
309
|
+
"""Run the CLI; with ``script``, run that code in the CLI's Python with ``args`` as argv.
|
|
310
|
+
|
|
311
|
+
With ``stderr_to``, the standard error of a successful run is appended to that list.
|
|
312
|
+
"""
|
|
309
313
|
if script is None:
|
|
310
314
|
command = [*self._colab(), *args]
|
|
311
315
|
else:
|
|
@@ -328,6 +332,8 @@ class Colab(Shell):
|
|
|
328
332
|
command=" ".join(shown),
|
|
329
333
|
stderr=(result.stderr or "").strip(),
|
|
330
334
|
)
|
|
335
|
+
if stderr_to is not None:
|
|
336
|
+
stderr_to.append(result.stderr or "")
|
|
331
337
|
return result.stdout
|
|
332
338
|
|
|
333
339
|
def _env(self) -> dict[str, str]:
|
|
@@ -338,7 +344,23 @@ class Colab(Shell):
|
|
|
338
344
|
|
|
339
345
|
def _exec(self, session: str, source: str, timeout: float | None) -> str:
|
|
340
346
|
try:
|
|
341
|
-
|
|
347
|
+
errors: list[str] = []
|
|
348
|
+
out = self._cli(
|
|
349
|
+
"exec", "-s", session, stdin=source, timeout=timeout, stderr_to=errors
|
|
350
|
+
)
|
|
351
|
+
stderr = errors[0] if errors else ""
|
|
352
|
+
# The CLI exits 0 when the program raised and prints the traceback on stderr.
|
|
353
|
+
if (
|
|
354
|
+
"Traceback (most recent call last)" in stderr
|
|
355
|
+
and "__LETIFY_EVAL__" not in out
|
|
356
|
+
and "__LETIFY_RESULT_BEGIN__" not in out
|
|
357
|
+
):
|
|
358
|
+
raise RuntimeFailure(
|
|
359
|
+
f"{session}: the program raised on the runtime\n{stderr.strip()[-2000:]}",
|
|
360
|
+
command=" ".join([*self._colab(), "exec", "-s", session]),
|
|
361
|
+
stderr=stderr.strip(),
|
|
362
|
+
)
|
|
363
|
+
return out
|
|
342
364
|
except subprocess.TimeoutExpired as exc:
|
|
343
365
|
stderr = exc.stderr or ""
|
|
344
366
|
if isinstance(stderr, bytes):
|
|
@@ -131,6 +131,14 @@ def pump(directory):
|
|
|
131
131
|
threading.Thread(target=watch, daemon=True).start()
|
|
132
132
|
with open(os.path.join(directory, "outbox"), "ab") as outbox:
|
|
133
133
|
for line in shim.stdout:
|
|
134
|
+
if b"handed_over" in line:
|
|
135
|
+
# Known before the client can read the line, so that a close that follows at
|
|
136
|
+
# once finds the shim handed over and leaves it, and what it started, alone.
|
|
137
|
+
try:
|
|
138
|
+
if json.loads(line).get("event") == "handed_over":
|
|
139
|
+
state["handed"] = True
|
|
140
|
+
except ValueError:
|
|
141
|
+
pass
|
|
134
142
|
outbox.write(line)
|
|
135
143
|
outbox.flush()
|
|
136
144
|
try:
|
|
@@ -396,11 +396,11 @@ dependencies = [
|
|
|
396
396
|
|
|
397
397
|
[[package]]
|
|
398
398
|
name = "letify"
|
|
399
|
-
version = "2.12.
|
|
399
|
+
version = "2.12.6"
|
|
400
400
|
|
|
401
401
|
[[package]]
|
|
402
402
|
name = "letify-link"
|
|
403
|
-
version = "2.12.
|
|
403
|
+
version = "2.12.6"
|
|
404
404
|
dependencies = [
|
|
405
405
|
"ed25519-dalek",
|
|
406
406
|
"getrandom 0.2.17",
|
|
@@ -416,7 +416,7 @@ dependencies = [
|
|
|
416
416
|
|
|
417
417
|
[[package]]
|
|
418
418
|
name = "letify-quic"
|
|
419
|
-
version = "2.12.
|
|
419
|
+
version = "2.12.6"
|
|
420
420
|
dependencies = [
|
|
421
421
|
"quinn",
|
|
422
422
|
"rcgen",
|
|
@@ -15,6 +15,9 @@ use tokio::time::Instant;
|
|
|
15
15
|
|
|
16
16
|
const MIB: f64 = 1024.0 * 1024.0;
|
|
17
17
|
|
|
18
|
+
/// Seconds the starvation test measures the byte shares over.
|
|
19
|
+
const WINDOW_S: u64 = 15;
|
|
20
|
+
|
|
18
21
|
/// The peer: streams that start with 0 are read and counted in `counters[n]` where n is the
|
|
19
22
|
/// second byte, and streams that start with 1 are echoed.
|
|
20
23
|
fn spawn_server(b: Session, counters: Vec<Arc<AtomicU64>>) -> tokio::task::JoinHandle<()> {
|
|
@@ -209,11 +212,13 @@ async fn bulk_is_not_starved_by_an_interactive_stream_that_keeps_its_queue_full(
|
|
|
209
212
|
});
|
|
210
213
|
tokio::time::sleep(Duration::from_secs(1)).await;
|
|
211
214
|
let before: Vec<u64> = counters.iter().map(|c| c.load(Ordering::Relaxed)).collect();
|
|
212
|
-
|
|
215
|
+
// A long window averages out scheduler stalls on a loaded runner, which move the share of
|
|
216
|
+
// a short window by a few percentage points.
|
|
217
|
+
tokio::time::sleep(Duration::from_secs(WINDOW_S)).await;
|
|
213
218
|
let got: Vec<f64> = counters
|
|
214
219
|
.iter()
|
|
215
220
|
.zip(&before)
|
|
216
|
-
.map(|(c, b)| (c.load(Ordering::Relaxed) - b) as f64 /
|
|
221
|
+
.map(|(c, b)| (c.load(Ordering::Relaxed) - b) as f64 / WINDOW_S as f64 / MIB)
|
|
217
222
|
.collect();
|
|
218
223
|
stop.store(true, Ordering::Relaxed);
|
|
219
224
|
bulk.abort();
|
|
@@ -136,7 +136,15 @@ async fn a_punched_udp_candidate_has_a_gauge_through_the_path_manager() {
|
|
|
136
136
|
std::time::Instant::now(),
|
|
137
137
|
Some(pm.kinds()),
|
|
138
138
|
);
|
|
139
|
-
|
|
139
|
+
// Wait for the first trace line instead of a fixed time, so a stalled scheduler cannot
|
|
140
|
+
// leave the file empty when it is read.
|
|
141
|
+
timeout(Duration::from_secs(30), async {
|
|
142
|
+
while std::fs::read_to_string(&file).map_or(true, |t| t.lines().next().is_none()) {
|
|
143
|
+
tokio::time::sleep(Duration::from_millis(10)).await;
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
.await
|
|
147
|
+
.expect("the trace wrote a line");
|
|
140
148
|
task.abort();
|
|
141
149
|
// abort takes effect at the task's next await, so a line it is writing on another worker
|
|
142
150
|
// thread would recreate the file while the directory is being removed.
|
|
@@ -231,7 +231,7 @@ async fn a_version_refusal_is_the_status_and_the_range_and_no_text() {
|
|
|
231
231
|
));
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
#[tokio::test]
|
|
234
|
+
#[tokio::test(start_paused = true)]
|
|
235
235
|
async fn a_replayed_first_handshake_message_yields_no_session() {
|
|
236
236
|
let a = Identity::generate();
|
|
237
237
|
let b = Identity::generate();
|
|
@@ -52,7 +52,7 @@ async fn gated_pair() -> (Session, Session, Gate) {
|
|
|
52
52
|
(initiator, responder.await.unwrap().unwrap(), gate)
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
#[tokio::test(
|
|
55
|
+
#[tokio::test(start_paused = true)]
|
|
56
56
|
async fn an_idle_subflow_stays_alive_on_keepalives() {
|
|
57
57
|
let (a, b, _gate) = gated_pair().await;
|
|
58
58
|
// Six intervals pass with no application traffic; each side sees records all along.
|
|
@@ -61,7 +61,7 @@ async fn an_idle_subflow_stays_alive_on_keepalives() {
|
|
|
61
61
|
assert_eq!(b.subflow_count(), 1);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
#[tokio::test(
|
|
64
|
+
#[tokio::test(start_paused = true)]
|
|
65
65
|
async fn a_dead_subflow_is_detected_by_missed_keepalives() {
|
|
66
66
|
let (a, b, gate) = gated_pair().await;
|
|
67
67
|
tokio::time::sleep(Duration::from_millis(100)).await;
|
|
@@ -78,7 +78,7 @@ async fn a_dead_subflow_is_detected_by_missed_keepalives() {
|
|
|
78
78
|
drop(b);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
#[tokio::test(
|
|
81
|
+
#[tokio::test(start_paused = true)]
|
|
82
82
|
async fn a_pong_gives_each_subflow_a_round_trip_estimate() {
|
|
83
83
|
let (a, _b, _gate) = gated_pair().await;
|
|
84
84
|
tokio::time::sleep(Duration::from_millis(200)).await;
|
|
@@ -88,7 +88,7 @@ async fn a_pong_gives_each_subflow_a_round_trip_estimate() {
|
|
|
88
88
|
assert!(rtt < Duration::from_millis(500), "rtt {rtt:?}");
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
#[tokio::test(
|
|
91
|
+
#[tokio::test(start_paused = true)]
|
|
92
92
|
async fn a_zero_interval_turns_keepalives_off() {
|
|
93
93
|
let cfg = Config {
|
|
94
94
|
keepalive_interval: Duration::ZERO,
|
|
@@ -100,7 +100,7 @@ async fn a_zero_interval_turns_keepalives_off() {
|
|
|
100
100
|
assert!(a.subflow_stats()[0].rtt.is_none());
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
#[tokio::test(
|
|
103
|
+
#[tokio::test(start_paused = true)]
|
|
104
104
|
async fn a_peer_with_a_longer_keepalive_interval_is_not_declared_dead() {
|
|
105
105
|
// The peer pings every 400 ms, so the dead time of both sides is 3 x 400 ms = 1200 ms,
|
|
106
106
|
// not 3 x 50 ms = 150 ms.
|
|
@@ -122,7 +122,7 @@ async fn a_peer_with_a_longer_keepalive_interval_is_not_declared_dead() {
|
|
|
122
122
|
drop(b);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
#[tokio::test(
|
|
125
|
+
#[tokio::test(start_paused = true)]
|
|
126
126
|
async fn a_peer_with_keepalives_off_leaves_the_dead_time_to_our_interval() {
|
|
127
127
|
let (a, b, gate) = mixed_pair(50, 0).await;
|
|
128
128
|
tokio::time::sleep(Duration::from_millis(300)).await;
|
|
@@ -138,7 +138,7 @@ async fn a_peer_with_keepalives_off_leaves_the_dead_time_to_our_interval() {
|
|
|
138
138
|
drop(b);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
#[tokio::test(
|
|
141
|
+
#[tokio::test(start_paused = true)]
|
|
142
142
|
async fn when_both_sides_advertise_zero_only_transport_errors_kill_a_subflow() {
|
|
143
143
|
let (a, b, gate) = mixed_pair(0, 0).await;
|
|
144
144
|
gate.close();
|
|
@@ -19,7 +19,7 @@ fn tiny_limit(records: u64) -> Config {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
#[tokio::test(
|
|
22
|
+
#[tokio::test(start_paused = true)]
|
|
23
23
|
async fn a_session_rekeys_after_the_record_limit() {
|
|
24
24
|
let (a, b) = session_pair(tiny_limit(16)).await;
|
|
25
25
|
assert_eq!((a.send_epoch(), b.receive_epoch()), (0, 0));
|
|
@@ -103,7 +103,7 @@ async fn add_subflows(a: &letify_link::Session, b: &letify_link::Session, n: usi
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
#[tokio::test(
|
|
106
|
+
#[tokio::test(start_paused = true)]
|
|
107
107
|
async fn records_in_flight_across_a_rekey_are_recovered_by_retransmission() {
|
|
108
108
|
// Four subflows and a limit of 16 records: records of the old epoch are still in flight on
|
|
109
109
|
// some subflows when another subflow carries the first record of the new one. The receiver
|
|
@@ -131,7 +131,7 @@ async fn records_in_flight_across_a_rekey_are_recovered_by_retransmission() {
|
|
|
131
131
|
assert!(b.receive_epoch() >= 4, "epoch {}", b.receive_epoch());
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
#[tokio::test(
|
|
134
|
+
#[tokio::test(start_paused = true)]
|
|
135
135
|
async fn a_forged_epoch_header_does_not_switch_keys() {
|
|
136
136
|
let (a, b, mitm) = session_pair_through_mitm(tiny_limit(1000)).await;
|
|
137
137
|
let mut tx = a.open_stream().await.unwrap();
|
|
@@ -159,7 +159,7 @@ async fn a_forged_epoch_header_does_not_switch_keys() {
|
|
|
159
159
|
assert_eq!(b.dropped_records(), 3);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
#[tokio::test(
|
|
162
|
+
#[tokio::test(start_paused = true)]
|
|
163
163
|
async fn a_session_resumes_across_a_rekey() {
|
|
164
164
|
// The only subflow runs through an attacker who withholds everything after the handshake,
|
|
165
165
|
// so the receiver sees none of the announcements. The initiator rekeys several times,
|
|
@@ -205,7 +205,7 @@ async fn a_session_resumes_across_a_rekey() {
|
|
|
205
205
|
assert!(got == sent);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
#[tokio::test(
|
|
208
|
+
#[tokio::test(start_paused = true)]
|
|
209
209
|
async fn a_session_resumes_across_epochs() {
|
|
210
210
|
let (a, b) = session_pair(tiny_limit(8)).await;
|
|
211
211
|
let mut tx = a.open_stream().await.unwrap();
|
|
@@ -10,7 +10,7 @@ use letify_link::{Config, REPLAY_WINDOW};
|
|
|
10
10
|
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
|
11
11
|
use tokio::time::{sleep, timeout};
|
|
12
12
|
|
|
13
|
-
#[tokio::test]
|
|
13
|
+
#[tokio::test(start_paused = true)]
|
|
14
14
|
async fn a_replayed_record_is_dropped() {
|
|
15
15
|
let (a, b, mitm) = session_pair_through_mitm(Config::default()).await;
|
|
16
16
|
let mut s = a.open_stream().await.unwrap();
|
|
@@ -31,7 +31,7 @@ async fn a_replayed_record_is_dropped() {
|
|
|
31
31
|
assert_eq!(&buf, b"again");
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
#[tokio::test]
|
|
34
|
+
#[tokio::test(start_paused = true)]
|
|
35
35
|
async fn a_replayed_stream_close_does_not_end_the_session() {
|
|
36
36
|
let (a, b, mitm) = session_pair_through_mitm(Config::default()).await;
|
|
37
37
|
let mut s = a.open_stream().await.unwrap();
|
|
@@ -53,7 +53,7 @@ async fn a_replayed_stream_close_does_not_end_the_session() {
|
|
|
53
53
|
assert!(b.dropped_records() > 0);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
#[tokio::test]
|
|
56
|
+
#[tokio::test(start_paused = true)]
|
|
57
57
|
async fn records_arriving_out_of_order_within_the_window_are_accepted() {
|
|
58
58
|
let (a, b, mitm) = session_pair_through_mitm(Config::default()).await;
|
|
59
59
|
mitm.withhold.store(true, Ordering::SeqCst);
|
|
@@ -80,7 +80,7 @@ async fn records_arriving_out_of_order_within_the_window_are_accepted() {
|
|
|
80
80
|
assert_eq!(b.dropped_records(), 0);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
#[tokio::test]
|
|
83
|
+
#[tokio::test(start_paused = true)]
|
|
84
84
|
async fn a_record_older_than_the_window_is_dropped() {
|
|
85
85
|
let (a, b, mitm) = session_pair_through_mitm(Config::default()).await;
|
|
86
86
|
let mut s = a.open_stream().await.unwrap();
|
|
@@ -110,7 +110,7 @@ async fn a_record_older_than_the_window_is_dropped() {
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
#[tokio::test]
|
|
113
|
+
#[tokio::test(start_paused = true)]
|
|
114
114
|
async fn a_replayed_resume_hello_is_refused() {
|
|
115
115
|
let (a, b) = session_pair(Config::default()).await;
|
|
116
116
|
// Add a subflow legitimately through an attacker that records the initiator's side.
|
|
@@ -9,7 +9,7 @@ use letify_link::{Config, Identity, PeerPolicy, Session};
|
|
|
9
9
|
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
|
10
10
|
use tokio::time::timeout;
|
|
11
11
|
|
|
12
|
-
#[tokio::test(
|
|
12
|
+
#[tokio::test(start_paused = true)]
|
|
13
13
|
async fn many_streams_on_one_session_deliver_in_order_independently() {
|
|
14
14
|
let (a, b) = session_pair(Config::default()).await;
|
|
15
15
|
let streams = 16u64;
|
|
@@ -52,7 +52,7 @@ async fn many_streams_on_one_session_deliver_in_order_independently() {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
#[tokio::test]
|
|
55
|
+
#[tokio::test(start_paused = true)]
|
|
56
56
|
async fn a_stream_close_is_separate_from_the_session_close() {
|
|
57
57
|
let (a, b) = session_pair(Config::default()).await;
|
|
58
58
|
let mut first = a.open_stream().await.unwrap();
|
|
@@ -71,7 +71,7 @@ async fn a_stream_close_is_separate_from_the_session_close() {
|
|
|
71
71
|
assert_eq!(&buf, b"more");
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
#[tokio::test]
|
|
74
|
+
#[tokio::test(start_paused = true)]
|
|
75
75
|
async fn either_side_can_open_a_stream() {
|
|
76
76
|
let (a, b) = session_pair(Config::default()).await;
|
|
77
77
|
let mut from_b = b.open_stream().await.unwrap();
|
|
@@ -82,7 +82,7 @@ async fn either_side_can_open_a_stream() {
|
|
|
82
82
|
assert_eq!(&buf, b"hi");
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
#[tokio::test]
|
|
85
|
+
#[tokio::test(start_paused = true)]
|
|
86
86
|
async fn a_closed_session_ends_the_peer_with_a_graceful_end() {
|
|
87
87
|
let (a, b) = session_pair(Config::default()).await;
|
|
88
88
|
let mut s = a.open_stream().await.unwrap();
|
|
@@ -95,7 +95,7 @@ async fn a_closed_session_ends_the_peer_with_a_graceful_end() {
|
|
|
95
95
|
assert!(b.accept_stream().await.is_err());
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
#[tokio::test]
|
|
98
|
+
#[tokio::test(start_paused = true)]
|
|
99
99
|
async fn a_stream_writer_waits_for_window_when_the_reader_is_slow() {
|
|
100
100
|
let config = Config {
|
|
101
101
|
stream_window: 64 * 1024,
|
|
@@ -133,7 +133,7 @@ async fn session_pair_with_subflows(n: usize, config: Config) -> (Session, Sessi
|
|
|
133
133
|
(a, b)
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
#[tokio::test(
|
|
136
|
+
#[tokio::test(start_paused = true)]
|
|
137
137
|
async fn frames_spread_over_several_subflows_arrive_in_order() {
|
|
138
138
|
let config = Config {
|
|
139
139
|
subflow_window: 128 * 1024,
|
|
@@ -168,7 +168,7 @@ async fn frames_spread_over_several_subflows_arrive_in_order() {
|
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
#[tokio::test(
|
|
171
|
+
#[tokio::test(start_paused = true)]
|
|
172
172
|
async fn the_unacknowledged_buffer_is_bounded_in_bytes() {
|
|
173
173
|
let bound = 256 * 1024;
|
|
174
174
|
let config = Config {
|
|
@@ -228,7 +228,7 @@ async fn the_unacknowledged_buffer_is_bounded_in_bytes() {
|
|
|
228
228
|
/// A waiter that a local close must end returns within this long, or the test fails.
|
|
229
229
|
const PROMPT: Duration = Duration::from_secs(3);
|
|
230
230
|
|
|
231
|
-
#[tokio::test(
|
|
231
|
+
#[tokio::test(start_paused = true)]
|
|
232
232
|
async fn a_local_close_ends_a_pending_accept_on_the_same_side() {
|
|
233
233
|
let (a, _b) = session_pair(Config::default()).await;
|
|
234
234
|
let a = std::sync::Arc::new(a);
|
|
@@ -242,7 +242,7 @@ async fn a_local_close_ends_a_pending_accept_on_the_same_side() {
|
|
|
242
242
|
assert!(matches!(ended.unwrap(), Err(letify_link::Error::Closed)));
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
#[tokio::test(
|
|
245
|
+
#[tokio::test(start_paused = true)]
|
|
246
246
|
async fn accept_after_a_local_close_returns_closed() {
|
|
247
247
|
let (a, _b) = session_pair(Config::default()).await;
|
|
248
248
|
a.close().await;
|
|
@@ -252,7 +252,7 @@ async fn accept_after_a_local_close_returns_closed() {
|
|
|
252
252
|
assert!(matches!(ended, Err(letify_link::Error::Closed)));
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
#[tokio::test(
|
|
255
|
+
#[tokio::test(start_paused = true)]
|
|
256
256
|
async fn a_local_close_ends_a_pending_read_on_an_open_stream() {
|
|
257
257
|
let (a, b) = session_pair(Config::default()).await;
|
|
258
258
|
let mut s = a.open_stream().await.unwrap();
|
|
@@ -270,7 +270,7 @@ async fn a_local_close_ends_a_pending_read_on_an_open_stream() {
|
|
|
270
270
|
assert_eq!(ended.unwrap().unwrap(), 0);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
#[tokio::test(
|
|
273
|
+
#[tokio::test(start_paused = true)]
|
|
274
274
|
async fn a_local_close_ends_a_write_that_waits_for_window() {
|
|
275
275
|
let (a, b) = session_pair(Config::default()).await;
|
|
276
276
|
let mut s = a.open_stream().await.unwrap();
|
|
@@ -9,7 +9,7 @@ use letify_link::Config;
|
|
|
9
9
|
use letify_link::trace::{TraceConfig, spawn};
|
|
10
10
|
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
|
11
11
|
|
|
12
|
-
#[tokio::test]
|
|
12
|
+
#[tokio::test(start_paused = true)]
|
|
13
13
|
async fn a_traced_session_appends_a_line_with_its_subflows_while_it_carries_data() {
|
|
14
14
|
let (a, b) = session_pair(Config::default()).await;
|
|
15
15
|
let dir = std::env::temp_dir().join(format!("ll-trace-{}", std::process::id()));
|
|
@@ -61,7 +61,7 @@ fn trace_file(name: &str) -> (std::path::PathBuf, std::path::PathBuf) {
|
|
|
61
61
|
(dir, path)
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
#[tokio::test]
|
|
64
|
+
#[tokio::test(start_paused = true)]
|
|
65
65
|
async fn a_tcp_like_subflow_line_names_its_kind_and_that_it_has_no_gauge() {
|
|
66
66
|
let (a, b) = session_pair(Config::default()).await;
|
|
67
67
|
let (dir, path) = trace_file("kind");
|
|
@@ -88,7 +88,7 @@ async fn a_tcp_like_subflow_line_names_its_kind_and_that_it_has_no_gauge() {
|
|
|
88
88
|
std::fs::remove_dir_all(&dir).unwrap();
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
#[tokio::test]
|
|
91
|
+
#[tokio::test(start_paused = true)]
|
|
92
92
|
async fn closing_a_subflow_writes_one_event_line_with_the_reason() {
|
|
93
93
|
let (a, _b) = session_pair(Config::default()).await;
|
|
94
94
|
let (dir, path) = trace_file("closed");
|
|
@@ -110,7 +110,7 @@ async fn closing_a_subflow_writes_one_event_line_with_the_reason() {
|
|
|
110
110
|
std::fs::remove_dir_all(&dir).unwrap();
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
#[tokio::test]
|
|
113
|
+
#[tokio::test(start_paused = true)]
|
|
114
114
|
async fn a_failed_session_writes_an_event_line_with_the_failure_text() {
|
|
115
115
|
let config = Config {
|
|
116
116
|
resume_window: Duration::from_millis(100),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "letify-status",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.6",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "letify-status",
|
|
9
|
-
"version": "2.12.
|
|
9
|
+
"version": "2.12.6",
|
|
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.12.
|
|
5
|
+
"version": "2.12.6",
|
|
6
6
|
"publisher": "darkpyonix",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE",
|
|
8
8
|
"repository": {
|