simrun 0.2.0__tar.gz → 0.3.1__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 (301) hide show
  1. simrun-0.3.1/.bumpversion.toml +51 -0
  2. {simrun-0.2.0 → simrun-0.3.1}/CITATION.cff +3 -1
  3. {simrun-0.2.0 → simrun-0.3.1}/CLAUDE.md +3 -2
  4. {simrun-0.2.0 → simrun-0.3.1}/PKG-INFO +7 -3
  5. {simrun-0.2.0 → simrun-0.3.1}/README.md +6 -2
  6. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/argo/requeue.yaml +4 -3
  7. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/buildkit.yaml +25 -2
  8. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/simrun.yaml +2 -2
  9. {simrun-0.2.0 → simrun-0.3.1}/deploy/k3d/buildkit.yaml +6 -2
  10. {simrun-0.2.0 → simrun-0.3.1}/deploy/service/Dockerfile +1 -1
  11. {simrun-0.2.0 → simrun-0.3.1}/docs/concepts.md +2 -2
  12. {simrun-0.2.0 → simrun-0.3.1}/docs/deployment.md +6 -6
  13. {simrun-0.2.0 → simrun-0.3.1}/docs/index.md +9 -1
  14. {simrun-0.2.0 → simrun-0.3.1}/docs/local.md +1 -1
  15. {simrun-0.2.0 → simrun-0.3.1}/docs/release-notes.md +4 -0
  16. {simrun-0.2.0 → simrun-0.3.1}/docs/service.md +5 -2
  17. {simrun-0.2.0 → simrun-0.3.1}/docs/testing.md +26 -0
  18. {simrun-0.2.0 → simrun-0.3.1}/docs/web-app.md +2 -2
  19. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/api/openapi.json +12 -1
  20. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/api/schema.d.ts +4 -0
  21. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/Inspector.test.ts +14 -0
  22. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/InspectorLogs.vue +11 -4
  23. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/SchemaForm.test.ts +13 -0
  24. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/SchemaForm.vue +4 -2
  25. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/schema-form.test.ts +11 -0
  26. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/schema-form.ts +5 -1
  27. {simrun-0.2.0 → simrun-0.3.1}/pyproject.toml +4 -4
  28. simrun-0.3.1/release-notes/0.3.0.md +25 -0
  29. simrun-0.3.1/release-notes/0.3.1.md +21 -0
  30. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/__init__.py +1 -1
  31. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/cgroup.py +19 -0
  32. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/cli.py +69 -29
  33. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/client.py +32 -3
  34. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/config.py +16 -1
  35. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/demo.py +1 -0
  36. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/environment.py +53 -9
  37. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/planner.py +30 -6
  38. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/podspec.py +66 -12
  39. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/app.py +15 -6
  40. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/argo_backend.py +91 -2
  41. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/controller.py +2 -3
  42. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/local_backend.py +32 -7
  43. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/submission.py +11 -10
  44. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/snapshot.py +6 -1
  45. simrun-0.2.0/src/simrun/web/assets/EditSessions-CXPjGP--.js → simrun-0.3.1/src/simrun/web/assets/EditSessions-Cwa8Hn5O.js +1 -1
  46. simrun-0.3.1/src/simrun/web/assets/EditorView-DsGltoOh.js +6 -0
  47. simrun-0.3.1/src/simrun/web/assets/ExecutionsView-D56ZSL8L.js +3 -0
  48. simrun-0.2.0/src/simrun/web/assets/index-D5N3WTgj.js → simrun-0.3.1/src/simrun/web/assets/index-0ZuCJ47D.js +2 -2
  49. simrun-0.2.0/src/simrun/web/assets/index-y_ImNT_d.css → simrun-0.3.1/src/simrun/web/assets/index-OCEqe9F1.css +1 -1
  50. simrun-0.2.0/src/simrun/web/assets/live-B_WlS5vn.js → simrun-0.3.1/src/simrun/web/assets/live-Cz_hXu53.js +1 -1
  51. simrun-0.2.0/src/simrun/web/assets/style-JTLlRkS0.js → simrun-0.3.1/src/simrun/web/assets/style-BG1Be_7-.js +1 -1
  52. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/web/index.html +2 -2
  53. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/worker.py +111 -8
  54. {simrun-0.2.0 → simrun-0.3.1}/tests/cluster/k3d_cluster.py +9 -2
  55. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_api.py +5 -3
  56. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_argo_backend.py +116 -1
  57. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_controller.py +5 -3
  58. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_events.py +20 -0
  59. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_local_backend.py +121 -0
  60. simrun-0.3.1/tests/smoke/pkdb_models.yaml +53 -0
  61. simrun-0.3.1/tests/smoke/run.py +196 -0
  62. simrun-0.3.1/tests/smoke/sbmlsim.yaml +59 -0
  63. simrun-0.3.1/tests/smoke/timeline.py +279 -0
  64. {simrun-0.2.0 → simrun-0.3.1}/tests/test_cgroup.py +9 -0
  65. {simrun-0.2.0 → simrun-0.3.1}/tests/test_cli.py +46 -0
  66. {simrun-0.2.0 → simrun-0.3.1}/tests/test_client.py +32 -0
  67. {simrun-0.2.0 → simrun-0.3.1}/tests/test_config.py +12 -0
  68. {simrun-0.2.0 → simrun-0.3.1}/tests/test_environment.py +54 -2
  69. {simrun-0.2.0 → simrun-0.3.1}/tests/test_planner.py +80 -4
  70. {simrun-0.2.0 → simrun-0.3.1}/tests/test_ports.py +57 -0
  71. {simrun-0.2.0 → simrun-0.3.1}/tests/test_resources.py +11 -0
  72. {simrun-0.2.0 → simrun-0.3.1}/tests/test_snapshot.py +5 -2
  73. simrun-0.3.1/tests/test_version.py +27 -0
  74. {simrun-0.2.0 → simrun-0.3.1}/tests/test_worker.py +85 -6
  75. simrun-0.2.0/.bumpversion.toml +0 -24
  76. simrun-0.2.0/src/simrun/web/assets/EditorView-PGWyjvIn.js +0 -6
  77. simrun-0.2.0/src/simrun/web/assets/ExecutionsView-CBvSXfM4.js +0 -3
  78. {simrun-0.2.0 → simrun-0.3.1}/.github/CODEOWNERS +0 -0
  79. {simrun-0.2.0 → simrun-0.3.1}/.github/actions/setup/action.yml +0 -0
  80. {simrun-0.2.0 → simrun-0.3.1}/.github/dependabot.yml +0 -0
  81. {simrun-0.2.0 → simrun-0.3.1}/.github/pull_request_template.md +0 -0
  82. {simrun-0.2.0 → simrun-0.3.1}/.github/rulesets/apply.sh +0 -0
  83. {simrun-0.2.0 → simrun-0.3.1}/.github/rulesets/develop.json +0 -0
  84. {simrun-0.2.0 → simrun-0.3.1}/.github/rulesets/main.json +0 -0
  85. {simrun-0.2.0 → simrun-0.3.1}/.github/rulesets/tags.json +0 -0
  86. {simrun-0.2.0 → simrun-0.3.1}/.github/workflows/ci-cd.yml +0 -0
  87. {simrun-0.2.0 → simrun-0.3.1}/.github/workflows/cluster.yml +0 -0
  88. {simrun-0.2.0 → simrun-0.3.1}/.github/workflows/docs.yml +0 -0
  89. {simrun-0.2.0 → simrun-0.3.1}/.github/workflows/lint.yml +0 -0
  90. {simrun-0.2.0 → simrun-0.3.1}/.gitignore +0 -0
  91. {simrun-0.2.0 → simrun-0.3.1}/.pre-commit-config.yaml +0 -0
  92. {simrun-0.2.0 → simrun-0.3.1}/.python-version +0 -0
  93. {simrun-0.2.0 → simrun-0.3.1}/.ruff.toml +0 -0
  94. {simrun-0.2.0 → simrun-0.3.1}/.zenodo.json +0 -0
  95. {simrun-0.2.0 → simrun-0.3.1}/LICENSE +0 -0
  96. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/argo/controller-config.yaml +0 -0
  97. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/argo/kustomization.yaml +0 -0
  98. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/argo/namespace-install.yaml +0 -0
  99. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/argo/workflow-rbac.yaml +0 -0
  100. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/kueue/config.yaml +0 -0
  101. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/kueue/kustomization.yaml +0 -0
  102. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/kueue/manifests.yaml +0 -0
  103. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/kueue/queues.yaml +0 -0
  104. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/kustomization.yaml +0 -0
  105. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/namespace.yaml +0 -0
  106. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/off-workers.yaml +0 -0
  107. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/priority-classes.yaml +0 -0
  108. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/store-settings.yaml +0 -0
  109. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/store.yaml +0 -0
  110. {simrun-0.2.0 → simrun-0.3.1}/deploy/cluster/zot.yaml +0 -0
  111. {simrun-0.2.0 → simrun-0.3.1}/deploy/k3d/kustomization.yaml +0 -0
  112. {simrun-0.2.0 → simrun-0.3.1}/deploy/k3d/on-server.yaml +0 -0
  113. {simrun-0.2.0 → simrun-0.3.1}/deploy/k3d/quotas.yaml +0 -0
  114. {simrun-0.2.0 → simrun-0.3.1}/deploy/k3d/store-claim.yaml +0 -0
  115. {simrun-0.2.0 → simrun-0.3.1}/deploy/k3d/store.yaml +0 -0
  116. {simrun-0.2.0 → simrun-0.3.1}/docs/api/argo.md +0 -0
  117. {simrun-0.2.0 → simrun-0.3.1}/docs/api/cgroup.md +0 -0
  118. {simrun-0.2.0 → simrun-0.3.1}/docs/api/cli.md +0 -0
  119. {simrun-0.2.0 → simrun-0.3.1}/docs/api/client.md +0 -0
  120. {simrun-0.2.0 → simrun-0.3.1}/docs/api/config.md +0 -0
  121. {simrun-0.2.0 → simrun-0.3.1}/docs/api/cwl.md +0 -0
  122. {simrun-0.2.0 → simrun-0.3.1}/docs/api/demo.md +0 -0
  123. {simrun-0.2.0 → simrun-0.3.1}/docs/api/environment.md +0 -0
  124. {simrun-0.2.0 → simrun-0.3.1}/docs/api/index.md +0 -0
  125. {simrun-0.2.0 → simrun-0.3.1}/docs/api/ledger.md +0 -0
  126. {simrun-0.2.0 → simrun-0.3.1}/docs/api/local.md +0 -0
  127. {simrun-0.2.0 → simrun-0.3.1}/docs/api/mcp.md +0 -0
  128. {simrun-0.2.0 → simrun-0.3.1}/docs/api/planner.md +0 -0
  129. {simrun-0.2.0 → simrun-0.3.1}/docs/api/plugins.md +0 -0
  130. {simrun-0.2.0 → simrun-0.3.1}/docs/api/plugins_builtin.md +0 -0
  131. {simrun-0.2.0 → simrun-0.3.1}/docs/api/podspec.md +0 -0
  132. {simrun-0.2.0 → simrun-0.3.1}/docs/api/resources.md +0 -0
  133. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.app.md +0 -0
  134. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.argo_backend.md +0 -0
  135. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.auth.md +0 -0
  136. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.backend.md +0 -0
  137. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.compare.md +0 -0
  138. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.controller.md +0 -0
  139. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.index.md +0 -0
  140. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.local_backend.md +0 -0
  141. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.local_env.md +0 -0
  142. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.logs.md +0 -0
  143. {simrun-0.2.0 → simrun-0.3.1}/docs/api/service.submission.md +0 -0
  144. {simrun-0.2.0 → simrun-0.3.1}/docs/api/snapshot.md +0 -0
  145. {simrun-0.2.0 → simrun-0.3.1}/docs/api/store.md +0 -0
  146. {simrun-0.2.0 → simrun-0.3.1}/docs/api/testing.md +0 -0
  147. {simrun-0.2.0 → simrun-0.3.1}/docs/api/worker.md +0 -0
  148. {simrun-0.2.0 → simrun-0.3.1}/docs/api/workflow.md +0 -0
  149. {simrun-0.2.0 → simrun-0.3.1}/docs/command-line.md +0 -0
  150. {simrun-0.2.0 → simrun-0.3.1}/docs/development.md +0 -0
  151. {simrun-0.2.0 → simrun-0.3.1}/docs/images/editor-command.png +0 -0
  152. {simrun-0.2.0 → simrun-0.3.1}/docs/images/editor.png +0 -0
  153. {simrun-0.2.0 → simrun-0.3.1}/docs/images/executions-failed.png +0 -0
  154. {simrun-0.2.0 → simrun-0.3.1}/docs/images/executions-outputs.png +0 -0
  155. {simrun-0.2.0 → simrun-0.3.1}/docs/images/executions-running.png +0 -0
  156. {simrun-0.2.0 → simrun-0.3.1}/docs/installation.md +0 -0
  157. {simrun-0.2.0 → simrun-0.3.1}/docs/mcp.md +0 -0
  158. {simrun-0.2.0 → simrun-0.3.1}/docs/plugins.md +0 -0
  159. {simrun-0.2.0 → simrun-0.3.1}/docs/robots.txt +0 -0
  160. {simrun-0.2.0 → simrun-0.3.1}/docs/workflows.md +0 -0
  161. {simrun-0.2.0 → simrun-0.3.1}/examples/squares.yaml +0 -0
  162. {simrun-0.2.0 → simrun-0.3.1}/frontend/README.md +0 -0
  163. {simrun-0.2.0 → simrun-0.3.1}/frontend/index.html +0 -0
  164. {simrun-0.2.0 → simrun-0.3.1}/frontend/mockup/workflow-icons.js +0 -0
  165. {simrun-0.2.0 → simrun-0.3.1}/frontend/mockup/workflow-studio.html +0 -0
  166. {simrun-0.2.0 → simrun-0.3.1}/frontend/package-lock.json +0 -0
  167. {simrun-0.2.0 → simrun-0.3.1}/frontend/package.json +0 -0
  168. {simrun-0.2.0 → simrun-0.3.1}/frontend/public/favicon.svg +0 -0
  169. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/App.vue +0 -0
  170. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/api/client.test.ts +0 -0
  171. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/api/client.ts +0 -0
  172. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/api/http.ts +0 -0
  173. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/api/sse.test.ts +0 -0
  174. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/api/sse.ts +0 -0
  175. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/auth.ts +0 -0
  176. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/AppIcon.vue +0 -0
  177. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditBar.test.ts +0 -0
  178. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditBar.vue +0 -0
  179. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditCanvas.fit.test.ts +0 -0
  180. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditCanvas.test.ts +0 -0
  181. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditCanvas.vue +0 -0
  182. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditInspector.test.ts +0 -0
  183. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditInspector.vue +0 -0
  184. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditNode.vue +0 -0
  185. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditTaskPanel.vue +0 -0
  186. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/EditWorkflowPanel.vue +0 -0
  187. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/Inspector.vue +0 -0
  188. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/InspectorOutputs.vue +0 -0
  189. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/InspectorOverview.vue +0 -0
  190. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/InspectorRun.vue +0 -0
  191. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/LogoMark.vue +0 -0
  192. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/RunBar.test.ts +0 -0
  193. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/RunBar.vue +0 -0
  194. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/RunCanvas.vue +0 -0
  195. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/RunCard.vue +0 -0
  196. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/RunList.test.ts +0 -0
  197. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/RunList.vue +0 -0
  198. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/ServerStrip.test.ts +0 -0
  199. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/ServerStrip.vue +0 -0
  200. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/StatusPill.vue +0 -0
  201. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/TaskNode.test.ts +0 -0
  202. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/TaskNode.vue +0 -0
  203. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/TaskPalette.test.ts +0 -0
  204. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/TaskPalette.vue +0 -0
  205. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/TopBar.test.ts +0 -0
  206. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/components/TopBar.vue +0 -0
  207. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/edit-graph.test.ts +0 -0
  208. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/edit-graph.ts +0 -0
  209. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/filters.test.ts +0 -0
  210. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/filters.ts +0 -0
  211. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/format.test.ts +0 -0
  212. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/format.ts +0 -0
  213. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/graph.test.ts +0 -0
  214. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/graph.ts +0 -0
  215. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/icons.ts +0 -0
  216. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/inspect.test.ts +0 -0
  217. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/inspect.ts +0 -0
  218. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/kinds.ts +0 -0
  219. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/progress.test.ts +0 -0
  220. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/progress.ts +0 -0
  221. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/status.ts +0 -0
  222. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/lib/workers.ts +0 -0
  223. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/main.ts +0 -0
  224. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/router.test.ts +0 -0
  225. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/router.ts +0 -0
  226. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/stores/edit.test.ts +0 -0
  227. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/stores/edit.ts +0 -0
  228. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/stores/live.test.ts +0 -0
  229. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/stores/live.ts +0 -0
  230. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/stores/run.test.ts +0 -0
  231. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/stores/run.ts +0 -0
  232. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/style.css +0 -0
  233. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/test/fixtures.ts +0 -0
  234. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/views/EditSessions.test.ts +0 -0
  235. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/views/EditSessions.vue +0 -0
  236. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/views/EditorView.test.ts +0 -0
  237. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/views/EditorView.vue +0 -0
  238. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/views/ExecutionsView.vue +0 -0
  239. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/views/LoginView.test.ts +0 -0
  240. {simrun-0.2.0 → simrun-0.3.1}/frontend/src/views/LoginView.vue +0 -0
  241. {simrun-0.2.0 → simrun-0.3.1}/frontend/tsconfig.json +0 -0
  242. {simrun-0.2.0 → simrun-0.3.1}/frontend/tsconfig.node.json +0 -0
  243. {simrun-0.2.0 → simrun-0.3.1}/frontend/vite.config.ts +0 -0
  244. {simrun-0.2.0 → simrun-0.3.1}/release-notes/0.1.0.md +0 -0
  245. {simrun-0.2.0 → simrun-0.3.1}/release-notes/0.2.0.md +0 -0
  246. {simrun-0.2.0 → simrun-0.3.1}/scripts/llms_txt.py +0 -0
  247. {simrun-0.2.0 → simrun-0.3.1}/scripts/openapi.py +0 -0
  248. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/__main__.py +0 -0
  249. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/argo.py +0 -0
  250. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/build_constraints.txt +0 -0
  251. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/cwl.py +0 -0
  252. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/edit.py +0 -0
  253. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/ledger.py +0 -0
  254. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/local.py +0 -0
  255. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/mcp.py +0 -0
  256. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/plugins.py +0 -0
  257. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/plugins_builtin.py +0 -0
  258. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/resources.py +0 -0
  259. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/__init__.py +0 -0
  260. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/auth.py +0 -0
  261. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/backend.py +0 -0
  262. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/compare.py +0 -0
  263. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/edits.py +0 -0
  264. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/index.py +0 -0
  265. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/local_env.py +0 -0
  266. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/service/logs.py +0 -0
  267. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/store.py +0 -0
  268. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/testing.py +0 -0
  269. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/web/assets/EditorView-CSEPd5zO.css +0 -0
  270. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/web/assets/ExecutionsView-CGILwumK.css +0 -0
  271. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/web/assets/style-_6XKS09t.css +0 -0
  272. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/web/favicon.svg +0 -0
  273. {simrun-0.2.0 → simrun-0.3.1}/src/simrun/workflow.py +0 -0
  274. {simrun-0.2.0 → simrun-0.3.1}/tests/cluster/Dockerfile +0 -0
  275. {simrun-0.2.0 → simrun-0.3.1}/tests/cluster/conftest.py +0 -0
  276. {simrun-0.2.0 → simrun-0.3.1}/tests/cluster/local.py +0 -0
  277. {simrun-0.2.0 → simrun-0.3.1}/tests/cluster/test_capacity.py +0 -0
  278. {simrun-0.2.0 → simrun-0.3.1}/tests/cluster/test_cluster.py +0 -0
  279. {simrun-0.2.0 → simrun-0.3.1}/tests/cluster/test_service_image.py +0 -0
  280. {simrun-0.2.0 → simrun-0.3.1}/tests/cluster/test_sources.py +0 -0
  281. {simrun-0.2.0 → simrun-0.3.1}/tests/conftest.py +0 -0
  282. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_compare.py +0 -0
  283. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_editor_api.py +0 -0
  284. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_edits.py +0 -0
  285. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_index.py +0 -0
  286. {simrun-0.2.0 → simrun-0.3.1}/tests/service/test_web_api.py +0 -0
  287. {simrun-0.2.0 → simrun-0.3.1}/tests/test_argo.py +0 -0
  288. {simrun-0.2.0 → simrun-0.3.1}/tests/test_cli_local.py +0 -0
  289. {simrun-0.2.0 → simrun-0.3.1}/tests/test_cwl.py +0 -0
  290. {simrun-0.2.0 → simrun-0.3.1}/tests/test_deploy.py +0 -0
  291. {simrun-0.2.0 → simrun-0.3.1}/tests/test_edit.py +0 -0
  292. {simrun-0.2.0 → simrun-0.3.1}/tests/test_exec.py +0 -0
  293. {simrun-0.2.0 → simrun-0.3.1}/tests/test_ledger.py +0 -0
  294. {simrun-0.2.0 → simrun-0.3.1}/tests/test_local.py +0 -0
  295. {simrun-0.2.0 → simrun-0.3.1}/tests/test_mcp.py +0 -0
  296. {simrun-0.2.0 → simrun-0.3.1}/tests/test_plugins.py +0 -0
  297. {simrun-0.2.0 → simrun-0.3.1}/tests/test_store.py +0 -0
  298. {simrun-0.2.0 → simrun-0.3.1}/tests/test_workflow.py +0 -0
  299. {simrun-0.2.0 → simrun-0.3.1}/tox.ini +0 -0
  300. {simrun-0.2.0 → simrun-0.3.1}/uv.lock +0 -0
  301. {simrun-0.2.0 → simrun-0.3.1}/zensical.toml +0 -0
