letify 2.12.4__tar.gz → 2.12.5__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.
Files changed (322) hide show
  1. {letify-2.12.4 → letify-2.12.5}/PKG-INFO +1 -1
  2. {letify-2.12.4 → letify-2.12.5}/docs/SPEC.md +2 -0
  3. {letify-2.12.4 → letify-2.12.5}/letify/__init__.py +1 -1
  4. {letify-2.12.4 → letify-2.12.5}/letify/providers/colab.py +24 -2
  5. {letify-2.12.4 → letify-2.12.5}/letify-core/Cargo.lock +3 -3
  6. {letify-2.12.4 → letify-2.12.5}/letify-core/Cargo.toml +1 -1
  7. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/Cargo.toml +1 -1
  8. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/fairness.rs +7 -2
  9. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/gauge.rs +9 -1
  10. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/handshake.rs +1 -1
  11. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/keepalive.rs +7 -7
  12. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/rekey.rs +5 -5
  13. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/replay.rs +5 -5
  14. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/session.rs +11 -11
  15. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/trace.rs +4 -4
  16. {letify-2.12.4 → letify-2.12.5}/letify-ext/package-lock.json +2 -2
  17. {letify-2.12.4 → letify-2.12.5}/letify-ext/package.json +1 -1
  18. {letify-2.12.4 → letify-2.12.5}/pyproject.toml +1 -1
  19. {letify-2.12.4 → letify-2.12.5}/tests/test_providers.py +40 -0
  20. {letify-2.12.4 → letify-2.12.5}/.github/workflows/ci.yml +0 -0
  21. {letify-2.12.4 → letify-2.12.5}/.github/workflows/docs.yml +0 -0
  22. {letify-2.12.4 → letify-2.12.5}/.github/workflows/letify-link.yml +0 -0
  23. {letify-2.12.4 → letify-2.12.5}/.github/workflows/publish-crates.yml +0 -0
  24. {letify-2.12.4 → letify-2.12.5}/.github/workflows/publish.yml +0 -0
  25. {letify-2.12.4 → letify-2.12.5}/.github/workflows/reserve-crates.yml +0 -0
  26. {letify-2.12.4 → letify-2.12.5}/.gitignore +0 -0
  27. {letify-2.12.4 → letify-2.12.5}/.researchtree +0 -0
  28. {letify-2.12.4 → letify-2.12.5}/CLAUDE.md +0 -0
  29. {letify-2.12.4 → letify-2.12.5}/LICENSE +0 -0
  30. {letify-2.12.4 → letify-2.12.5}/PROJECT.md +0 -0
  31. {letify-2.12.4 → letify-2.12.5}/README.md +0 -0
  32. {letify-2.12.4 → letify-2.12.5}/docs/COMPONENT.md +0 -0
  33. {letify-2.12.4 → letify-2.12.5}/docs/INTENT.md +0 -0
  34. {letify-2.12.4 → letify-2.12.5}/docs/NETWORK.md +0 -0
  35. {letify-2.12.4 → letify-2.12.5}/docs/ROADMAP-3.0.md +0 -0
  36. {letify-2.12.4 → letify-2.12.5}/docs/guide/01-getting-started.md +0 -0
  37. {letify-2.12.4 → letify-2.12.5}/docs/guide/02-providers.md +0 -0
  38. {letify-2.12.4 → letify-2.12.5}/docs/guide/03-execution-modes.md +0 -0
  39. {letify-2.12.4 → letify-2.12.5}/docs/guide/04-environments-and-data.md +0 -0
  40. {letify-2.12.4 → letify-2.12.5}/docs/guide/05-concurrency.md +0 -0
  41. {letify-2.12.4 → letify-2.12.5}/docs/guide/06-cost.md +0 -0
  42. {letify-2.12.4 → letify-2.12.5}/docs/guide/07-troubleshooting.md +0 -0
  43. {letify-2.12.4 → letify-2.12.5}/docs/guide/08-releasing.md +0 -0
  44. {letify-2.12.4 → letify-2.12.5}/docs/guide/09-agent.md +0 -0
  45. {letify-2.12.4 → letify-2.12.5}/docs/guide/README.md +0 -0
  46. {letify-2.12.4 → letify-2.12.5}/docs/guide/ko/01-/354/213/234/354/236/221/355/225/230/352/270/260.md" +0 -0
  47. {letify-2.12.4 → letify-2.12.5}/docs/guide/ko/02-/355/224/204/353/241/234/353/260/224/354/235/264/353/215/224.md" +0 -0
  48. {letify-2.12.4 → letify-2.12.5}/docs/guide/ko/03-/354/213/244/355/226/211-/353/260/251/354/213/235.md" +0 -0
  49. {letify-2.12.4 → letify-2.12.5}/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
  50. {letify-2.12.4 → letify-2.12.5}/docs/guide/ko/05-/353/217/231/354/213/234-/354/213/244/355/226/211.md" +0 -0
  51. {letify-2.12.4 → letify-2.12.5}/docs/guide/ko/06-/353/271/204/354/232/251.md" +0 -0
  52. {letify-2.12.4 → letify-2.12.5}/docs/guide/ko/07-/353/254/270/354/240/234-/355/225/264/352/262/260.md" +0 -0
  53. {letify-2.12.4 → letify-2.12.5}/docs/guide/ko/08-/353/246/264/353/246/254/354/212/244.md" +0 -0
  54. {letify-2.12.4 → letify-2.12.5}/docs/guide/ko/09-/354/227/220/354/235/264/354/240/204/355/212/270.md" +0 -0
  55. {letify-2.12.4 → letify-2.12.5}/docs/guide/ko/README.md +0 -0
  56. {letify-2.12.4 → letify-2.12.5}/docs/locales/README_ko.md +0 -0
  57. {letify-2.12.4 → letify-2.12.5}/docs/mkdocs.yml +0 -0
  58. {letify-2.12.4 → letify-2.12.5}/examples/README.md +0 -0
  59. {letify-2.12.4 → letify-2.12.5}/examples/nvfp4-lora/.letify.example +0 -0
  60. {letify-2.12.4 → letify-2.12.5}/examples/nvfp4-lora/00_smoke.py +0 -0
  61. {letify-2.12.4 → letify-2.12.5}/examples/nvfp4-lora/01_sweep.py +0 -0
  62. {letify-2.12.4 → letify-2.12.5}/examples/nvfp4-lora/02_resume.py +0 -0
  63. {letify-2.12.4 → letify-2.12.5}/examples/nvfp4-lora/03_watch.py +0 -0
  64. {letify-2.12.4 → letify-2.12.5}/examples/nvfp4-lora/README.md +0 -0
  65. {letify-2.12.4 → letify-2.12.5}/examples/nvfp4-lora/README_ko.md +0 -0
  66. {letify-2.12.4 → letify-2.12.5}/examples/nvfp4-lora/common.py +0 -0
  67. {letify-2.12.4 → letify-2.12.5}/examples/nvfp4-lora/recipe.py +0 -0
  68. {letify-2.12.4 → letify-2.12.5}/letify/cli.py +0 -0
  69. {letify-2.12.4 → letify-2.12.5}/letify/config/__init__.py +0 -0
  70. {letify-2.12.4 → letify-2.12.5}/letify/config/inventory.py +0 -0
  71. {letify-2.12.4 → letify-2.12.5}/letify/config/login.py +0 -0
  72. {letify-2.12.4 → letify-2.12.5}/letify/config/schema.py +0 -0
  73. {letify-2.12.4 → letify-2.12.5}/letify/config/secrets.py +0 -0
  74. {letify-2.12.4 → letify-2.12.5}/letify/config/writer.py +0 -0
  75. {letify-2.12.4 → letify-2.12.5}/letify/declare/__init__.py +0 -0
  76. {letify-2.12.4 → letify-2.12.5}/letify/declare/cache.py +0 -0
  77. {letify-2.12.4 → letify-2.12.5}/letify/declare/env.py +0 -0
  78. {letify-2.12.4 → letify-2.12.5}/letify/declare/exit.py +0 -0
  79. {letify-2.12.4 → letify-2.12.5}/letify/declare/function.py +0 -0
  80. {letify-2.12.4 → letify-2.12.5}/letify/declare/instance.py +0 -0
  81. {letify-2.12.4 → letify-2.12.5}/letify/declare/reduce.py +0 -0
  82. {letify-2.12.4 → letify-2.12.5}/letify/declare/replicas.py +0 -0
  83. {letify-2.12.4 → letify-2.12.5}/letify/errors.py +0 -0
  84. {letify-2.12.4 → letify-2.12.5}/letify/install.py +0 -0
  85. {letify-2.12.4 → letify-2.12.5}/letify/launcher.py +0 -0
  86. {letify-2.12.4 → letify-2.12.5}/letify/paths.py +0 -0
  87. {letify-2.12.4 → letify-2.12.5}/letify/protocol/__init__.py +0 -0
  88. {letify-2.12.4 → letify-2.12.5}/letify/protocol/codec.py +0 -0
  89. {letify-2.12.4 → letify-2.12.5}/letify/protocol/driver.py +0 -0
  90. {letify-2.12.4 → letify-2.12.5}/letify/protocol/handle.py +0 -0
  91. {letify-2.12.4 → letify-2.12.5}/letify/protocol/wire.py +0 -0
  92. {letify-2.12.4 → letify-2.12.5}/letify/protocol/worker.py +0 -0
  93. {letify-2.12.4 → letify-2.12.5}/letify/providers/__init__.py +0 -0
  94. {letify-2.12.4 → letify-2.12.5}/letify/providers/base.py +0 -0
  95. {letify-2.12.4 → letify-2.12.5}/letify/providers/colab_files.py +0 -0
  96. {letify-2.12.4 → letify-2.12.5}/letify/providers/colab_keepalive.py +0 -0
  97. {letify-2.12.4 → letify-2.12.5}/letify/providers/elice.py +0 -0
  98. {letify-2.12.4 → letify-2.12.5}/letify/providers/kaggle.py +0 -0
  99. {letify-2.12.4 → letify-2.12.5}/letify/providers/kaggle_adapter.py +0 -0
  100. {letify-2.12.4 → letify-2.12.5}/letify/providers/local.py +0 -0
  101. {letify-2.12.4 → letify-2.12.5}/letify/providers/modal.py +0 -0
  102. {letify-2.12.4 → letify-2.12.5}/letify/providers/modal_adapter.py +0 -0
  103. {letify-2.12.4 → letify-2.12.5}/letify/providers/naming.py +0 -0
  104. {letify-2.12.4 → letify-2.12.5}/letify/providers/shell.py +0 -0
  105. {letify-2.12.4 → letify-2.12.5}/letify/providers/tunnel.py +0 -0
  106. {letify-2.12.4 → letify-2.12.5}/letify/providers/usage.py +0 -0
  107. {letify-2.12.4 → letify-2.12.5}/letify/remoting/__init__.py +0 -0
  108. {letify-2.12.4 → letify-2.12.5}/letify/remoting/device/__init__.py +0 -0
  109. {letify-2.12.4 → letify-2.12.5}/letify/remoting/device/client.py +0 -0
  110. {letify-2.12.4 → letify-2.12.5}/letify/remoting/device/cuda.py +0 -0
  111. {letify-2.12.4 → letify-2.12.5}/letify/remoting/device/executor.py +0 -0
  112. {letify-2.12.4 → letify-2.12.5}/letify/remoting/device/frames.py +0 -0
  113. {letify-2.12.4 → letify-2.12.5}/letify/remoting/device/guard.py +0 -0
  114. {letify-2.12.4 → letify-2.12.5}/letify/remoting/device/tensor.py +0 -0
  115. {letify-2.12.4 → letify-2.12.5}/letify/remoting/device/trace.py +0 -0
  116. {letify-2.12.4 → letify-2.12.5}/letify/remoting/device/value.py +0 -0
  117. {letify-2.12.4 → letify-2.12.5}/letify/render.py +0 -0
  118. {letify-2.12.4 → letify-2.12.5}/letify/runtime/__init__.py +0 -0
  119. {letify-2.12.4 → letify-2.12.5}/letify/runtime/bootstrap.py +0 -0
  120. {letify-2.12.4 → letify-2.12.5}/letify/runtime/broker.py +0 -0
  121. {letify-2.12.4 → letify-2.12.5}/letify/runtime/channel.py +0 -0
  122. {letify-2.12.4 → letify-2.12.5}/letify/runtime/control.py +0 -0
  123. {letify-2.12.4 → letify-2.12.5}/letify/runtime/lease.py +0 -0
  124. {letify-2.12.4 → letify-2.12.5}/letify/runtime/pool.py +0 -0
  125. {letify-2.12.4 → letify-2.12.5}/letify/runtime/reattach.py +0 -0
  126. {letify-2.12.4 → letify-2.12.5}/letify/runtime/session.py +0 -0
  127. {letify-2.12.4 → letify-2.12.5}/letify/runtime/takeover.py +0 -0
  128. {letify-2.12.4 → letify-2.12.5}/letify/runtime/telemetry.py +0 -0
  129. {letify-2.12.4 → letify-2.12.5}/letify/runtime/workers.py +0 -0
  130. {letify-2.12.4 → letify-2.12.5}/letify/store/__init__.py +0 -0
  131. {letify-2.12.4 → letify-2.12.5}/letify/store/backends/__init__.py +0 -0
  132. {letify-2.12.4 → letify-2.12.5}/letify/store/backends/drive.py +0 -0
  133. {letify-2.12.4 → letify-2.12.5}/letify/store/backends/filesystem.py +0 -0
  134. {letify-2.12.4 → letify-2.12.5}/letify/store/backends/google_auth.py +0 -0
  135. {letify-2.12.4 → letify-2.12.5}/letify/store/backends/layout.py +0 -0
  136. {letify-2.12.4 → letify-2.12.5}/letify/store/backends/objects.py +0 -0
  137. {letify-2.12.4 → letify-2.12.5}/letify/store/cas.py +0 -0
  138. {letify-2.12.4 → letify-2.12.5}/letify/store/handoff.py +0 -0
  139. {letify-2.12.4 → letify-2.12.5}/letify/store/pathdata.py +0 -0
  140. {letify-2.12.4 → letify-2.12.5}/letify/store/sendorder.py +0 -0
  141. {letify-2.12.4 → letify-2.12.5}/letify/store/volume.py +0 -0
  142. {letify-2.12.4 → letify-2.12.5}/letify/stubs.py +0 -0
  143. {letify-2.12.4 → letify-2.12.5}/letify/tools.py +0 -0
  144. {letify-2.12.4 → letify-2.12.5}/letify/transport/__init__.py +0 -0
  145. {letify-2.12.4 → letify-2.12.5}/letify/transport/agent.py +0 -0
  146. {letify-2.12.4 → letify-2.12.5}/letify/transport/announce.py +0 -0
  147. {letify-2.12.4 → letify-2.12.5}/letify/transport/link.py +0 -0
  148. {letify-2.12.4 → letify-2.12.5}/letify/transport/linkagent.py +0 -0
  149. {letify-2.12.4 → letify-2.12.5}/letify/transport/linkchannel.py +0 -0
  150. {letify-2.12.4 → letify-2.12.5}/letify/transport/linkd.py +0 -0
  151. {letify-2.12.4 → letify-2.12.5}/letify/transport/linkmailbox.py +0 -0
  152. {letify-2.12.4 → letify-2.12.5}/letify/transport/linkpump.py +0 -0
  153. {letify-2.12.4 → letify-2.12.5}/letify/transport/linkshim.py +0 -0
  154. {letify-2.12.4 → letify-2.12.5}/letify/transport/linksignal.py +0 -0
  155. {letify-2.12.4 → letify-2.12.5}/letify/transport/linkupload.py +0 -0
  156. {letify-2.12.4 → letify-2.12.5}/letify/transport/linkwebsocket.py +0 -0
  157. {letify-2.12.4 → letify-2.12.5}/letify/transport/nat.py +0 -0
  158. {letify-2.12.4 → letify-2.12.5}/letify/transport/pipeline.py +0 -0
  159. {letify-2.12.4 → letify-2.12.5}/letify/transport/portmap.py +0 -0
  160. {letify-2.12.4 → letify-2.12.5}/letify/transport/probe.py +0 -0
  161. {letify-2.12.4 → letify-2.12.5}/letify/transport/quic.py +0 -0
  162. {letify-2.12.4 → letify-2.12.5}/letify/transport/rendezvous.py +0 -0
  163. {letify-2.12.4 → letify-2.12.5}/letify/transport/setup.py +0 -0
  164. {letify-2.12.4 → letify-2.12.5}/letify/transport/sshopts.py +0 -0
  165. {letify-2.12.4 → letify-2.12.5}/letify/transport/strategies.py +0 -0
  166. {letify-2.12.4 → letify-2.12.5}/letify/useragent.py +0 -0
  167. {letify-2.12.4 → letify-2.12.5}/letify-core/.gitignore +0 -0
  168. {letify-2.12.4 → letify-2.12.5}/letify-core/build.py +0 -0
  169. {letify-2.12.4 → letify-2.12.5}/letify-core/letify/Cargo.toml +0 -0
  170. {letify-2.12.4 → letify-2.12.5}/letify-core/letify/LICENSE +0 -0
  171. {letify-2.12.4 → letify-2.12.5}/letify-core/letify/README.md +0 -0
  172. {letify-2.12.4 → letify-2.12.5}/letify-core/letify/src/lib.rs +0 -0
  173. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/examples/bench.rs +0 -0
  174. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/acceptor.rs +0 -0
  175. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/bin/letify-link.rs +0 -0
  176. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/config.rs +0 -0
  177. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/error.rs +0 -0
  178. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/frame.rs +0 -0
  179. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/handshake.rs +0 -0
  180. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/hysteresis.rs +0 -0
  181. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/identity.rs +0 -0
  182. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/keys.rs +0 -0
  183. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/lib.rs +0 -0
  184. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/observe.rs +0 -0
  185. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/paths.rs +0 -0
  186. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/plan.rs +0 -0
  187. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/policing.rs +0 -0
  188. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/punch.rs +0 -0
  189. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/record.rs +0 -0
  190. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/relay.rs +0 -0
  191. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/rendezvous.rs +0 -0
  192. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/replay.rs +0 -0
  193. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/session.rs +0 -0
  194. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/sidecar.rs +0 -0
  195. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/stream.rs +0 -0
  196. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/stun.rs +0 -0
  197. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/tcp.rs +0 -0
  198. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/trace.rs +0 -0
  199. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/src/udp.rs +0 -0
  200. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/acceptor.rs +0 -0
  201. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/api.rs +0 -0
  202. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/common/mod.rs +0 -0
  203. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/diag_sim.rs +0 -0
  204. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/hysteresis.rs +0 -0
  205. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/mobile.rs +0 -0
  206. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/nat.rs +0 -0
  207. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/paths.rs +0 -0
  208. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/qad.rs +0 -0
  209. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/relay.rs +0 -0
  210. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/relay_pairing.rs +0 -0
  211. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/rendezvous.rs +0 -0
  212. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/reorder.rs +0 -0
  213. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/resume.rs +0 -0
  214. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/revoke.rs +0 -0
  215. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/sidecar.rs +0 -0
  216. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/startup.rs +0 -0
  217. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/subflows.rs +0 -0
  218. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/udp.rs +0 -0
  219. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-link/tests/udp_bench.rs +0 -0
  220. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-quic/Cargo.toml +0 -0
  221. {letify-2.12.4 → letify-2.12.5}/letify-core/letify-quic/src/main.rs +0 -0
  222. {letify-2.12.4 → letify-2.12.5}/letify-core/rust-toolchain.toml +0 -0
  223. {letify-2.12.4 → letify-2.12.5}/letify-ext/.vscodeignore +0 -0
  224. {letify-2.12.4 → letify-2.12.5}/letify-ext/LICENSE +0 -0
  225. {letify-2.12.4 → letify-2.12.5}/letify-ext/README.md +0 -0
  226. {letify-2.12.4 → letify-2.12.5}/letify-ext/media/icon.svg +0 -0
  227. {letify-2.12.4 → letify-2.12.5}/letify-ext/src/cli.ts +0 -0
  228. {letify-2.12.4 → letify-2.12.5}/letify-ext/src/extension.ts +0 -0
  229. {letify-2.12.4 → letify-2.12.5}/letify-ext/src/history.ts +0 -0
  230. {letify-2.12.4 → letify-2.12.5}/letify-ext/src/model.ts +0 -0
  231. {letify-2.12.4 → letify-2.12.5}/letify-ext/src/poll.ts +0 -0
  232. {letify-2.12.4 → letify-2.12.5}/letify-ext/src/render.ts +0 -0
  233. {letify-2.12.4 → letify-2.12.5}/letify-ext/test/cli.test.ts +0 -0
  234. {letify-2.12.4 → letify-2.12.5}/letify-ext/test/manifest.test.ts +0 -0
  235. {letify-2.12.4 → letify-2.12.5}/letify-ext/test/model.test.ts +0 -0
  236. {letify-2.12.4 → letify-2.12.5}/letify-ext/test/regressions.test.ts +0 -0
  237. {letify-2.12.4 → letify-2.12.5}/letify-ext/tsconfig.json +0 -0
  238. {letify-2.12.4 → letify-2.12.5}/letify-signal/README.md +0 -0
  239. {letify-2.12.4 → letify-2.12.5}/letify-signal/cloudflare.config.ts +0 -0
  240. {letify-2.12.4 → letify-2.12.5}/letify-signal/package-lock.json +0 -0
  241. {letify-2.12.4 → letify-2.12.5}/letify-signal/package.json +0 -0
  242. {letify-2.12.4 → letify-2.12.5}/letify-signal/src/auth.ts +0 -0
  243. {letify-2.12.4 → letify-2.12.5}/letify-signal/src/ed25519.ts +0 -0
  244. {letify-2.12.4 → letify-2.12.5}/letify-signal/src/handler.ts +0 -0
  245. {letify-2.12.4 → letify-2.12.5}/letify-signal/src/index.ts +0 -0
  246. {letify-2.12.4 → letify-2.12.5}/letify-signal/src/limiter.ts +0 -0
  247. {letify-2.12.4 → letify-2.12.5}/letify-signal/src/mailbox.ts +0 -0
  248. {letify-2.12.4 → letify-2.12.5}/letify-signal/src/objects.ts +0 -0
  249. {letify-2.12.4 → letify-2.12.5}/letify-signal/src/protocol.ts +0 -0
  250. {letify-2.12.4 → letify-2.12.5}/letify-signal/src/storage.ts +0 -0
  251. {letify-2.12.4 → letify-2.12.5}/letify-signal/test/auth.test.ts +0 -0
  252. {letify-2.12.4 → letify-2.12.5}/letify-signal/test/ed25519.test.ts +0 -0
  253. {letify-2.12.4 → letify-2.12.5}/letify-signal/test/helpers.ts +0 -0
  254. {letify-2.12.4 → letify-2.12.5}/letify-signal/test/interop.test.ts +0 -0
  255. {letify-2.12.4 → letify-2.12.5}/letify-signal/test/limiter.test.ts +0 -0
  256. {letify-2.12.4 → letify-2.12.5}/letify-signal/test/mailbox.test.ts +0 -0
  257. {letify-2.12.4 → letify-2.12.5}/letify-signal/test/objects.test.ts +0 -0
  258. {letify-2.12.4 → letify-2.12.5}/letify-signal/test/setup.ts +0 -0
  259. {letify-2.12.4 → letify-2.12.5}/letify-signal/test/worker.test.ts +0 -0
  260. {letify-2.12.4 → letify-2.12.5}/letify-signal/tsconfig.json +0 -0
  261. {letify-2.12.4 → letify-2.12.5}/letify-signal/vitest.config.ts +0 -0
  262. {letify-2.12.4 → letify-2.12.5}/letify_providers.py +0 -0
  263. {letify-2.12.4 → letify-2.12.5}/scripts/sync-main.sh +0 -0
  264. {letify-2.12.4 → letify-2.12.5}/scripts/version.py +0 -0
  265. {letify-2.12.4 → letify-2.12.5}/tests/conftest.py +0 -0
  266. {letify-2.12.4 → letify-2.12.5}/tests/fake_kaggle_adapter.py +0 -0
  267. {letify-2.12.4 → letify-2.12.5}/tests/fake_modal_adapter.py +0 -0
  268. {letify-2.12.4 → letify-2.12.5}/tests/test_cli.py +0 -0
  269. {letify-2.12.4 → letify-2.12.5}/tests/test_cli_output.py +0 -0
  270. {letify-2.12.4 → letify-2.12.5}/tests/test_colab_keepalive.py +0 -0
  271. {letify-2.12.4 → letify-2.12.5}/tests/test_config.py +0 -0
  272. {letify-2.12.4 → letify-2.12.5}/tests/test_core.py +0 -0
  273. {letify-2.12.4 → letify-2.12.5}/tests/test_data.py +0 -0
  274. {letify-2.12.4 → letify-2.12.5}/tests/test_data_in_place.py +0 -0
  275. {letify-2.12.4 → letify-2.12.5}/tests/test_data_streaming.py +0 -0
  276. {letify-2.12.4 → letify-2.12.5}/tests/test_declare.py +0 -0
  277. {letify-2.12.4 → letify-2.12.5}/tests/test_device.py +0 -0
  278. {letify-2.12.4 → letify-2.12.5}/tests/test_device_compile.py +0 -0
  279. {letify-2.12.4 → letify-2.12.5}/tests/test_distributed.py +0 -0
  280. {letify-2.12.4 → letify-2.12.5}/tests/test_drive_handoff.py +0 -0
  281. {letify-2.12.4 → letify-2.12.5}/tests/test_drive_store.py +0 -0
  282. {letify-2.12.4 → letify-2.12.5}/tests/test_editor_sessions.py +0 -0
  283. {letify-2.12.4 → letify-2.12.5}/tests/test_elice.py +0 -0
  284. {letify-2.12.4 → letify-2.12.5}/tests/test_frames.py +0 -0
  285. {letify-2.12.4 → letify-2.12.5}/tests/test_install.py +0 -0
  286. {letify-2.12.4 → letify-2.12.5}/tests/test_kaggle.py +0 -0
  287. {letify-2.12.4 → letify-2.12.5}/tests/test_kaggle_cookie.py +0 -0
  288. {letify-2.12.4 → letify-2.12.5}/tests/test_kaggle_link.py +0 -0
  289. {letify-2.12.4 → letify-2.12.5}/tests/test_link_agent.py +0 -0
  290. {letify-2.12.4 → letify-2.12.5}/tests/test_link_channel.py +0 -0
  291. {letify-2.12.4 → letify-2.12.5}/tests/test_link_command_channel.py +0 -0
  292. {letify-2.12.4 → letify-2.12.5}/tests/test_link_exec.py +0 -0
  293. {letify-2.12.4 → letify-2.12.5}/tests/test_link_log.py +0 -0
  294. {letify-2.12.4 → letify-2.12.5}/tests/test_link_mailbox_close.py +0 -0
  295. {letify-2.12.4 → letify-2.12.5}/tests/test_link_opt_in.py +0 -0
  296. {letify-2.12.4 → letify-2.12.5}/tests/test_link_signal.py +0 -0
  297. {letify-2.12.4 → letify-2.12.5}/tests/test_link_ssh_stream.py +0 -0
  298. {letify-2.12.4 → letify-2.12.5}/tests/test_link_upload.py +0 -0
  299. {letify-2.12.4 → letify-2.12.5}/tests/test_linkd.py +0 -0
  300. {letify-2.12.4 → letify-2.12.5}/tests/test_notebook.py +0 -0
  301. {letify-2.12.4 → letify-2.12.5}/tests/test_parallel_placement.py +0 -0
  302. {letify-2.12.4 → letify-2.12.5}/tests/test_paths.py +0 -0
  303. {letify-2.12.4 → letify-2.12.5}/tests/test_portmap.py +0 -0
  304. {letify-2.12.4 → letify-2.12.5}/tests/test_protocol.py +0 -0
  305. {letify-2.12.4 → letify-2.12.5}/tests/test_punch_sockets.py +0 -0
  306. {letify-2.12.4 → letify-2.12.5}/tests/test_quic.py +0 -0
  307. {letify-2.12.4 → letify-2.12.5}/tests/test_remoting.py +0 -0
  308. {letify-2.12.4 → letify-2.12.5}/tests/test_render.py +0 -0
  309. {letify-2.12.4 → letify-2.12.5}/tests/test_run_control.py +0 -0
  310. {letify-2.12.4 → letify-2.12.5}/tests/test_run_reattach.py +0 -0
  311. {letify-2.12.4 → letify-2.12.5}/tests/test_run_takeover.py +0 -0
  312. {letify-2.12.4 → letify-2.12.5}/tests/test_runtime.py +0 -0
  313. {letify-2.12.4 → letify-2.12.5}/tests/test_shell_workers.py +0 -0
  314. {letify-2.12.4 → letify-2.12.5}/tests/test_ship.py +0 -0
  315. {letify-2.12.4 → letify-2.12.5}/tests/test_store.py +0 -0
  316. {letify-2.12.4 → letify-2.12.5}/tests/test_strategies.py +0 -0
  317. {letify-2.12.4 → letify-2.12.5}/tests/test_stubs.py +0 -0
  318. {letify-2.12.4 → letify-2.12.5}/tests/test_transport.py +0 -0
  319. {letify-2.12.4 → letify-2.12.5}/tests/test_tunnel_agent_login.py +0 -0
  320. {letify-2.12.4 → letify-2.12.5}/tests/test_tunnel_setup.py +0 -0
  321. {letify-2.12.4 → letify-2.12.5}/tests/test_user_agent.py +0 -0
  322. {letify-2.12.4 → letify-2.12.5}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: letify
