simrun 0.3.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 (298) hide show
  1. {simrun-0.3.0 → simrun-0.3.1}/.bumpversion.toml +1 -1
  2. {simrun-0.3.0 → simrun-0.3.1}/CITATION.cff +1 -1
  3. {simrun-0.3.0 → simrun-0.3.1}/CLAUDE.md +1 -0
  4. {simrun-0.3.0 → simrun-0.3.1}/PKG-INFO +1 -1
  5. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/buildkit.yaml +25 -2
  6. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/simrun.yaml +2 -2
  7. {simrun-0.3.0 → simrun-0.3.1}/deploy/k3d/buildkit.yaml +6 -2
  8. {simrun-0.3.0 → simrun-0.3.1}/deploy/service/Dockerfile +1 -1
  9. {simrun-0.3.0 → simrun-0.3.1}/docs/concepts.md +1 -1
  10. {simrun-0.3.0 → simrun-0.3.1}/docs/deployment.md +5 -5
  11. {simrun-0.3.0 → simrun-0.3.1}/docs/release-notes.md +2 -0
  12. {simrun-0.3.0 → simrun-0.3.1}/docs/testing.md +26 -0
  13. {simrun-0.3.0 → simrun-0.3.1}/pyproject.toml +4 -4
  14. simrun-0.3.1/release-notes/0.3.1.md +21 -0
  15. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/__init__.py +1 -1
  16. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/cgroup.py +19 -0
  17. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/environment.py +26 -6
  18. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/planner.py +13 -4
  19. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/app.py +1 -1
  20. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/argo_backend.py +4 -0
  21. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/controller.py +2 -3
  22. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/worker.py +111 -8
  23. {simrun-0.3.0 → simrun-0.3.1}/tests/cluster/k3d_cluster.py +9 -2
  24. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_argo_backend.py +31 -0
  25. simrun-0.3.1/tests/smoke/pkdb_models.yaml +53 -0
  26. simrun-0.3.1/tests/smoke/run.py +196 -0
  27. simrun-0.3.1/tests/smoke/sbmlsim.yaml +59 -0
  28. simrun-0.3.1/tests/smoke/timeline.py +279 -0
  29. {simrun-0.3.0 → simrun-0.3.1}/tests/test_cgroup.py +9 -0
  30. {simrun-0.3.0 → simrun-0.3.1}/tests/test_environment.py +31 -1
  31. {simrun-0.3.0 → simrun-0.3.1}/tests/test_planner.py +12 -0
  32. {simrun-0.3.0 → simrun-0.3.1}/tests/test_worker.py +73 -0
  33. {simrun-0.3.0 → simrun-0.3.1}/.github/CODEOWNERS +0 -0
  34. {simrun-0.3.0 → simrun-0.3.1}/.github/actions/setup/action.yml +0 -0
  35. {simrun-0.3.0 → simrun-0.3.1}/.github/dependabot.yml +0 -0
  36. {simrun-0.3.0 → simrun-0.3.1}/.github/pull_request_template.md +0 -0
  37. {simrun-0.3.0 → simrun-0.3.1}/.github/rulesets/apply.sh +0 -0
  38. {simrun-0.3.0 → simrun-0.3.1}/.github/rulesets/develop.json +0 -0
  39. {simrun-0.3.0 → simrun-0.3.1}/.github/rulesets/main.json +0 -0
  40. {simrun-0.3.0 → simrun-0.3.1}/.github/rulesets/tags.json +0 -0
  41. {simrun-0.3.0 → simrun-0.3.1}/.github/workflows/ci-cd.yml +0 -0
  42. {simrun-0.3.0 → simrun-0.3.1}/.github/workflows/cluster.yml +0 -0
  43. {simrun-0.3.0 → simrun-0.3.1}/.github/workflows/docs.yml +0 -0
  44. {simrun-0.3.0 → simrun-0.3.1}/.github/workflows/lint.yml +0 -0
  45. {simrun-0.3.0 → simrun-0.3.1}/.gitignore +0 -0
  46. {simrun-0.3.0 → simrun-0.3.1}/.pre-commit-config.yaml +0 -0
  47. {simrun-0.3.0 → simrun-0.3.1}/.python-version +0 -0
  48. {simrun-0.3.0 → simrun-0.3.1}/.ruff.toml +0 -0
  49. {simrun-0.3.0 → simrun-0.3.1}/.zenodo.json +0 -0
  50. {simrun-0.3.0 → simrun-0.3.1}/LICENSE +0 -0
  51. {simrun-0.3.0 → simrun-0.3.1}/README.md +0 -0
  52. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/argo/controller-config.yaml +0 -0
  53. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/argo/kustomization.yaml +0 -0
  54. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/argo/namespace-install.yaml +0 -0
  55. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/argo/requeue.yaml +0 -0
  56. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/argo/workflow-rbac.yaml +0 -0
  57. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/kueue/config.yaml +0 -0
  58. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/kueue/kustomization.yaml +0 -0
  59. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/kueue/manifests.yaml +0 -0
  60. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/kueue/queues.yaml +0 -0
  61. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/kustomization.yaml +0 -0
  62. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/namespace.yaml +0 -0
  63. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/off-workers.yaml +0 -0
  64. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/priority-classes.yaml +0 -0
  65. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/store-settings.yaml +0 -0
  66. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/store.yaml +0 -0
  67. {simrun-0.3.0 → simrun-0.3.1}/deploy/cluster/zot.yaml +0 -0
  68. {simrun-0.3.0 → simrun-0.3.1}/deploy/k3d/kustomization.yaml +0 -0
  69. {simrun-0.3.0 → simrun-0.3.1}/deploy/k3d/on-server.yaml +0 -0
  70. {simrun-0.3.0 → simrun-0.3.1}/deploy/k3d/quotas.yaml +0 -0
  71. {simrun-0.3.0 → simrun-0.3.1}/deploy/k3d/store-claim.yaml +0 -0
  72. {simrun-0.3.0 → simrun-0.3.1}/deploy/k3d/store.yaml +0 -0
  73. {simrun-0.3.0 → simrun-0.3.1}/docs/api/argo.md +0 -0
  74. {simrun-0.3.0 → simrun-0.3.1}/docs/api/cgroup.md +0 -0
  75. {simrun-0.3.0 → simrun-0.3.1}/docs/api/cli.md +0 -0
  76. {simrun-0.3.0 → simrun-0.3.1}/docs/api/client.md +0 -0
  77. {simrun-0.3.0 → simrun-0.3.1}/docs/api/config.md +0 -0
  78. {simrun-0.3.0 → simrun-0.3.1}/docs/api/cwl.md +0 -0
  79. {simrun-0.3.0 → simrun-0.3.1}/docs/api/demo.md +0 -0
  80. {simrun-0.3.0 → simrun-0.3.1}/docs/api/environment.md +0 -0
  81. {simrun-0.3.0 → simrun-0.3.1}/docs/api/index.md +0 -0
  82. {simrun-0.3.0 → simrun-0.3.1}/docs/api/ledger.md +0 -0
  83. {simrun-0.3.0 → simrun-0.3.1}/docs/api/local.md +0 -0
  84. {simrun-0.3.0 → simrun-0.3.1}/docs/api/mcp.md +0 -0
  85. {simrun-0.3.0 → simrun-0.3.1}/docs/api/planner.md +0 -0
  86. {simrun-0.3.0 → simrun-0.3.1}/docs/api/plugins.md +0 -0
  87. {simrun-0.3.0 → simrun-0.3.1}/docs/api/plugins_builtin.md +0 -0
  88. {simrun-0.3.0 → simrun-0.3.1}/docs/api/podspec.md +0 -0
  89. {simrun-0.3.0 → simrun-0.3.1}/docs/api/resources.md +0 -0
  90. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.app.md +0 -0
  91. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.argo_backend.md +0 -0
  92. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.auth.md +0 -0
  93. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.backend.md +0 -0
  94. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.compare.md +0 -0
  95. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.controller.md +0 -0
  96. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.index.md +0 -0
  97. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.local_backend.md +0 -0
  98. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.local_env.md +0 -0
  99. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.logs.md +0 -0
  100. {simrun-0.3.0 → simrun-0.3.1}/docs/api/service.submission.md +0 -0
  101. {simrun-0.3.0 → simrun-0.3.1}/docs/api/snapshot.md +0 -0
  102. {simrun-0.3.0 → simrun-0.3.1}/docs/api/store.md +0 -0
  103. {simrun-0.3.0 → simrun-0.3.1}/docs/api/testing.md +0 -0
  104. {simrun-0.3.0 → simrun-0.3.1}/docs/api/worker.md +0 -0
  105. {simrun-0.3.0 → simrun-0.3.1}/docs/api/workflow.md +0 -0
  106. {simrun-0.3.0 → simrun-0.3.1}/docs/command-line.md +0 -0
  107. {simrun-0.3.0 → simrun-0.3.1}/docs/development.md +0 -0
  108. {simrun-0.3.0 → simrun-0.3.1}/docs/images/editor-command.png +0 -0
  109. {simrun-0.3.0 → simrun-0.3.1}/docs/images/editor.png +0 -0
  110. {simrun-0.3.0 → simrun-0.3.1}/docs/images/executions-failed.png +0 -0
  111. {simrun-0.3.0 → simrun-0.3.1}/docs/images/executions-outputs.png +0 -0
  112. {simrun-0.3.0 → simrun-0.3.1}/docs/images/executions-running.png +0 -0
  113. {simrun-0.3.0 → simrun-0.3.1}/docs/index.md +0 -0
  114. {simrun-0.3.0 → simrun-0.3.1}/docs/installation.md +0 -0
  115. {simrun-0.3.0 → simrun-0.3.1}/docs/local.md +0 -0
  116. {simrun-0.3.0 → simrun-0.3.1}/docs/mcp.md +0 -0
  117. {simrun-0.3.0 → simrun-0.3.1}/docs/plugins.md +0 -0
  118. {simrun-0.3.0 → simrun-0.3.1}/docs/robots.txt +0 -0
  119. {simrun-0.3.0 → simrun-0.3.1}/docs/service.md +0 -0
  120. {simrun-0.3.0 → simrun-0.3.1}/docs/web-app.md +0 -0
  121. {simrun-0.3.0 → simrun-0.3.1}/docs/workflows.md +0 -0
  122. {simrun-0.3.0 → simrun-0.3.1}/examples/squares.yaml +0 -0
  123. {simrun-0.3.0 → simrun-0.3.1}/frontend/README.md +0 -0
  124. {simrun-0.3.0 → simrun-0.3.1}/frontend/index.html +0 -0
  125. {simrun-0.3.0 → simrun-0.3.1}/frontend/mockup/workflow-icons.js +0 -0
  126. {simrun-0.3.0 → simrun-0.3.1}/frontend/mockup/workflow-studio.html +0 -0
  127. {simrun-0.3.0 → simrun-0.3.1}/frontend/package-lock.json +0 -0
  128. {simrun-0.3.0 → simrun-0.3.1}/frontend/package.json +0 -0
  129. {simrun-0.3.0 → simrun-0.3.1}/frontend/public/favicon.svg +0 -0
  130. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/App.vue +0 -0
  131. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/api/client.test.ts +0 -0
  132. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/api/client.ts +0 -0
  133. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/api/http.ts +0 -0
  134. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/api/openapi.json +0 -0
  135. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/api/schema.d.ts +0 -0
  136. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/api/sse.test.ts +0 -0
  137. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/api/sse.ts +0 -0
  138. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/auth.ts +0 -0
  139. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/AppIcon.vue +0 -0
  140. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditBar.test.ts +0 -0
  141. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditBar.vue +0 -0
  142. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditCanvas.fit.test.ts +0 -0
  143. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditCanvas.test.ts +0 -0
  144. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditCanvas.vue +0 -0
  145. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditInspector.test.ts +0 -0
  146. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditInspector.vue +0 -0
  147. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditNode.vue +0 -0
  148. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditTaskPanel.vue +0 -0
  149. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/EditWorkflowPanel.vue +0 -0
  150. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/Inspector.test.ts +0 -0
  151. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/Inspector.vue +0 -0
  152. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/InspectorLogs.vue +0 -0
  153. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/InspectorOutputs.vue +0 -0
  154. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/InspectorOverview.vue +0 -0
  155. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/InspectorRun.vue +0 -0
  156. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/LogoMark.vue +0 -0
  157. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/RunBar.test.ts +0 -0
  158. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/RunBar.vue +0 -0
  159. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/RunCanvas.vue +0 -0
  160. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/RunCard.vue +0 -0
  161. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/RunList.test.ts +0 -0
  162. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/RunList.vue +0 -0
  163. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/SchemaForm.test.ts +0 -0
  164. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/SchemaForm.vue +0 -0
  165. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/ServerStrip.test.ts +0 -0
  166. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/ServerStrip.vue +0 -0
  167. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/StatusPill.vue +0 -0
  168. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/TaskNode.test.ts +0 -0
  169. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/TaskNode.vue +0 -0
  170. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/TaskPalette.test.ts +0 -0
  171. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/TaskPalette.vue +0 -0
  172. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/TopBar.test.ts +0 -0
  173. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/components/TopBar.vue +0 -0
  174. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/edit-graph.test.ts +0 -0
  175. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/edit-graph.ts +0 -0
  176. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/filters.test.ts +0 -0
  177. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/filters.ts +0 -0
  178. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/format.test.ts +0 -0
  179. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/format.ts +0 -0
  180. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/graph.test.ts +0 -0
  181. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/graph.ts +0 -0
  182. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/icons.ts +0 -0
  183. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/inspect.test.ts +0 -0
  184. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/inspect.ts +0 -0
  185. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/kinds.ts +0 -0
  186. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/progress.test.ts +0 -0
  187. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/progress.ts +0 -0
  188. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/schema-form.test.ts +0 -0
  189. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/schema-form.ts +0 -0
  190. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/status.ts +0 -0
  191. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/lib/workers.ts +0 -0
  192. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/main.ts +0 -0
  193. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/router.test.ts +0 -0
  194. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/router.ts +0 -0
  195. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/stores/edit.test.ts +0 -0
  196. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/stores/edit.ts +0 -0
  197. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/stores/live.test.ts +0 -0
  198. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/stores/live.ts +0 -0
  199. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/stores/run.test.ts +0 -0
  200. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/stores/run.ts +0 -0
  201. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/style.css +0 -0
  202. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/test/fixtures.ts +0 -0
  203. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/views/EditSessions.test.ts +0 -0
  204. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/views/EditSessions.vue +0 -0
  205. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/views/EditorView.test.ts +0 -0
  206. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/views/EditorView.vue +0 -0
  207. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/views/ExecutionsView.vue +0 -0
  208. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/views/LoginView.test.ts +0 -0
  209. {simrun-0.3.0 → simrun-0.3.1}/frontend/src/views/LoginView.vue +0 -0
  210. {simrun-0.3.0 → simrun-0.3.1}/frontend/tsconfig.json +0 -0
  211. {simrun-0.3.0 → simrun-0.3.1}/frontend/tsconfig.node.json +0 -0
  212. {simrun-0.3.0 → simrun-0.3.1}/frontend/vite.config.ts +0 -0
  213. {simrun-0.3.0 → simrun-0.3.1}/release-notes/0.1.0.md +0 -0
  214. {simrun-0.3.0 → simrun-0.3.1}/release-notes/0.2.0.md +0 -0
  215. {simrun-0.3.0 → simrun-0.3.1}/release-notes/0.3.0.md +0 -0
  216. {simrun-0.3.0 → simrun-0.3.1}/scripts/llms_txt.py +0 -0
  217. {simrun-0.3.0 → simrun-0.3.1}/scripts/openapi.py +0 -0
  218. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/__main__.py +0 -0
  219. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/argo.py +0 -0
  220. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/build_constraints.txt +0 -0
  221. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/cli.py +0 -0
  222. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/client.py +0 -0
  223. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/config.py +0 -0
  224. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/cwl.py +0 -0
  225. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/demo.py +0 -0
  226. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/edit.py +0 -0
  227. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/ledger.py +0 -0
  228. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/local.py +0 -0
  229. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/mcp.py +0 -0
  230. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/plugins.py +0 -0
  231. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/plugins_builtin.py +0 -0
  232. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/podspec.py +0 -0
  233. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/resources.py +0 -0
  234. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/__init__.py +0 -0
  235. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/auth.py +0 -0
  236. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/backend.py +0 -0
  237. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/compare.py +0 -0
  238. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/edits.py +0 -0
  239. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/index.py +0 -0
  240. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/local_backend.py +0 -0
  241. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/local_env.py +0 -0
  242. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/logs.py +0 -0
  243. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/service/submission.py +0 -0
  244. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/snapshot.py +0 -0
  245. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/store.py +0 -0
  246. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/testing.py +0 -0
  247. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/EditSessions-Cwa8Hn5O.js +0 -0
  248. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/EditorView-CSEPd5zO.css +0 -0
  249. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/EditorView-DsGltoOh.js +0 -0
  250. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/ExecutionsView-CGILwumK.css +0 -0
  251. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/ExecutionsView-D56ZSL8L.js +0 -0
  252. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/index-0ZuCJ47D.js +0 -0
  253. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/index-OCEqe9F1.css +0 -0
  254. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/live-Cz_hXu53.js +0 -0
  255. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/style-BG1Be_7-.js +0 -0
  256. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/assets/style-_6XKS09t.css +0 -0
  257. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/favicon.svg +0 -0
  258. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/web/index.html +0 -0
  259. {simrun-0.3.0 → simrun-0.3.1}/src/simrun/workflow.py +0 -0
  260. {simrun-0.3.0 → simrun-0.3.1}/tests/cluster/Dockerfile +0 -0
  261. {simrun-0.3.0 → simrun-0.3.1}/tests/cluster/conftest.py +0 -0
  262. {simrun-0.3.0 → simrun-0.3.1}/tests/cluster/local.py +0 -0
  263. {simrun-0.3.0 → simrun-0.3.1}/tests/cluster/test_capacity.py +0 -0
  264. {simrun-0.3.0 → simrun-0.3.1}/tests/cluster/test_cluster.py +0 -0
  265. {simrun-0.3.0 → simrun-0.3.1}/tests/cluster/test_service_image.py +0 -0
  266. {simrun-0.3.0 → simrun-0.3.1}/tests/cluster/test_sources.py +0 -0
  267. {simrun-0.3.0 → simrun-0.3.1}/tests/conftest.py +0 -0
  268. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_api.py +0 -0
  269. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_compare.py +0 -0
  270. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_controller.py +0 -0
  271. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_editor_api.py +0 -0
  272. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_edits.py +0 -0
  273. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_events.py +0 -0
  274. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_index.py +0 -0
  275. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_local_backend.py +0 -0
  276. {simrun-0.3.0 → simrun-0.3.1}/tests/service/test_web_api.py +0 -0
  277. {simrun-0.3.0 → simrun-0.3.1}/tests/test_argo.py +0 -0
  278. {simrun-0.3.0 → simrun-0.3.1}/tests/test_cli.py +0 -0
  279. {simrun-0.3.0 → simrun-0.3.1}/tests/test_cli_local.py +0 -0
  280. {simrun-0.3.0 → simrun-0.3.1}/tests/test_client.py +0 -0
  281. {simrun-0.3.0 → simrun-0.3.1}/tests/test_config.py +0 -0
  282. {simrun-0.3.0 → simrun-0.3.1}/tests/test_cwl.py +0 -0
  283. {simrun-0.3.0 → simrun-0.3.1}/tests/test_deploy.py +0 -0
  284. {simrun-0.3.0 → simrun-0.3.1}/tests/test_edit.py +0 -0
  285. {simrun-0.3.0 → simrun-0.3.1}/tests/test_exec.py +0 -0
  286. {simrun-0.3.0 → simrun-0.3.1}/tests/test_ledger.py +0 -0
  287. {simrun-0.3.0 → simrun-0.3.1}/tests/test_local.py +0 -0
  288. {simrun-0.3.0 → simrun-0.3.1}/tests/test_mcp.py +0 -0
  289. {simrun-0.3.0 → simrun-0.3.1}/tests/test_plugins.py +0 -0
  290. {simrun-0.3.0 → simrun-0.3.1}/tests/test_ports.py +0 -0
  291. {simrun-0.3.0 → simrun-0.3.1}/tests/test_resources.py +0 -0
  292. {simrun-0.3.0 → simrun-0.3.1}/tests/test_snapshot.py +0 -0
  293. {simrun-0.3.0 → simrun-0.3.1}/tests/test_store.py +0 -0
  294. {simrun-0.3.0 → simrun-0.3.1}/tests/test_version.py +0 -0
  295. {simrun-0.3.0 → simrun-0.3.1}/tests/test_workflow.py +0 -0
  296. {simrun-0.3.0 → simrun-0.3.1}/tox.ini +0 -0
  297. {simrun-0.3.0 → simrun-0.3.1}/uv.lock +0 -0
  298. {simrun-0.3.0 → simrun-0.3.1}/zensical.toml +0 -0