@@ -0,0 +1,51 @@
1
+ [tool.bumpversion]
2
+ current_version = "0.3.1"
3
+ commit = true
4
+ parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
5
+ serialize = ["{major}.{minor}.{patch}"]
6
+ search = "{current_version}"
7
+ replace = "{new_version}"
8
+ regex = false
9
+ ignore_missing_version = false
10
+ # no tag: the bump is merged into develop through a pull request, which
11
+ # rewrites the commit, so the tag is created on develop afterwards
12
+ tag = false
13
+ sign_tags = false
14
+ tag_name = "{new_version}"
15
+ tag_message = "Bump version: {current_version} → {new_version}"
16
+ allow_dirty = false
17
+ message = "Bump version: {current_version} → {new_version}"
18
+ commit_args = ""
19
+
20
+ [[tool.bumpversion.files]]
21
+ filename = "./src/simrun/__init__.py"
22
+
23
+ [[tool.bumpversion.files]]
24
+ filename = "./CITATION.cff"
25
+
26
+ # the image of the service and the wheel it carries, in its manifest, its Dockerfile
27
+ # and the documentation of the deployment (`tests/test_version.py`)
28
+ [[tool.bumpversion.files]]
29
+ filename = "./deploy/cluster/simrun.yaml"
30
+ search = "simrun-service:{current_version}"
31
+ replace = "simrun-service:{new_version}"
32
+
33
+ [[tool.bumpversion.files]]
34
+ filename = "./deploy/cluster/simrun.yaml"
35
+ search = "simrun-{current_version}-py3-none-any.whl"
36
+ replace = "simrun-{new_version}-py3-none-any.whl"
37
+
38
+ [[tool.bumpversion.files]]
39
+ filename = "./deploy/service/Dockerfile"
40
+ search = "simrun-{current_version}-py3-none-any.whl"
41
+ replace = "simrun-{new_version}-py3-none-any.whl"
42
+
43
+ [[tool.bumpversion.files]]
44
+ filename = "./docs/deployment.md"
45
+ search = "simrun-service:{current_version}"
46
+ replace = "simrun-service:{new_version}"
47
+
48
+ [[tool.bumpversion.files]]
49
+ filename = "./docs/deployment.md"
50
+ search = "simrun-{current_version}-py3-none-any.whl"
51
+ replace = "simrun-{new_version}-py3-none-any.whl"
@@ -8,7 +8,9 @@ authors:
8
8
  given-names: "Matthias"
9
9
  orcid: "https://orcid.org/0000-0003-1725-179X"
10
10
  affiliation: "Humboldt-University Berlin, Faculty of Life Science, Institute for Biology, Biology, Berlin; University Lübeck; University Hospital Schleswig-Holstein, Campus Lübeck, First Department of Medicine, Germany"
11
- version: "0.2.0"
11
+ version: "0.3.1"
12
+ date-released: "2026-11-08"
13
+ doi: "10.5281/zenodo.24035618"
12
14
  license: MIT
13
15
  repository-code: "https://github.com/matthiaskoenig/simrun"
14
16
  url: "https://matthiaskoenig.github.io/simrun"
@@ -20,6 +20,7 @@ pytest -n 0 # in one process, e.g. for --
20
20
  SIMRUN_K3D=1 uv run pytest -m cluster tests/cluster # the tests on a k3d cluster (docker, ~20 GiB disk)
21
21
  SIMRUN_K3D=1 SIMRUN_K3D_KEEP=1 uv run pytest -m cluster tests/cluster # keep the cluster for the next session
22
22
  uv run python tests/cluster/local.py up # the k3d cluster as a local test system, service on the host (docs/testing.md); `down` deletes it
23
+ uv run python tests/smoke/run.py [--k3d] # the smoke workflows: the analyses of sbmlsim and pkdb_models (~/git checkouts) through simrun, locally or on the local test system
23
24
  uv run simrun submit examples/squares.yaml --local # on this machine without a cluster, state in .simrun/ (docs/local.md)
24
25
  uv run simrun edit /tmp/squares.yaml # a copy of examples/squares.yaml in the Editor of the local test system (docs/web-app.md)
25
26
  tox r -e py3.15 # single tox env (py3.14, py3.15)
@@ -53,10 +54,10 @@ uv run python scripts/openapi.py && (cd frontend && npm run types) # after a c
53
54
  - **`local.py`** the local service of a project (`simrun serve --local`): `.simrun/` with the store, the index and a generated token, `service.json` (instance, pid, port, token, url; the token is sent only to a server answering the instance at `/local/instance`) while it listens on `127.0.0.1`, `ensure_local` which starts it in the background (`python -m simrun`, `__main__.py`) under a lock and finds it again, the idle exit, `environment` in `service.json` (a service in the background with another python, simrun or task types is restarted when idle), `stop_local` (`serve --local --stop`, `/local/stop`), its end cancels the runs of the `LocalBackend`; `web_dir` the built web app, `simrun/web` of the wheel (copied by the release) or `frontend/dist` of a checkout.
54
55
  - **`edit.py`** the command `simrun edit`: opens an edit session, long-polls its requests, writes a save into the workflow file atomically after the hash check of a conflict, runs with fresh snapshots through `Client.submit`, sends the file and the git state of the trees every `EDIT_WATCH_S` when they changed, closes the session on Ctrl-C.
55
56
  - **`snapshot.py`** the copy of the files git knows of a working tree into `snapshots/<name>/` of the store (`scan`, then `assemble`; `upload` for the routes `/snapshots/{name}`), hard links to the last snapshot by the hashes of its manifest `<dir>.files.json`, read-only, named by content, with provenance; **`environment.py`** the lock of a run (`uv lock` in a writable shadow tree against the snapshots) with the build backends at the pins of `build_constraints.txt`, the Dockerfile of the image, named by the hash of the lock, the python and the simrun version.
56
- - **`planner.py`** the pod shape (processes the cores and memory of the most common node allow, the retry shape with `RETRY_FACTOR`) and the number of pods (`fastest`: min of `MAX_PIECES` 8, units, slots), the six priority classes (`PRIORITY_VALUES`); **`resources.py`** learned resources in SQLite (95th percentile of the last 20 observations times 1.1, floor after a kill for memory), keyed by type, model and `cost_setting`.
57
+ - **`planner.py`** the pod shape (processes the cores and memory of the most common node allow, the retry shape with `RETRY_FACTOR`) and the number of pods (`fastest`: min of `MAX_PIECES` 8, slots, units over processes, and with the learned seconds of a unit the work over `pod_start_s` of `ClusterConfig`), the six priority classes (`PRIORITY_VALUES`); **`resources.py`** learned resources in SQLite (95th percentile of the last 20 observations times 1.1, floor after a kill for memory), keyed by type, model and `cost_setting`.
57
58
  - **`ledger.py`** the unit ledger (`pending/`, `claimed/<i>@<worker>`, `done/`, heartbeats), one `os.rename` per transition (NFS >= 4.1); **`worker.py`** the harness: `simrun-worker` (coordinator `SIMRUN_ROLE=base` waits for the whole ledger and releases stale claims, extra workers exit when nothing is pending, a pool of processes, memory sampling of the cgroup, reports), `simrun-merge`, `simrun-exec` (exit codes 0, 3, 4, 137, 143); **`cgroup.py`** the limits and usage of the cgroup v2.
58
59
  - **`store.py`** the run record (`RunRecord`, `RunState`, `TaskState`) and the layout `runs/<id>/` (`run.json`, `tasks/<task>/{settings.json,provenance.json,out/,units/,workers/,logs/,progress.jsonl}`); **`config.py`** `ClusterConfig`; **`podspec.py`** what every backend shares (image, shapes, command, environment `SIMRUN_*`, `SIMRUN_PROVENANCE` the `provenance.json` of the task); **`argo.py`** the Argo workflow of a run (Hera: `<task>-w0`, `<task>-extra`, `<task>-merge`, retry strategy and `podSpecPatch` for the retry memory, Kueue labels); **`cwl.py`** the same run as CWL; **`testing.py`** `FakeBackend`, the backend in memory of the tests.
59
- - **`service/`** `app.py` the FastAPI app (`ServiceSettings` from `SIMRUN_CONFIG`, `uvicorn --factory simrun.service.app:serve`, every route needs a bearer token), `auth.py` identities and priorities, `backend.py` the backend protocol, `argo_backend.py` Argo, Kueue, node capacity, reservations (taint and label `simrun/reserved`) and BuildKit jobs, `local_backend.py` the `LocalBackend` (the tasks of a run as processes, cores shared across runs, `--docker` for `command` tasks, retries of a stop, `SIMRUN_CORES`, `SIMRUN_MEMORY_LIMIT_GB` and `SIMRUN_MEMORY_SOURCE=process`, the coordinator of a split task merges, so no merge pod and one pod per split task (`extra_workers`), pid files beside the logs and `kill_orphans`), `local_env.py` the venv of a local run with snapshots in `.simrun/envs/<run>`, `submission.py` the background submission (environment, image, workflow), `controller.py` the stateless reconciliation (task states, OOM evidence, observations, logs, release, cancel), `index.py` the SQLite index of the runs rebuilt from the store, `logs.py` the kept logs, `compare.py` the comparison of runs, `edits.py` the edit sessions of the Editor (`EditSession`, the requests of the browser and the results of the command in `edits/<id>/` of the store, connected while polled within `EDIT_CONNECTED_S`); the read models of the web app (`/me`, `/servers`, the workers of a task, `/task-types`, `/workflows/yaml`), the routes of the edit sessions (`/edits`, a save or run waits up to `EDIT_WAIT_S` for the command) and the event streams (`/events`, `/runs/{id}/events`), and the built app at `/ui/` from the setting `web`.
60
+ - **`service/`** `app.py` the FastAPI app (`ServiceSettings` from `SIMRUN_CONFIG`, `uvicorn --factory simrun.service.app:serve`, every route needs a bearer token), `auth.py` identities and priorities, `backend.py` the backend protocol, `argo_backend.py` Argo (a thread watches the workflows and wakes the controller), Kueue, node capacity, reservations (taint and label `simrun/reserved`) and BuildKit jobs, `local_backend.py` the `LocalBackend` (the tasks of a run as processes, cores shared across runs, `--docker` for `command` tasks, retries of a stop, `SIMRUN_CORES`, `SIMRUN_MEMORY_LIMIT_GB` and `SIMRUN_MEMORY_SOURCE=process`, the coordinator of a split task merges, so no merge pod and one pod per split task (`extra_workers`), pid files beside the logs and `kill_orphans`), `local_env.py` the venv of a local run with snapshots in `.simrun/envs/<run>`, `submission.py` the background submission (environment, image, workflow), `controller.py` the stateless reconciliation (task states, OOM evidence, observations, logs, release, cancel), `index.py` the SQLite index of the runs rebuilt from the store, `logs.py` the kept logs, `compare.py` the comparison of runs, `edits.py` the edit sessions of the Editor (`EditSession`, the requests of the browser and the results of the command in `edits/<id>/` of the store, connected while polled within `EDIT_CONNECTED_S`); the read models of the web app (`/me`, `/servers`, the workers of a task, `/task-types`, `/workflows/yaml`), the routes of the edit sessions (`/edits`, a save or run waits up to `EDIT_WAIT_S` for the command) and the event streams (`/events`, `/runs/{id}/events`), and the built app at `/ui/` from the setting `web`.
60
61
  - **`frontend/`** the web app (Vite, Vue 3, TypeScript, Vue Flow, Tailwind v4), served at `/ui/` with hash routing, talking only to the API with the token of the login: `src/api/` the client, the event streams read with `fetch` and the types generated from `openapi.json`, `src/views/` the login, the Executions (runs, run bar, canvas, servers strip, inspector) and the Editor (sessions, palette, canvas, inspector with the settings form of the JSON Schema, bar; the draft in `src/stores/edit.ts`), `mockup/` the approved mockup; the service image has the build at `/opt/simrun/web` (`docs/web-app.md`).
61
62
  - **`deploy/`** `cluster/` the kustomization of the cluster (Kueue v0.20.5 and Argo v4.1.6 release manifests committed unchanged, priorities, queue, NFS store, Zot, BuildKit, service), `k3d/` the overlay of the tests, `service/Dockerfile` the service image (with the built web app). **`tests/cluster/`** the k3d tests (`k3d_cluster.py` creates the cluster, `.tools/` holds k3d, kubectl, the kubeconfig and the store).
62
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: simrun
3
- Version: 0.2.0
3
+ Version: 0.3.1
4
4
  Summary: Runner of simulation workflows on a k3s cluster with Argo Workflows and Kueue.
5
5
  Project-URL: Homepage, https://matthiaskoenig.github.io/simrun
6
6
  Project-URL: Documentation, https://matthiaskoenig.github.io/simrun
@@ -62,7 +62,7 @@ Description-Content-Type: text/markdown
62
62
  [![Version](https://img.shields.io/pypi/v/simrun.svg)](https://pypi.org/project/simrun/)
63
63
  [![Python Versions](https://img.shields.io/pypi/pyversions/simrun.svg)](https://pypi.org/project/simrun/)
64
64
  [![MIT License](https://img.shields.io/pypi/l/simrun.svg)](https://opensource.org/licenses/MIT)
65
- [![DOI](https://img.shields.io/badge/DOI-after%20the%20first%20release-lightgrey.svg)](https://matthiaskoenig.github.io/simrun/development/#pypi-and-zenodo)
65
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24035618.svg)](https://doi.org/10.5281/zenodo.24035618)
66
66
 
67
67
  `simrun` runs simulation workflows on a small cluster of servers with [k3s](https://k3s.io), [Argo Workflows](https://argoproj.github.io/workflows/) and [Kueue](https://kueue.sigs.k8s.io). People and agents submit a workflow of tasks together with the working trees of their model and libraries, uncommitted changes included, and get a run id at once; the run is queued, placed, executed and recorded without the submitter staying connected.
68
68
 
@@ -103,7 +103,11 @@ pip install simrun
103
103
 
104
104
  ## How to cite
105
105
 
106
- If you use `simrun` please cite the archived software on [Zenodo](https://zenodo.org); the DOI follows with the first release, see [CITATION.cff](CITATION.cff).
106
+ If you use `simrun` please cite the archived software on Zenodo:
107
+
108
+ > König, M. *simrun: a runner of simulation workflows on a k3s cluster*. Zenodo. [https://doi.org/10.5281/zenodo.24035618](https://doi.org/10.5281/zenodo.24035618)
109
+
110
+ This DOI stands for every version of `simrun`; the DOI of a single version is on its Zenodo page. The metadata of the citation are in [CITATION.cff](CITATION.cff).
107
111
 
108
112
  ## License
109
113
 
@@ -4,7 +4,7 @@
4
4
  [![Version](https://img.shields.io/pypi/v/simrun.svg)](https://pypi.org/project/simrun/)
5
5
  [![Python Versions](https://img.shields.io/pypi/pyversions/simrun.svg)](https://pypi.org/project/simrun/)
6
6
  [![MIT License](https://img.shields.io/pypi/l/simrun.svg)](https://opensource.org/licenses/MIT)
7
- [![DOI](https://img.shields.io/badge/DOI-after%20the%20first%20release-lightgrey.svg)](https://matthiaskoenig.github.io/simrun/development/#pypi-and-zenodo)
7
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24035618.svg)](https://doi.org/10.5281/zenodo.24035618)
8
8
 
9
9
  `simrun` runs simulation workflows on a small cluster of servers with [k3s](https://k3s.io), [Argo Workflows](https://argoproj.github.io/workflows/) and [Kueue](https://kueue.sigs.k8s.io). People and agents submit a workflow of tasks together with the working trees of their model and libraries, uncommitted changes included, and get a run id at once; the run is queued, placed, executed and recorded without the submitter staying connected.
10
10
 
@@ -45,7 +45,11 @@ pip install simrun
45
45
 
46
46
  ## How to cite
47
47
 
48
- If you use `simrun` please cite the archived software on [Zenodo](https://zenodo.org); the DOI follows with the first release, see [CITATION.cff](CITATION.cff).
48
+ If you use `simrun` please cite the archived software on Zenodo:
49
+
50
+ > König, M. *simrun: a runner of simulation workflows on a k3s cluster*. Zenodo. [https://doi.org/10.5281/zenodo.24035618](https://doi.org/10.5281/zenodo.24035618)
51
+
52
+ This DOI stands for every version of `simrun`; the DOI of a single version is on its Zenodo page. The metadata of the citation are in [CITATION.cff](CITATION.cff).
49
53
 
50
54
  ## License
51
55
 
@@ -1,6 +1,7 @@
1
- # the controller looks at a workflow again 2 s after a change of its pods instead of
1
+ # the controller looks at a workflow again 1 s after a change of its pods instead of
2
2
  # 10 s (`DEFAULT_REQUEUE_TIME`, docs/environment-variables.md of Argo), so a run and
3
- # its tasks show running soon after their pods started
3
+ # its tasks show running soon after their pods started, and the next task of the DAG
4
+ # starts about a second after the one before it ended
4
5
  apiVersion: apps/v1
5
6
  kind: Deployment
6
7
  metadata:
@@ -12,4 +13,4 @@ spec:
12
13
  - name: workflow-controller
13
14
  env:
14
15
  - name: DEFAULT_REQUEUE_TIME
15
- value: 2s
16
+ value: 1s
@@ -1,7 +1,9 @@
1
1
  # BuildKit, rootless: the images of the environments of the runs are built by a Job
2
2
  # of the service (`ArgoBackend.build_image`) whose `buildctl` sends the build context
3
3
  # to this daemon and pushes the image to the registry, with the credentials of the
4
- # optional Secret `simrun-registry-auth` (a docker `config.json`).
4
+ # optional Secret `simrun-registry-auth` (a docker `config.json`). Its state, the
5
+ # layers and the cache of uv of the builds, is a volume which outlives the pod, so a
6
+ # build after a restart reuses them.
5
7
  apiVersion: v1
6
8
  kind: ConfigMap
7
9
  metadata:
@@ -19,6 +21,13 @@ metadata:
19
21
  namespace: simrun
20
22
  spec:
21
23
  replicas: 1
24
+ # the state is a volume of one node, which one pod at a time mounts: the old pod
25
+ # ends before the new one starts
26
+ strategy:
27
+ type: RollingUpdate
28
+ rollingUpdate:
29
+ maxSurge: 0
30
+ maxUnavailable: 1
22
31
  selector:
23
32
  matchLabels:
24
33
  app: buildkitd
@@ -78,7 +87,21 @@ spec:
78
87
  configMap:
79
88
  name: buildkitd-config
80
89
  - name: state
81
- emptyDir: {}
90
+ persistentVolumeClaim:
91
+ claimName: buildkitd-state
92
+ ---
93
+ apiVersion: v1
94
+ kind: PersistentVolumeClaim
95
+ metadata:
96
+ name: buildkitd-state
97
+ namespace: simrun
98
+ spec:
99
+ accessModes:
100
+ - ReadWriteOnce
101
+ storageClassName: local-path
102
+ resources:
103
+ requests:
104
+ storage: 50Gi
82
105
  ---
83
106
  apiVersion: v1
84
107
  kind: Service
@@ -82,7 +82,7 @@ data:
82
82
  db: /var/lib/simrun/resources.sqlite
83
83
  tokens: /etc/simrun/tokens/tokens.yaml
84
84
  owner: mk
85
- simrun_wheel: /opt/simrun/simrun-0.1.0-py3-none-any.whl
85
+ simrun_wheel: /opt/simrun/simrun-0.3.1-py3-none-any.whl
86
86
  backend: simrun.service.argo_backend:backend
87
87
  web: /opt/simrun/web
88
88
  cluster:
@@ -156,7 +156,7 @@ spec:
156
156
  - name: simrun
157
157
  # built from deploy/service/Dockerfile, see "The service image" in
158
158
  # docs/deployment.md
159
- image: registry.cluster.internal:5000/simrun-service:0.1.0
159
+ image: registry.cluster.internal:5000/simrun-service:0.3.1
160
160
  command:
161
161
  - uvicorn
162
162
  - --factory
@@ -18,10 +18,14 @@ spec:
18
18
  spec:
19
19
  containers:
20
20
  - name: buildkitd
21
+ # on the server node with the controllers: it requests one core, which
22
+ # a runner of continuous integration (four cores) leaves the others,
23
+ # and may use four of a larger host, where the bytecode of an
24
+ # environment compiles in parallel
21
25
  resources:
22
26
  requests:
23
27
  cpu: "1"
24
28
  memory: 1Gi
25
29
  limits:
26
- cpu: "1"
27
- memory: 1Gi
30
+ cpu: "4"
31
+ memory: 4Gi
@@ -24,7 +24,7 @@ RUN uv venv /opt/venv --python 3.14
24
24
  COPY requirements.txt /tmp/requirements.txt
25
25
  RUN uv pip install --no-cache --no-deps --require-hashes -r /tmp/requirements.txt \
26
26
  && rm /tmp/requirements.txt
27
- ARG WHEEL=simrun-0.1.0-py3-none-any.whl
27
+ ARG WHEEL=simrun-0.3.1-py3-none-any.whl
28
28
  COPY ${WHEEL} /opt/simrun/${WHEEL}
29
29
  RUN uv pip install --no-cache --no-deps /opt/simrun/${WHEEL}
30
30
  # the plugins with their dependencies, at the versions of the lock of simrun
@@ -59,7 +59,7 @@ An unsplit task is one pod which runs the command of its type through `simrun-ex
59
59
 
60
60
  ## Split modes
61
61
 
62
- `fastest` (the default) splits a task into as many pods as there are units and slots on the nodes, at most eight (`MAX_PIECES`); each pod takes the processes its node allows by cores and memory. `single-server` places one pod on one server. The mode is set for the workflow, for a task or for the submission (`--single-server`). Extra pods are not limited by the idle capacity: Kueue queues them until a node is free.
62
+ `fastest` (the default) splits a task into as many pods as there are slots on the nodes, at most eight (`MAX_PIECES`) and no pod without a unit for each of its processes; each pod takes the processes its node allows by cores and memory. Once the seconds of a unit are learned, a task gets a further pod only while every pod still has at least `pod_start_s` (10) of work: a pod which takes longer to start than its share of the work would find the units taken by the others and only hold cores. `single-server` places one pod on one server. The mode is set for the workflow, for a task or for the submission (`--single-server`). Extra pods are not limited by the idle capacity: Kueue queues them until a node is free.
63
63
 
64
64
  ## Priorities and preemption
65
65
 
@@ -87,7 +87,7 @@ A pod killed for memory (the evidence of the out of memory killer: the reason `O
87
87
 
88
88
  A source is a git working tree, the model first. The client copies the files git knows of it (tracked and untracked, not ignored, uncommitted changes included) into `snapshots/<name>/` of the store and sends its provenance (branch, commit, changed files); a client without the store mounted sends the list of the files with the hashes of their contents to the service, then a tar of the files whose content the store lacks, and the service writes the same snapshot. Files whose content the last snapshot of the same name has are hard links to it (`<snapshot>.files.json` beside it maps its paths to the hashes), so a snapshot of an unchanged tree costs nearly nothing and its upload sends no file. A snapshot is named by its content and its files are read-only. The service never reads the disk of the client.
89
89
 
90
- The image of a run whose model has a `pyproject.toml` holds the third party dependencies of the model and of its snapshotted libraries, locked with `uv lock` against the snapshots, and their build backends at the versions of the constraints file of the service, so a new release of a backend changes no lock and rebuilds no image. The code comes from the snapshots, which a pod mounts read-only and installs editable at its start without network access. The image is named by the hash of the lock, the python version and the simrun version and built with BuildKit only when the registry does not have it, so a change of the code never rebuilds an image and a change of a dependency does. A run whose model has no `pyproject.toml` runs in the `default_image` of the service.
90
+ The image of a run whose model has a `pyproject.toml` holds the third party dependencies of the model and of its snapshotted libraries, locked with `uv lock` against the snapshots, and their build backends at the versions of the constraints file of the service, so a new release of a backend changes no lock and rebuilds no image. The code comes from the snapshots, which a pod mounts read-only and installs editable at its start without network access. A task imports from the root of the model first, as `python -m` in its checkout does, so a project at the root of a checkout which no package installs (the `examples` of sbmlsim) is found; the client plans its tasks with the same path. The image installs the Debian packages of `system_packages` on the base image first, the shared libraries which wheels link but do not bundle (`libexpat1`, which python-libsbml needs), and `git` when a dependency is locked from a git repository (e.g. a branch of pkpdsim). Its packages are installed with their bytecode compiled, so a pod does not compile what it imports (about 15 s for the scientific stack), and the downloads of uv stay in a cache of BuildKit outside of the image; simrun is its last layer, so a new simrun rebuilds only that layer (seconds). It is named by the hash of the lock, the python version, the simrun version and its Dockerfile (the base image and the system packages) and built with BuildKit only when the registry does not have it, so a change of the code never rebuilds an image and a change of a dependency does. A run whose model has no `pyproject.toml` runs in the `default_image` of the service.
91
91
 
92
92
  ## Reservations
93
93
 
@@ -7,10 +7,10 @@
7
7
  | namespace | `namespace.yaml` | the namespace `simrun` of the service, the workflows and their pods |
8
8
  | priorities | `priority-classes.yaml` | the six priority classes of simrun, each a Kueue `WorkloadPriorityClass` and a Kubernetes `PriorityClass` of the same value, see [Priorities and preemption](concepts.md#priorities-and-preemption) |
9
9
  | Kueue v0.20.5 | `kueue/` | the release manifests, committed unchanged, and the queue: a `Topology` by host, a `ResourceFlavor` over the nodes labelled `simrun/worker=true`, the `ClusterQueue` `simrun`, which preempts lower priorities, and the `LocalQueue` `simrun` |
10
- | Argo Workflows v4.1.6 | `argo/` | the release manifests of a namespace install, committed unchanged, the configuration of the controller, its requeue time of 2 s instead of 10 s (`requeue.yaml`, so a run shows running soon after its pods start) and the service account `simrun-workflow` of the pods |
10
+ | Argo Workflows v4.1.6 | `argo/` | the release manifests of a namespace install, committed unchanged, the configuration of the controller, its requeue time of 1 s instead of 10 s (`requeue.yaml`, so a run shows running soon after its pods start and the next task of the DAG starts about a second after the one before it) and the service account `simrun-workflow` of the pods |
11
11
  | run store | `store-settings.yaml`, `store.yaml` | the run store on NFS (csi-driver-nfs), mounted by the service and every pod with `nfsvers=4.2` and `lookupcache=positive` |
12
12
  | registry | `zot.yaml` | [Zot](https://zotregistry.dev), the image registry inside the network |
13
- | builds | `buildkit.yaml` | the BuildKit daemon, which builds the images of the environments |
13
+ | builds | `buildkit.yaml` | the BuildKit daemon, which builds the images of the environments, and its state (`buildkitd-state`, 50 GiB of `local-path`): the layers and the downloads of uv of the builds, kept when its pod restarts |
14
14
  | service | `simrun.yaml` | the service: its settings, its tokens, its volumes and its rights |
15
15
 
16
16
  Since the release manifests are committed, a setup needs no download. Apply it with
@@ -43,7 +43,7 @@ The manifests carry the values of the cluster of the design. A setup replaces th
43
43
  | `registry.cluster.internal:5000` | `zot.yaml`, `buildkit.yaml`, `simrun.yaml`, `deploy/service/Dockerfile` | the address of the registry as the nodes and BuildKit name it |
44
44
  | `owner: mk` | `simrun.yaml`, ConfigMap `simrun-config` | the person who owns the cluster |
45
45
  | `{}` | `simrun.yaml`, Secret `simrun-tokens` | the tokens of the people and agents, see [Authentication](service.md#authentication) |
46
- | `simrun-service:0.1.0`, `simrun-0.1.0-py3-none-any.whl` | `simrun.yaml` | the image of the service and the wheel of simrun it carries, see below |
46
+ | `simrun-service:0.3.1`, `simrun-0.3.1-py3-none-any.whl` | `simrun.yaml` | the image of the service and the wheel of simrun it carries, see below |
47
47
  | `nominalQuota` of cpu, memory, GPUs and ephemeral storage | `kueue/queues.yaml` | the allocatable resources of the worker nodes |
48
48
 
49
49
  The Service `simrun` (port 80) is reached by the clients, e.g. through an ingress or a DNS name of the network; the examples of this documentation use `http://simrun.cluster.internal`. The development server of the agents mounts the run store, e.g. at `/mnt/cluster`, which is `SIMRUN_STORE` of the clients.
@@ -63,9 +63,9 @@ cp ~/git/sbmlsim/dist/sbmlsim-*.whl build/service/plugins/ # the plugins
63
63
  (cd frontend && npm ci && npm run build) # the web app
64
64
  rm -rf build/service/web && cp -r frontend/dist build/service/web
65
65
  cp deploy/service/Dockerfile build/service/
66
- docker build -t registry.cluster.internal:5000/simrun-service:0.1.0 \
67
- --build-arg WHEEL=simrun-0.1.0-py3-none-any.whl build/service
68
- docker push registry.cluster.internal:5000/simrun-service:0.1.0
66
+ docker build -t registry.cluster.internal:5000/simrun-service:0.3.1 \
67
+ --build-arg WHEEL=simrun-0.3.1-py3-none-any.whl build/service
68
+ docker push registry.cluster.internal:5000/simrun-service:0.3.1
69
69
  ```
70
70
 
71
71
  The plugins are installed with their dependencies at the versions of the lock of simrun (`constraints.txt`): a plugin which needs another version of a dependency of simrun fails the build instead of moving it. The base (`--build-arg BASE`) is the base image of the environments in the registry, which the registry mirrors with its digest (`ClusterConfig.base_image`). At runtime the service keeps the cache of uv in `/var/cache/uv`, a volume of the deployment, so a submission does not download the metadata and the build backends again.
@@ -1,5 +1,5 @@
1
1
  # simrun: simulation workflows on a k3s cluster
2
- [![CI-CD](https://github.com/matthiaskoenig/simrun/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/matthiaskoenig/simrun/actions/workflows/ci-cd.yml) [![Documentation](https://img.shields.io/badge/docs-simrun-3f51b5.svg)](https://matthiaskoenig.github.io/simrun) [![Version](https://img.shields.io/pypi/v/simrun.svg)](https://pypi.org/project/simrun/) [![Python Versions](https://img.shields.io/pypi/pyversions/simrun.svg)](https://pypi.org/project/simrun/) [![MIT License](https://img.shields.io/pypi/l/simrun.svg)](https://opensource.org/licenses/MIT) [![DOI](https://img.shields.io/badge/DOI-after%20the%20first%20release-lightgrey.svg)](development.md#pypi-and-zenodo)
2
+ [![CI-CD](https://github.com/matthiaskoenig/simrun/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/matthiaskoenig/simrun/actions/workflows/ci-cd.yml) [![Documentation](https://img.shields.io/badge/docs-simrun-3f51b5.svg)](https://matthiaskoenig.github.io/simrun) [![Version](https://img.shields.io/pypi/v/simrun.svg)](https://pypi.org/project/simrun/) [![Python Versions](https://img.shields.io/pypi/pyversions/simrun.svg)](https://pypi.org/project/simrun/) [![MIT License](https://img.shields.io/pypi/l/simrun.svg)](https://opensource.org/licenses/MIT) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24035618.svg)](https://doi.org/10.5281/zenodo.24035618)
3
3
 
4
4
  `simrun` runs simulation workflows on a small cluster of servers with [k3s](https://k3s.io), [Argo Workflows](https://argoproj.github.io/workflows/) and [Kueue](https://kueue.sigs.k8s.io). A workflow is a YAML file of tasks which read the outputs of other tasks. People and agents submit it together with the working trees of their model and their libraries, uncommitted changes included, and get a run id at once; the run is queued, placed, executed and recorded without the submitter staying connected, and its results and provenance stay in a shared run store. The source code is on [GitHub](https://github.com/matthiaskoenig/simrun).
5
5
 
@@ -49,6 +49,14 @@ The task runs as up to eight pods on as many servers, which claim the units from
49
49
 
50
50
  If you have any questions or issues please [open an issue](https://github.com/matthiaskoenig/simrun/issues). Contributions are welcome, see [Development](development.md).
51
51
 
52
+ ## How to cite
53
+
54
+ If you use `simrun` please cite the archived software on Zenodo:
55
+
56
+ > König, M. *simrun: a runner of simulation workflows on a k3s cluster*. Zenodo. [https://doi.org/10.5281/zenodo.24035618](https://doi.org/10.5281/zenodo.24035618)
57
+
58
+ This DOI stands for every version of `simrun`; the DOI of a single version is on its Zenodo page. The metadata of the citation are in [CITATION.cff](https://github.com/matthiaskoenig/simrun/blob/develop/CITATION.cff).
59
+
52
60
  ## License
53
61
 
54
62
  `simrun` is licensed under the [MIT License](https://github.com/matthiaskoenig/simrun/blob/develop/LICENSE).
@@ -33,7 +33,7 @@ The service serves the web app at `/ui/`: the Executions with live updates, and
33
33
  The `LocalBackend` of the service runs the pods of a run as processes of this machine:
34
34
 
35
35
  - a split task is one coordinator process (`simrun-worker`) with as many processes as the machine has cores, which computes the units and merges them itself; there are no extra workers, and the plan (also of `estimate --local`) has one pod
36
- - a task of a plugin type runs through `simrun-exec`
36
+ - a task of a plugin type runs through `simrun-exec`, without an image: in the environment of the service, activated (its python first on `PATH`), and with the working tree of the model first on `PYTHONPATH`, as `python -m` in the checkout
37
37
  - a `command` task runs its args directly by default, or in its image with `docker run` when the run is submitted with `--docker`; the run records which. The store and the scratch directory are mounted at the same paths
38
38
  - a task starts when the tasks it reads from succeeded and its cores are free; the cores are shared by all runs of the service, in the order of submission, and a waiting task is `queued`
39
39
  - a process stopped from outside (no exit code, 137 or 143) is retried as on the cluster, after a kill (137) with the retry memory per process, so the harness runs fewer processes; there is no memory limit per task, a process which takes too much is killed by the out of memory killer of the machine
@@ -2,6 +2,10 @@
2
2
 
3
3
  The notes of every release, newest first. They are kept in `release-notes/` of the repository and are the text of the [GitHub releases](https://github.com/matthiaskoenig/simrun/releases).
4
4
 
5
+ --8<-- "release-notes/0.3.1.md"
6
+
7
+ --8<-- "release-notes/0.3.0.md"
8
+
5
9
  --8<-- "release-notes/0.2.0.md"
6
10
 
7
11
  --8<-- "release-notes/0.1.0.md"
@@ -56,7 +56,8 @@ The service reads a YAML file named by `SIMRUN_CONFIG`, a `simrun.service.app.Se
56
56
  | `tokens` | the YAML file of the tokens, see above |
57
57
  | `owner` | the person who owns the cluster: their runs and their agents' get the top priority |
58
58
  | `cluster` | the cluster, a `ClusterConfig`, see below |
59
- | `poll_s` | seconds between two reconciliations of the controller and between two checks of an event stream (5) |
59
+ | `poll_s` | seconds between two reconciliations of the controller when no change of a workflow woke it before (5) |
60
+ | `events_poll_s` | seconds between two checks of an event stream (0.5) |
60
61
  | `events_max_s` | seconds after which an event stream ends and the client connects again (300) |
61
62
  | `default_image` | the image of a run whose model has no `pyproject.toml` |
62
63
  | `simrun_wheel` | the simrun wheel the images of the environments install |
@@ -73,6 +74,7 @@ The service reads a YAML file named by `SIMRUN_CONFIG`, a `simrun.service.app.Se
73
74
  | `registry` | the registry inside the network, as the nodes and BuildKit name it in image references |
74
75
  | `registry_url` | the API of the registry as the service reaches it, `http://<registry>` by default |
75
76
  | `base_image` | the base image of the images of the environments, uv and the python of the service; a repository of the registry by default (`astral-sh/uv:0.13.7-python3.14-trixie-slim@sha256:...`), which the registry mirrors with its digest |
77
+ | `system_packages` | the Debian packages the images of the environments install on the base image, the shared libraries which wheels link but do not bundle (`[libexpat1]`, which python-libsbml needs) |
76
78
  | `namespace` | the namespace of the workflows and their pods (`simrun`) |
77
79
  | `local_queue` | the Kueue LocalQueue of the pods (`simrun`) |
78
80
  | `store_claim` | the PersistentVolumeClaim of the run store (`simrun-store`) |
@@ -83,6 +85,7 @@ The service reads a YAML file named by `SIMRUN_CONFIG`, a `simrun.service.app.Se
83
85
  | `buildctl_image` | the image of the job which sends a build to BuildKit |
84
86
  | `grace_s` | the seconds a worker has to stop after SIGTERM (60) |
85
87
  | `ttl_after_finished_s` | the seconds a finished workflow is kept (86400) |
88
+ | `pod_start_s` | about the seconds from the creation of a pod to its first unit; a split task gets a further pod only while every pod has at least this much work (10), see [Split modes](concepts.md#split-modes) |
86
89
 
87
90
  To raise a pin of the build backends, edit `build_constraints.txt` (or point `build_constraints` at a file of your own) and redeploy the service; the images of the models which use the backend are built again.
88
91
 
@@ -104,4 +107,4 @@ To raise a pin of the build backends, edit `build_constraints.txt` (or point `bu
104
107
 
105
108
  ## The controller
106
109
 
107
- The controller reconciles every `poll_s` seconds: it reads the records of the live runs from the index, the states of their workflows from the backend, records the states of the tasks and the kills for memory, records the reports of the workers as resource observations once a task is final, keeps the logs of the pods in the store, and ends a run when every task is done or one failed. It keeps no state in memory, so a restarted service continues where the one before stopped. A release of a reserved node or a cancellation of a workflow which fails stays in the record and is retried at the next polls.
110
+ The controller reconciles whenever a workflow of a run changed (the backend watches the workflows; the local backend reports the start and end of every process) and every `poll_s` seconds otherwise: it reads the records of the live runs from the index, the states of their workflows from the backend, records the states of the tasks and the kills for memory, records the reports of the workers as resource observations once a task is final, keeps the logs of the pods in the store, and ends a run when every task is done or one failed. It keeps no state in memory, so a restarted service continues where the one before stopped. A release of a reserved node or a cancellation of a workflow which fails stays in the record and is retried at the next polls.
@@ -87,6 +87,32 @@ After a change of the code of the pods, run `up` again, which builds a new image
87
87
  uv run python tests/cluster/local.py down
88
88
  ```
89
89
 
90
+ ## Smoke workflows { #smoke-workflows }
91
+
92
+ The smoke workflows run the analyses of sbmlsim and pkdb_models through simrun, to find what breaks a real model before the migration of the models does: `tests/smoke/sbmlsim.yaml` every kind of analysis of the HCTZ example of sbmlsim (simulate, fit, identifiability, fisher, report, petab, scan, sensitivity, uncertainty) with the checkout of sbmlsim as its source, and `tests/smoke/pkdb_models.yaml` the simulations, a fit with the analyses which read it and the build of the models of the HCTZ model of pkdb_models, with the checkouts of pkdb_models and sbmlsim as its sources. They need checkouts of both (by default `~/git/sbmlsim` and `~/git/pkdb_models`):
93
+
94
+ ```bash
95
+ uv run python tests/smoke/run.py # --local, on this machine (about 5 minutes)
96
+ uv run python tests/smoke/run.py --k3d # on the local test system, after `tests/cluster/local.py up`
97
+ uv run python tests/smoke/run.py --only sbmlsim --sbmlsim ../sbmlsim --pkdb-models ../pkdb_models
98
+ ```
99
+
100
+ `run.py` installs this checkout of simrun and the two checkouts editable into an environment of its own, `.tools/smoke/venv`, so the client plans with the plugin of sbmlsim and the service knows its task types. Locally it uses the local service of `.tools/smoke/local` and stops it at the end; with `--k3d` it runs a service of that environment against the local test system on a free port, and the first run of each workflow builds the image of its environment. `--local --k3d` runs both, one after the other. After every run it prints the timeline of the run (`tests/smoke/timeline.py`, also on its own for any run of a store) and the load of the machine, which other work on it changes:
101
+
102
+ ```
103
+ smoke-pkdb-models 20261108-235754-cc7e82 succeeded in 263 s
104
+ environment and image 1 s, workflow 0 s
105
+ task start waited dag admit start prep work merge end cpu procs thrott
106
+ factory +6 6 1 1 3 1 8 0 +15 9 1 0
107
+ fit +6 6 1 1 3 2 102 1 +110 193 2 0
108
+ simulate +6 6 1 1 3 1 46 0 +53 19 11 0
109
+ ...
110
+ identifiability +116 6 2 1 2 2 24 20 +163 26 1 0
111
+ report +171 9 4 1 2 1 87 0 +259 88 1 0
112
+ ```
113
+
114
+ `start` and `end` are seconds from the creation of the run; `waited` the seconds from the end of the tasks a task reads (or the creation of the run) to the start of its harness, the submission and the start of its pod on the cluster, the free cores locally; `prep` the install of the sources, the restart and the imports; `work` its command or its units; `merge` the merge of a split task by its coordinator; `cpu` the cpu seconds of its processes; `procs` its processes. On k3d the pods split `waited` into `dag` (to the creation of the pod), `admit` (Kueue) and `start` (the image and Argo's init container), `thrott` is the time the CPU quota of its pods held it back, and `environment and image` the seconds the service took to resolve the environment and to build the image when it was missing. The smoke workflows read the checkouts as they are: for numbers to compare, point `--sbmlsim` and `--pkdb-models` at clones of fixed commits. The reports of the workers carry these times (`started`, `prepare_seconds`, `cpu_seconds`, `throttled_seconds`). The exit code is 1 when a run did not succeed.
115
+
90
116
  ## Continuous integration
91
117
 
92
118
  In continuous integration the job `cluster` runs the tests on the k3d cluster on a push to `develop`, on a release, when the workflow `CI-CD` is started by hand and on a pull request with the label `cluster`, see [Development](development.md#pull-requests).
@@ -17,7 +17,7 @@ The view has the runs on the left, the canvas of the selected run in the center
17
17
  - **Run bar**: the run, who submitted it and when, its state and its progress (tasks done, units done of all units), and **Stop**, which cancels a run that is not over after a confirmation in the bar.
18
18
  - **Canvas**: a card per task, in columns by the depth of the task in the graph of its inputs, with the edges of the inputs. A card shows the type, the task, its state, its settings, the units of its ledger with a progress bar and the workers of a split task on their servers; a task split over several workers is drawn as a stack. A task without a ledger shows its state without a progress bar.
19
19
  - **Servers**: a tile per server of the cluster with the cores and memory the pods of runs on it request, out of what the scheduler gives them (the allocatable cores and memory less the requests of other pods, e.g. of DaemonSets), a segment per pod, those of the selected run in blue; a reserved server says by which run.
20
- - **Inspector**: without a selected task, the run: its message, who submitted it with which priority and when, its kills for memory and its sources (the snapshots with branch, commit and changed files). With a task selected on the canvas, the tabs **Overview** (why a failed task failed, the exit of its last pod; the units, the elapsed and the remaining time, or the phase, `starting` or `merging`; the numeric fields of the last progress line, the workers with their servers, processes and memory, and the resources its plan requested), **Outputs** (the output files of the task) and **Logs** (the last lines of every pod, read again every 5 s while the task runs; tracebacks and errors in red, the lines of the Argo executor hidden unless asked for). A server is named by the last two parts of its host name everywhere, `agent-0` for `k3d-simrun-test-agent-0`, the full name in a tooltip.
20
+ - **Inspector**: without a selected task, the run: its message, who submitted it with which priority and when, its kills for memory and its sources (the snapshots with branch, commit and changed files). With a task selected on the canvas, the tabs **Overview** (why a failed task failed, the exit of its last pod; the units, the elapsed and the remaining time, or the phase, `starting` or `merging`; the numeric fields of the last progress line, the workers with their servers, processes and memory, and the resources its plan requested), **Outputs** (the output files of the task) and **Logs** (the last lines of every pod, read again every 5 s while the task runs; tracebacks and errors in red, the lines of the Argo executor hidden unless asked for, long lines scrolled sideways or, with **wrap lines**, wrapped at the width of the inspector). A server is named by the last two parts of its host name everywhere, `agent-0` for `k3d-simrun-test-agent-0`, the full name in a tooltip.
21
21
 
22
22
  ![A failed task: the message names the pod and its exit](images/executions-failed.png)
23
23
 
@@ -49,7 +49,7 @@ The Editor has the palette of the task types of the service on the left, the can
49
49
 
50
50
  - **Palette**: the task types installed in the service, grouped by the part of their name before the first `.` (`demo.squares` under "Demo", `command` under "General"), with the `description` of the type (see [Plugins](plugins.md#the-contract)) and a search; its footer says which file a save writes on which machine. A click adds a task right of the right-most one and pans the canvas to show it, a drag drops it where it is let go. A new task is named by the last part of its type, with `-2`, `-3` for further ones.
51
51
  - **Canvas**: a card per task with a handle per output port on the right and per input port of its type on the left; a `command` has a handle per input it reads and a `+`, where a connection adds an input named after the task it reads. Dragging from an output to an input connects them; a connection which closes a cycle or reaches a port which is already connected is refused with a note under the bar. Delete or Backspace removes the selected task (and the inputs which read it) or edge. The tasks are laid out when the session opens and when the workflow comes from disk; afterwards they stay where they are dragged. Positions are not saved in the file.
52
- - **Inspector**: with a task selected, its type and id, its settings as a form of the JSON Schema of the settings of its type (numbers, choices and switches in two columns; an empty field is not written, so the default of the type applies; what the form cannot edit is edited as JSON), its inputs and the ports staged to local scratch, its resources (workers and memory per worker overriding the learned ones, its split; a `command` has the resources of its settings and stages nothing) and the estimate: memory per worker of the plan, duration and placement (the pods, the worker processes of a pod and the memory of a pod). Without a selected task, the workflow: its name, its split, the reservation of a server, the group of the run and the sources.
52
+ - **Inspector**: with a task selected, its type and id, its settings as a form of the JSON Schema of the settings of its type, without the fields the schema marks `readOnly`, which the plan of the type sets (numbers, choices and switches in two columns; an empty field is not written, so the default of the type applies; what the form cannot edit is edited as JSON), its inputs and the ports staged to local scratch, its resources (workers and memory per worker overriding the learned ones, its split; a `command` has the resources of its settings and stages nothing) and the estimate: memory per worker of the plan, duration and placement (the pods, the worker processes of a pod and the memory of a pod). Without a selected task, the workflow: its name, its split, the reservation of a server, the group of the run and the sources.
53
53
  - **Validation and estimate**: every change is validated by the service 400 ms after the last one; the errors of a task show on its card and in the inspector, an error of a setting under its field, the others in the inspector of the workflow. A valid workflow is estimated with the last snapshots of the sources, and the cards show the chips of the estimate (workers, memory per worker, duration, pods). The estimate is of the workflow as edited: a task type which plans its settings does so only when the workflow runs.
54
54
 
55
55
  ![A `command` task in the Editor: its args one per line, the inputs it reads and a `+` handle for another](images/editor-command.png)
@@ -1268,7 +1268,7 @@
1268
1268
  "type": "object"
1269
1269
  },
1270
1270
  "SourceProvenance": {
1271
- "description": "Where the files of a snapshot come from.\n\nAttributes:\n name: Name of the source.\n branch: Branch of the working tree, `None` for a detached HEAD.\n commit: Commit of HEAD.\n dirty: Whether the working tree differs from HEAD.\n changed_files: Porcelain status lines, e.g. `M src/a.py`.\n diff_sha256: Hash of the snapshot tree (paths, types, modes, contents);\n the patch stays as provenance.\n snapshot: Directory of the snapshot, relative to the store root.\n patch: Stored `git diff HEAD --binary`, relative to the store root.",
1271
+ "description": "Where the files of a snapshot come from.\n\nAttributes:\n name: Name of the source.\n branch: Branch of the working tree, `None` for a detached HEAD.\n commit: Commit of HEAD.\n dirty: Whether the working tree differs from HEAD.\n changed_files: Porcelain status lines, e.g. `M src/a.py`.\n diff_sha256: Hash of the snapshot tree (paths, types, modes, contents);\n the patch stays as provenance.\n snapshot: Directory of the snapshot, relative to the store root.\n patch: Stored `git diff HEAD --binary`, relative to the store root.\n path: The working tree of a source recorded without a snapshot (the local\n mode), None for a snapshot.",
1272
1272
  "properties": {
1273
1273
  "branch": {
1274
1274
  "anyOf": [
@@ -1315,6 +1315,17 @@
1315
1315
  ],
1316
1316
  "title": "Patch"
1317
1317
  },
1318
+ "path": {
1319
+ "anyOf": [
1320
+ {
1321
+ "type": "string"
1322
+ },
1323
+ {
1324
+ "type": "null"
1325
+ }
1326
+ ],
1327
+ "title": "Path"
1328
+ },
1318
1329
  "snapshot": {
1319
1330
  "title": "Snapshot",
1320
1331
  "type": "string"
@@ -1226,6 +1226,8 @@ export interface components {
1226
1226
  * the patch stays as provenance.
1227
1227
  * snapshot: Directory of the snapshot, relative to the store root.
1228
1228
  * patch: Stored `git diff HEAD --binary`, relative to the store root.
1229
+ * path: The working tree of a source recorded without a snapshot (the local
1230
+ * mode), None for a snapshot.
1229
1231
  */
1230
1232
  SourceProvenance: {
1231
1233
  /** Branch */
@@ -1242,6 +1244,8 @@ export interface components {
1242
1244
  name: string;
1243
1245
  /** Patch */
1244
1246
  patch: string | null;
1247
+ /** Path */
1248
+ path?: string | null;
1245
1249
  /** Snapshot */
1246
1250
  snapshot: string;
1247
1251
  };
@@ -274,6 +274,20 @@ describe("Inspector of a task", () => {
274
274
  expect(wrapper.get("[data-logs]").text()).toContain("waiting for signals");
275
275
  });
276
276
 
277
+ it("keeps the layout of the lines, or wraps them at the width of the panel when asked", async () => {
278
+ vi.spyOn(api, "logs").mockResolvedValue("a long line of the console of the run layer\n");
279
+ const wrapper = mountInspector({});
280
+ await wrapper.get('[data-tab="logs"]').trigger("click");
281
+ await flushPromises();
282
+ const pre = () => wrapper.get("[data-logs-text]").classes();
283
+ expect(pre()).toContain("whitespace-pre");
284
+ expect(pre()).toContain("w-max");
285
+ await wrapper.get("[data-wrap]").setValue(true);
286
+ expect(pre()).toContain("whitespace-pre-wrap");
287
+ expect(pre()).not.toContain("w-max");
288
+ wrapper.unmount();
289
+ });
290
+
277
291
  it("reads the logs one request at a time, so that slow logs still show", async () => {
278
292
  const logs = vi
279
293
  .spyOn(api, "logs")
@@ -4,7 +4,9 @@
4
4
  answer while the task is live and once more when it ends. The block stays at its bottom as
5
5
  lines come, unless the user scrolled up. The lines of Argo's executor
6
6
  (`argo=true`) are hidden unless asked for, errors and tracebacks stand out,
7
- and lines keep their layout, scrolled sideways instead of wrapped.
7
+ and lines keep their layout, scrolled sideways instead of wrapped, unless
8
+ "wrap lines" breaks them at the width of the panel, e.g. to read a long line
9
+ of a narrow inspector without scrolling.
8
10
  -->
9
11
  <script setup lang="ts">
10
12
  import { computed, nextTick, onScopeDispose, ref, watch } from "vue";
@@ -88,6 +90,7 @@ const EXECUTOR = /\bargo=true\b/;
88
90
  const ERROR = /^(Traceback |[\w.]*(Error|Exception)\b.*:|Error: )|\b(ERROR|CRITICAL)\b/;
89
91
 
90
92
  const showExecutor = ref(false);
93
+ const wrap = ref(false);
91
94
 
92
95
  /** Every line of the logs, the headers of the pods, the executor and the error lines marked. */
93
96
  const all = computed(() =>
@@ -108,11 +111,15 @@ function lineClass(l: { header: boolean; executor: boolean; error: boolean }): s
108
111
 
109
112
  <template>
110
113
  <div class="flex min-h-0 flex-1 flex-col bg-gray-950">
111
- <div v-if="hidden > 0" data-logs-bar class="flex items-center justify-end border-b border-gray-800 px-3 py-1.5">
112
- <label class="flex items-center gap-1.5 text-[11px] text-gray-400">
114
+ <div v-if="text" data-logs-bar class="flex items-center justify-end gap-4 border-b border-gray-800 px-3 py-1.5">
115
+ <label v-if="hidden > 0" class="flex items-center gap-1.5 text-[11px] text-gray-400">
113
116
  <input v-model="showExecutor" data-executor type="checkbox" class="size-3 accent-gray-400" />
114
117
  lines of the Argo executor ({{ hidden }})
115
118
  </label>
119
+ <label class="flex items-center gap-1.5 text-[11px] text-gray-400">
120
+ <input v-model="wrap" data-wrap type="checkbox" class="size-3 accent-gray-400" />
121
+ wrap lines
122
+ </label>
116
123
  </div>
117
124
  <div
118
125
  ref="block"
@@ -123,7 +130,7 @@ function lineClass(l: { header: boolean; executor: boolean; error: boolean }): s
123
130
  <pre
124
131
  v-if="text"
125
132
  data-logs-text
126
- class="w-max min-w-full font-mono whitespace-pre"
133
+ :class="['font-mono', wrap ? 'break-all whitespace-pre-wrap' : 'w-max min-w-full whitespace-pre']"
127
134
  ><template v-for="(l, i) in lines" :key="i"><span :class="lineClass(l)">{{ l.line }}</span>{{ i < lines.length - 1 ? "\n" : "" }}</template></pre>
128
135
  <div v-else-if="text === '' || (text === null && !error)" class="text-gray-500">
129
136
  {{ text === null ? "reading the logs" : "no output yet" }}
@@ -45,6 +45,19 @@ describe("SchemaForm", () => {
45
45
  expect(many.get("[data-field='names'] textarea").attributes("rows")).toBe("8");
46
46
  });
47
47
 
48
+ it("shows no placeholder for a default of null", () => {
49
+ const nullable = {
50
+ properties: {
51
+ start: { anyOf: [{ additionalProperties: { type: "number" }, type: "object" }, { type: "null" }], default: null, title: "Start" },
52
+ studies: { anyOf: [{ items: { type: "string" }, type: "array" }, { type: "null" }], default: null, title: "Studies" },
53
+ },
54
+ type: "object",
55
+ };
56
+ const wrapper = mount(SchemaForm, { props: { schema: nullable, value: {} } });
57
+ expect(wrapper.get("[data-field='start'] textarea").attributes("placeholder")).toBe("");
58
+ expect(wrapper.get("[data-field='studies'] textarea").attributes("placeholder")).toBe("");
59
+ });
60
+
48
61
  it("keeps invalid JSON text, shows the message and emits nothing", async () => {
49
62
  const wrapper = mount(SchemaForm, { props: { schema, value: {} } });
50
63
  const area = wrapper.get("[data-field='extra'] textarea");