3
- Version: 2.12.4
3
+ Version: 2.12.5
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
@@ -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.
@@ -70,7 +70,7 @@ distributed: Final = Host.distributed
70
70
  # The enum class stays importable from letify.declare.instance for letify's own use.
71
71
  del Host
72
72
 
73
- __version__ = "2.12.4"
73
+ __version__ = "2.12.5"
74
74
 
75
75
 
76
76
  def fetch(tensor): # type: ignore[no-untyped-def]
@@ -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
- return self._cli("exec", "-s", session, stdin=source, timeout=timeout)
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):
@@ -396,11 +396,11 @@ dependencies = [
396
396
 
397
397
  [[package]]
398
398
  name = "letify"
399
- version = "2.12.4"
399
+ version = "2.12.5"
400
400
 
401
401
  [[package]]
402
402
  name = "letify-link"
403
- version = "2.12.4"
403
+ version = "2.12.5"
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.4"
419
+ version = "2.12.5"
420
420
  dependencies = [
421
421
  "quinn",
422
422
  "rcgen",
@@ -8,7 +8,7 @@ resolver = "3"
8
8
  members = ["letify", "letify-quic", "letify-link"]
9
9
 
10
10
  [workspace.package]
11
- version = "2.12.4"
11
+ version = "2.12.5"
12
12
  edition = "2024"
13
13
  license = "MIT"
14
14
  repository = "https://github.com/DarkPyonix/letify"
@@ -33,4 +33,4 @@ libc = "0.2"
33
33
  relay = ["tokio/rt-multi-thread"]
34
34
 
35
35
  [dev-dependencies]
36
- tokio = { version = "1", features = ["full"] }
36
+ tokio = { version = "1", features = ["full", "test-util"] }
@@ -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
- tokio::time::sleep(Duration::from_secs(5)).await;
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 / 5.0 / MIB)
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
- tokio::time::sleep(Duration::from_millis(200)).await;
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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(flavor = "multi_thread")]
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.4",
3
+ "version": "2.12.5",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "letify-status",
9
- "version": "2.12.4",
9
+ "version": "2.12.5",
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.4",
5
+ "version": "2.12.5",
6
6
  "publisher": "darkpyonix",