@@ -1,5 +1,5 @@
1
1
  [tool.bumpversion]
2
- current_version = "0.3.0"
2
+ current_version = "0.3.1"
3
3
  commit = true
4
4
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
5
5
  serialize = ["{major}.{minor}.{patch}"]
@@ -8,7 +8,7 @@ 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.3.0"
11
+ version: "0.3.1"
12
12
  date-released: "2026-11-08"
13
13
  doi: "10.5281/zenodo.24035618"
14
14
  license: MIT
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: simrun
3
- Version: 0.3.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
@@ -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.3.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.3.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.3.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
@@ -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. 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). 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.
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
 
@@ -10,7 +10,7 @@
10
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.3.0`, `simrun-0.3.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.3.0 \
67
- --build-arg WHEEL=simrun-0.3.0-py3-none-any.whl build/service
68
- docker push registry.cluster.internal:5000/simrun-service:0.3.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.
@@ -2,6 +2,8 @@
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
+
5
7
  --8<-- "release-notes/0.3.0.md"
6
8
 
7
9
  --8<-- "release-notes/0.2.0.md"
@@ -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).
@@ -133,10 +133,10 @@ markers = [
133
133
  ]
134
134
 
135
135
  [tool.ty.environment]
136
- # the package lives in the src layout, the helpers of the cluster tests are
137
- # imported by the module name; the checked python version is inferred from
138
- # `project.requires-python` (i.e. the oldest supported version)
139
- root = ["./src", "./tests/cluster"]
136
+ # the package lives in the src layout, the helpers of the cluster tests and of the
137
+ # smoke workflows are imported by their module names; the checked python version is
138
+ # inferred from `project.requires-python` (i.e. the oldest supported version)
139
+ root = ["./src", "./tests/cluster", "./tests/smoke"]
140
140
 
141
141
  [tool.ty.src]
142
142
  include = ["src", "tests", "scripts"]
@@ -0,0 +1,21 @@
1
+ # Release notes for simrun 0.3.1
2
+
3
+ Faster images and a run on the k3d test cluster which takes about as long as on the machine itself: the smoke workflows run every analysis of sbmlsim and the HCTZ model of pkdb_models through simrun, and their timelines show where the time of a run goes. A retry with more memory, which never fitted its node, now does.
4
+
5
+ ## Features
6
+
7
+ - **Smoke workflows.** `tests/smoke/run.py` runs the analyses of sbmlsim (simulate, fit, identifiability, fisher, report, petab, scan, sensitivity, uncertainty) and the simulations, a fit and the build of the models of pkdb_models through simrun, from the checkouts of both, locally (`--local`) or on the local test system (`--k3d`). After every run it prints the timeline of its tasks (`tests/smoke/timeline.py`): the wait for the dependencies, the pod, its admission and its start, the preparation, the work, the merge, the cpu and the CPU throttling of every task, and the seconds of the environment and the image. On the same machine sbmlsim takes 78 s on k3d and 60 s locally, pkdb_models about 250 s both. See [Smoke workflows](https://matthiaskoenig.github.io/simrun/testing/#smoke-workflows).
8
+ - **Faster images.** The images compile the bytecode of their packages, so a pod no longer compiles at every import, and keep the downloads of uv in a cache of BuildKit, whose state is now on a volume and outlives its pod. A cold image of sbmlsim builds in 47 s instead of 85 s, an image after a change of simrun in 6 s, and is 378 MiB instead of 583 MiB.
9
+ - **Git in the images.** The image of an environment installs git when a dependency is locked from a git repository, e.g. sbmlsim from GitHub in the lock of pkdb_models.
10
+ - **The reports of the workers.** A report carries when its harness started, the seconds it prepared (the install of the sources, the restart, the imports), the cpu of its units and, in a pod, the seconds its CPU quota held it back (`started`, `prepare_seconds`, `cpu_seconds`, `throttled_seconds`). The service reads the report of a newer harness and ignores the fields it does not know. The coordinator logs the seconds of its merge.
11
+
12
+ ## Fixes
13
+
14
+ - A retry with more memory waited for Kueue forever when its memory, e.g. 5 GiB times the retry factor, came out a hair above a whole GiB and was rounded up beyond the memory of every node: a pod is now sized to whole GiB without the noise of floating point.
15
+ - A watch of the workflows which the API server or a proxy cut starts again at once with a note in the log, instead of with a warning after 5 s.
16
+ - BuildKit asks for one core in k3d and may use four, so the controllers still fit the server node of a runner with four cores, and the setup of the k3d cluster fails at once on an error of the manifests instead of after ten minutes.
17
+
18
+ ## Upgrading
19
+
20
+ - Apply `deploy/cluster` again: BuildKit gets the volume `buildkitd-state` (local-path, 50 GiB) and a rolling update of one pod at a time.
21
+ - Every model builds its image once more on its first run, as the Dockerfile changed.
@@ -1,3 +1,3 @@
1
1
  """simrun: a runner of simulation workflows on a k3s cluster."""
2
2
 
3
- __version__ = "0.3.0"
3
+ __version__ = "0.3.1"
@@ -75,3 +75,22 @@ def memory_oom_kills(root: Path = CGROUP_ROOT) -> int | None:
75
75
  if key == "oom_kill":
76
76
  return int(value)
77
77
  return None
78
+
79
+
80
+ def cpu_throttled_seconds(root: Path = CGROUP_ROOT) -> float | None:
81
+ """The seconds the processes of the cgroup waited for its CPU quota.
82
+
83
+ `throttled_usec` of `cpu.stat`: time a process could have run but the quota of
84
+ `cpu.max` held it back, the evidence that a task needs more cores.
85
+
86
+ Returns:
87
+ Seconds, `None` without the file or the field.
88
+ """
89
+ text = _read(root / "cpu.stat")
90
+ if text is None:
91
+ return None
92
+ for line in text.splitlines():
93
+ key, _, value = line.partition(" ")
94
+ if key == "throttled_usec":
95
+ return int(value) / 1e6
96
+ return None
@@ -354,6 +354,16 @@ def image_ref(env: Environment, registry: str, dockerfile_text: str) -> str:
354
354
  return f"{registry}/simrun-env:{digest.hexdigest()[:16]}"
355
355
 
356
356
 
357
+ # the cache of uv in a build: a cache of BuildKit, kept between the builds and outside
358
+ # of the image, so a build downloads only the wheels an earlier one did not
359
+ UV_CACHE = "/root/.cache/uv"
360
+ _UV_RUN = (
361
+ f"RUN --mount=type=cache,id=simrun-uv,target={UV_CACHE} UV_CACHE_DIR={UV_CACHE}"
362
+ )
363
+ # a requirement locked from a git repository, e.g. `pkpdsim @ git+https://...`
364
+ GIT_REQUIREMENT = re.compile(r"@ git\+", re.MULTILINE)
365
+
366
+
357
367
  def dockerfile(
358
368
  env: Environment,
359
369
  base_image: str,
@@ -362,6 +372,11 @@ def dockerfile(
362
372
  ) -> str:
363
373
  """Dockerfile of the image: the dependencies, build backends and `simrun`, no source.
364
374
 
375
+ The packages are installed with their bytecode compiled, so a pod does not
376
+ compile the modules it imports, and with the downloads of uv in a cache of
377
+ BuildKit (`UV_CACHE`), so a build after a change of a dependency downloads only
378
+ what changed. `simrun` is the last layer: a new harness rebuilds only it.
379
+
365
380
  The pinned requirements are written with a heredoc, so no source is copied from the
366
381
  build context. The model and the libraries are installed at pod start.
367
382
 
@@ -372,13 +387,17 @@ def dockerfile(
372
387
  wheel: File name of the simrun wheel in the build context, the only file
373
388
  copied; the harness of the service, never installed by name.
374
389
  system_packages: Debian packages installed before the requirements, the
375
- shared libraries their wheels link (`ClusterConfig.system_packages`).
390
+ shared libraries their wheels link (`ClusterConfig.system_packages`);
391
+ `git` as well when a requirement is locked from a git repository.
376
392
  """
393
+ packages = list(system_packages)
394
+ if GIT_REQUIREMENT.search(env.requirements) and "git" not in packages:
395
+ packages.append("git") # uv clones a dependency locked from git
377
396
  system = ""
378
- if system_packages:
397
+ if packages:
379
398
  system = (
380
399
  "RUN apt-get update && apt-get install -y --no-install-recommends "
381
- f"{' '.join(system_packages)} && rm -rf /var/lib/apt/lists/*\n"
400
+ f"{' '.join(packages)} && rm -rf /var/lib/apt/lists/*\n"
382
401
  )
383
402
  return (
384
403
  f"FROM {base_image}\n"
@@ -389,8 +408,9 @@ def dockerfile(
389
408
  "RUN cat > /tmp/requirements.txt <<'SIMRUN_REQUIREMENTS'\n"
390
409
  f"{env.requirements.rstrip()}\n"
391
410
  "SIMRUN_REQUIREMENTS\n"
392
- "RUN uv pip install --no-deps -r /tmp/requirements.txt "
393
- "&& rm /tmp/requirements.txt\n"
411
+ f"{_UV_RUN} uv pip install --no-deps --compile-bytecode "
412
+ "-r /tmp/requirements.txt && rm /tmp/requirements.txt\n"
394
413
  f"COPY {wheel} /tmp/{wheel}\n"
395
- f"RUN uv pip install --no-deps /tmp/{wheel} && rm /tmp/{wheel}\n"
414
+ f"{_UV_RUN} uv pip install --no-deps --compile-bytecode /tmp/{wheel} "
415
+ f"&& rm /tmp/{wheel}\n"
396
416
  )
@@ -134,6 +134,15 @@ class TaskPlan:
134
134
  coordinator_merges: bool = False
135
135
 
136
136
 
137
+ def _whole_gib(gib: float) -> int:
138
+ """GiB rounded up to whole GiB, ignoring floating point noise.
139
+
140
+ `0.5 + 15 * 0.30000000000000004` is 5.000000000000001, which `math.ceil` makes 6:
141
+ a pod of a node of 5 GiB which no node could admit.
142
+ """
143
+ return math.ceil(round(gib, 6))
144
+
145
+
137
146
  def _usable(nodes: list[Node], gpus: int) -> list[Node]:
138
147
  return [n for n in nodes if n.reserved_by is None and n.gpus >= gpus]
139
148
 
@@ -203,7 +212,7 @@ def shape(
203
212
  retry_n = _fit(retry_node, base, retry_per_worker)
204
213
  if retry_n is not None:
205
214
  retry_n = min(retry_n, n)
206
- retry_memory = math.ceil(base + retry_per_worker * retry_n)
215
+ retry_memory = _whole_gib(base + retry_per_worker * retry_n)
207
216
  else:
208
217
  logger.warning(
209
218
  "a retry with %s GiB per worker fits on no node, "
@@ -215,7 +224,7 @@ def shape(
215
224
  retry_per_worker = max(0.0, retry_memory - base)
216
225
  return PodShape(
217
226
  cores=n,
218
- memory_gb=math.ceil(base + per_worker * n),
227
+ memory_gb=_whole_gib(base + per_worker * n),
219
228
  processes=n,
220
229
  per_worker_gb=per_worker,
221
230
  retry_memory_gb=retry_memory,
@@ -226,7 +235,7 @@ def shape(
226
235
 
227
236
 
228
237
  def _command_shape(settings: CommandSettings, nodes: list[Node]) -> PodShape:
229
- memory = math.ceil(settings.memory_gb)
238
+ memory = _whole_gib(settings.memory_gb)
230
239
  fitting = [
231
240
  n
232
241
  for n in _usable(nodes, settings.gpus)
@@ -241,7 +250,7 @@ def _command_shape(settings: CommandSettings, nodes: list[Node]) -> PodShape:
241
250
  )
242
251
  node_memory = max(n.memory_gb for n in fitting)
243
252
  retry = max(
244
- memory, min(math.ceil(settings.memory_gb * RETRY_FACTOR), int(node_memory))
253
+ memory, min(_whole_gib(settings.memory_gb * RETRY_FACTOR), int(node_memory))
245
254
  )
246
255
  return PodShape(
247
256
  cores=settings.cores,
@@ -1205,7 +1205,7 @@ class _Service:
1205
1205
  reports: dict[str, dict[int, WorkerReport]] = {}
1206
1206
  for path in sorted((task_dir / WORKERS_DIR).glob("*.json")):
1207
1207
  try:
1208
- report = WorkerReport(**json.loads(path.read_text()))
1208
+ report = WorkerReport.from_json(path.read_text())
1209
1209
  except (OSError, ValueError, TypeError) as error:
1210
1210
  logger.warning("report %s of run %s: %s", path.name, record.id, error)
1211
1211
  continue
@@ -52,6 +52,7 @@ from kubernetes.client.exceptions import ApiException
52
52
  from kubernetes.config.config_exception import ConfigException
53
53
  from kubernetes.utils import parse_quantity
54
54
  from kubernetes.watch import Watch
55
+ from urllib3.exceptions import ProtocolError, ReadTimeoutError
55
56
 
56
57
  from simrun.argo import CONTAINER, GPU_RESOURCE, RESERVED_KEY, RUN_LABEL, to_argo
57
58
  from simrun.config import ClusterConfig
@@ -500,6 +501,9 @@ class ArgoBackend:
500
501
  self._notify()
501
502
  if self._closed.is_set():
502
503
  break
504
+ except (ProtocolError, ReadTimeoutError) as error:
505
+ # the API server or a proxy ended the connection: watch on at once
506
+ logger.info("the watch of the workflows was cut (%s), again", error)
503
507
  except Exception:
504
508
  logger.warning(
505
509
  "the watch of the workflows failed, it starts again in %s s",
@@ -52,7 +52,6 @@ one before stopped; a record which cannot be read is logged and skipped.
52
52
  """
53
53
 
54
54
  import dataclasses
55
- import json
56
55
  import logging
57
56
  import os
58
57
  import re
@@ -605,7 +604,7 @@ class Controller:
605
604
  / f"{key}-{attempt}.json"
606
605
  )
607
606
  try:
608
- report = WorkerReport(**json.loads(path.read_text()))
607
+ report = WorkerReport.from_json(path.read_text())
609
608
  except FileNotFoundError:
610
609
  return False
611
610
  except (OSError, ValueError, TypeError) as error:
@@ -1009,7 +1008,7 @@ class Controller:
1009
1008
  if (marks / name).exists():
1010
1009
  continue
1011
1010
  try:
1012
- report = WorkerReport(**json.loads((reports_dir / name).read_text()))
1011
+ report = WorkerReport.from_json((reports_dir / name).read_text())
1013
1012
  except (ValueError, TypeError) as error:
1014
1013
  logger.warning("report %s of run %s: %s", name, record.id, error)
1015
1014
  (marks / name).touch()