7
7
  "license": "SEE LICENSE IN LICENSE",
8
8
  "repository": {
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "letify"
3
- version = "2.12.4"
3
+ version = "2.12.5"
4
4
  description = "Declarations that become infrastructure."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -3380,3 +3380,43 @@ def test_the_kaggle_cli_runs_with_six_because_its_release_imports_it_undeclared(
3380
3380
  "kaggle",
3381
3381
  "kaggle",
3382
3382
  ]
3383
+
3384
+
3385
+ # Spec: Colab, the fallback raises a remote traceback instead of discarding it.
3386
+ def test_colab_exec_that_exited_zero_with_a_traceback_raises_it(
3387
+ isolated_home, patch_which, patch_run
3388
+ ):
3389
+ patch_which(tools_module, present=True)
3390
+ traceback = (
3391
+ "Traceback (most recent call last):\n"
3392
+ ' File "<x>", line 3\n'
3393
+ "RuntimeError: uv sync failed"
3394
+ )
3395
+ patch_run(colab_module, result=FakeCompleted(returncode=0, stdout="", stderr=traceback))
3396
+ provider = provider_of(Colab, "colab_a", channel="exec")
3397
+ runtime = type("R", (), {"name": "letify-cpu-1"})()
3398
+ with pytest.raises(letify.RuntimeFailure) as caught:
3399
+ provider.open_channel(runtime).eval("1", timeout=120)
3400
+ assert "uv sync failed" in caught.value.stderr
3401
+ assert "letify-cpu-1" in str(caught.value)
3402
+
3403
+
3404
+ def test_colab_exec_stderr_beside_a_result_marker_is_not_an_error(
3405
+ isolated_home, patch_which, patch_run
3406
+ ):
3407
+ import base64
3408
+ import pickle
3409
+
3410
+ patch_which(tools_module, present=True)
3411
+ value = base64.b64encode(pickle.dumps(5, protocol=4)).decode()
3412
+ patch_run(
3413
+ colab_module,
3414
+ result=FakeCompleted(
3415
+ returncode=0,
3416
+ stdout=f"__LETIFY_EVAL__{value}\n",
3417
+ stderr="Traceback (most recent call last):\nthe program's own output\n",
3418
+ ),
3419
+ )
3420
+ provider = provider_of(Colab, "colab_a", channel="exec")
3421
+ runtime = type("R", (), {"name": "letify-cpu-1"})()
3422
+ assert provider.open_channel(runtime).eval("1", timeout=120) == 5
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes