simrun 0.2.0__tar.gz → 0.3.0__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.
- simrun-0.3.0/.bumpversion.toml +51 -0
- {simrun-0.2.0 → simrun-0.3.0}/CITATION.cff +3 -1
- {simrun-0.2.0 → simrun-0.3.0}/CLAUDE.md +2 -2
- {simrun-0.2.0 → simrun-0.3.0}/PKG-INFO +7 -3
- {simrun-0.2.0 → simrun-0.3.0}/README.md +6 -2
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/argo/requeue.yaml +4 -3
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/simrun.yaml +2 -2
- {simrun-0.2.0 → simrun-0.3.0}/deploy/service/Dockerfile +1 -1
- {simrun-0.2.0 → simrun-0.3.0}/docs/concepts.md +2 -2
- {simrun-0.2.0 → simrun-0.3.0}/docs/deployment.md +5 -5
- {simrun-0.2.0 → simrun-0.3.0}/docs/index.md +9 -1
- {simrun-0.2.0 → simrun-0.3.0}/docs/local.md +1 -1
- {simrun-0.2.0 → simrun-0.3.0}/docs/release-notes.md +2 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/service.md +5 -2
- {simrun-0.2.0 → simrun-0.3.0}/docs/web-app.md +2 -2
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/api/openapi.json +12 -1
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/api/schema.d.ts +4 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/Inspector.test.ts +14 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/InspectorLogs.vue +11 -4
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/SchemaForm.test.ts +13 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/SchemaForm.vue +4 -2
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/schema-form.test.ts +11 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/schema-form.ts +5 -1
- simrun-0.3.0/release-notes/0.3.0.md +25 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/__init__.py +1 -1
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/cli.py +69 -29
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/client.py +32 -3
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/config.py +16 -1
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/demo.py +1 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/environment.py +29 -5
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/planner.py +17 -2
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/podspec.py +66 -12
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/app.py +14 -5
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/argo_backend.py +87 -2
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/local_backend.py +32 -7
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/submission.py +11 -10
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/snapshot.py +6 -1
- simrun-0.2.0/src/simrun/web/assets/EditSessions-CXPjGP--.js → simrun-0.3.0/src/simrun/web/assets/EditSessions-Cwa8Hn5O.js +1 -1
- simrun-0.3.0/src/simrun/web/assets/EditorView-DsGltoOh.js +6 -0
- simrun-0.3.0/src/simrun/web/assets/ExecutionsView-D56ZSL8L.js +3 -0
- simrun-0.2.0/src/simrun/web/assets/index-D5N3WTgj.js → simrun-0.3.0/src/simrun/web/assets/index-0ZuCJ47D.js +2 -2
- simrun-0.2.0/src/simrun/web/assets/index-y_ImNT_d.css → simrun-0.3.0/src/simrun/web/assets/index-OCEqe9F1.css +1 -1
- simrun-0.2.0/src/simrun/web/assets/live-B_WlS5vn.js → simrun-0.3.0/src/simrun/web/assets/live-Cz_hXu53.js +1 -1
- simrun-0.2.0/src/simrun/web/assets/style-JTLlRkS0.js → simrun-0.3.0/src/simrun/web/assets/style-BG1Be_7-.js +1 -1
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/web/index.html +2 -2
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_api.py +5 -3
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_argo_backend.py +85 -1
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_controller.py +5 -3
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_events.py +20 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_local_backend.py +121 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_cli.py +46 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_client.py +32 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_config.py +12 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_environment.py +23 -1
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_planner.py +68 -4
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_ports.py +57 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_resources.py +11 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_snapshot.py +5 -2
- simrun-0.3.0/tests/test_version.py +27 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_worker.py +12 -6
- simrun-0.2.0/.bumpversion.toml +0 -24
- simrun-0.2.0/src/simrun/web/assets/EditorView-PGWyjvIn.js +0 -6
- simrun-0.2.0/src/simrun/web/assets/ExecutionsView-CBvSXfM4.js +0 -3
- {simrun-0.2.0 → simrun-0.3.0}/.github/CODEOWNERS +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/actions/setup/action.yml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/dependabot.yml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/pull_request_template.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/rulesets/apply.sh +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/rulesets/develop.json +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/rulesets/main.json +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/rulesets/tags.json +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/workflows/ci-cd.yml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/workflows/cluster.yml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/workflows/docs.yml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.github/workflows/lint.yml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.gitignore +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.pre-commit-config.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.python-version +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.ruff.toml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/.zenodo.json +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/LICENSE +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/argo/controller-config.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/argo/kustomization.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/argo/namespace-install.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/argo/workflow-rbac.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/buildkit.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/kueue/config.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/kueue/kustomization.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/kueue/manifests.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/kueue/queues.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/kustomization.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/namespace.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/off-workers.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/priority-classes.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/store-settings.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/store.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/cluster/zot.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/k3d/buildkit.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/k3d/kustomization.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/k3d/on-server.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/k3d/quotas.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/k3d/store-claim.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/deploy/k3d/store.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/argo.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/cgroup.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/cli.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/client.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/config.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/cwl.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/demo.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/environment.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/index.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/ledger.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/local.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/mcp.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/planner.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/plugins.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/plugins_builtin.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/podspec.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/resources.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.app.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.argo_backend.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.auth.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.backend.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.compare.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.controller.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.index.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.local_backend.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.local_env.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.logs.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/service.submission.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/snapshot.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/store.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/testing.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/worker.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/api/workflow.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/command-line.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/development.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/images/editor-command.png +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/images/editor.png +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/images/executions-failed.png +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/images/executions-outputs.png +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/images/executions-running.png +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/installation.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/mcp.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/plugins.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/robots.txt +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/testing.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/docs/workflows.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/examples/squares.yaml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/README.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/index.html +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/mockup/workflow-icons.js +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/mockup/workflow-studio.html +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/package-lock.json +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/package.json +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/public/favicon.svg +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/App.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/api/client.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/api/client.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/api/http.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/api/sse.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/api/sse.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/auth.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/AppIcon.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditBar.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditBar.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditCanvas.fit.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditCanvas.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditCanvas.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditInspector.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditInspector.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditNode.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditTaskPanel.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/EditWorkflowPanel.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/Inspector.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/InspectorOutputs.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/InspectorOverview.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/InspectorRun.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/LogoMark.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/RunBar.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/RunBar.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/RunCanvas.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/RunCard.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/RunList.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/RunList.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/ServerStrip.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/ServerStrip.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/StatusPill.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/TaskNode.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/TaskNode.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/TaskPalette.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/TaskPalette.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/TopBar.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/components/TopBar.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/edit-graph.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/edit-graph.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/filters.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/filters.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/format.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/format.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/graph.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/graph.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/icons.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/inspect.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/inspect.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/kinds.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/progress.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/progress.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/status.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/lib/workers.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/main.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/router.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/router.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/stores/edit.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/stores/edit.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/stores/live.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/stores/live.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/stores/run.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/stores/run.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/style.css +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/test/fixtures.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/views/EditSessions.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/views/EditSessions.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/views/EditorView.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/views/EditorView.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/views/ExecutionsView.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/views/LoginView.test.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/src/views/LoginView.vue +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/tsconfig.json +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/tsconfig.node.json +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/frontend/vite.config.ts +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/pyproject.toml +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/release-notes/0.1.0.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/release-notes/0.2.0.md +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/scripts/llms_txt.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/scripts/openapi.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/__main__.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/argo.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/build_constraints.txt +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/cgroup.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/cwl.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/edit.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/ledger.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/local.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/mcp.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/plugins.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/plugins_builtin.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/resources.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/__init__.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/auth.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/backend.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/compare.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/controller.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/edits.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/index.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/local_env.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/service/logs.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/store.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/testing.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/web/assets/EditorView-CSEPd5zO.css +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/web/assets/ExecutionsView-CGILwumK.css +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/web/assets/style-_6XKS09t.css +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/web/favicon.svg +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/worker.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/src/simrun/workflow.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/cluster/Dockerfile +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/cluster/conftest.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/cluster/k3d_cluster.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/cluster/local.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/cluster/test_capacity.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/cluster/test_cluster.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/cluster/test_service_image.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/cluster/test_sources.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/conftest.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_compare.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_editor_api.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_edits.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_index.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/service/test_web_api.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_argo.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_cgroup.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_cli_local.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_cwl.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_deploy.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_edit.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_exec.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_ledger.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_local.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_mcp.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_plugins.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_store.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tests/test_workflow.py +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/tox.ini +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/uv.lock +0 -0
- {simrun-0.2.0 → simrun-0.3.0}/zensical.toml +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[tool.bumpversion]
|
|
2
|
+
current_version = "0.3.0"
|
|
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.
|
|
11
|
+
version: "0.3.0"
|
|
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"
|
|
@@ -53,10 +53,10 @@ uv run python scripts/openapi.py && (cd frontend && npm run types) # after a c
|
|
|
53
53
|
- **`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
54
|
- **`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
55
|
- **`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,
|
|
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, 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
57
|
- **`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
58
|
- **`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`.
|
|
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 (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
60
|
- **`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
61
|
- **`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
62
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: simrun
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
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
|
[](https://pypi.org/project/simrun/)
|
|
63
63
|
[](https://pypi.org/project/simrun/)
|
|
64
64
|
[](https://opensource.org/licenses/MIT)
|
|
65
|
-
[](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
|
|
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
|
[](https://pypi.org/project/simrun/)
|
|
5
5
|
[](https://pypi.org/project/simrun/)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
[](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
|
|
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
|
|
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:
|
|
16
|
+
value: 1s
|
|
@@ -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.
|
|
85
|
+
simrun_wheel: /opt/simrun/simrun-0.3.0-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.
|
|
159
|
+
image: registry.cluster.internal:5000/simrun-service:0.3.0
|
|
160
160
|
command:
|
|
161
161
|
- uvicorn
|
|
162
162
|
- --factory
|
|
@@ -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.
|
|
27
|
+
ARG WHEEL=simrun-0.3.0-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
|
|
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
|
|
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.
|
|
91
91
|
|
|
92
92
|
## Reservations
|
|
93
93
|
|
|
@@ -7,7 +7,7 @@
|
|
|
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
|
|
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
13
|
| builds | `buildkit.yaml` | the BuildKit daemon, which builds the images of the environments |
|
|
@@ -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.
|
|
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 |
|
|
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.
|
|
67
|
-
--build-arg WHEEL=simrun-0.
|
|
68
|
-
docker push registry.cluster.internal:5000/simrun-service:0.
|
|
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
|
|
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
|
-
[](https://github.com/matthiaskoenig/simrun/actions/workflows/ci-cd.yml) [](https://matthiaskoenig.github.io/simrun) [](https://pypi.org/project/simrun/) [](https://pypi.org/project/simrun/) [](https://opensource.org/licenses/MIT) [](https://github.com/matthiaskoenig/simrun/actions/workflows/ci-cd.yml) [](https://matthiaskoenig.github.io/simrun) [](https://pypi.org/project/simrun/) [](https://pypi.org/project/simrun/) [](https://opensource.org/licenses/MIT) [](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,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.0.md"
|
|
6
|
+
|
|
5
7
|
--8<-- "release-notes/0.2.0.md"
|
|
6
8
|
|
|
7
9
|
--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
|
|
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.
|
|
@@ -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
|

|
|
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
|

|
|
@@ -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="
|
|
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
|
|
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");
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
and nested models as a group; anything else is JSON text which keeps what is
|
|
5
5
|
typed and says "not valid JSON" while it does not parse, without emitting.
|
|
6
6
|
A field left empty is not written, so the default of the plugin applies; the
|
|
7
|
-
default of the schema shows as the placeholder
|
|
7
|
+
default of the schema shows as the placeholder, none for a default of null,
|
|
8
|
+
and a field the schema marks `readOnly`, which the plan of the plugin sets,
|
|
9
|
+
is not in the form. Scalar fields take one of two
|
|
8
10
|
columns, lists, groups, JSON and strings not known to be short both. The
|
|
9
11
|
errors of the service for a field (`errors`, by dotted location) show under it.
|
|
10
12
|
-->
|
|
@@ -163,7 +165,7 @@ const rows = (field: Field): number =>
|
|
|
163
165
|
:wrap="field.kind === 'list' ? 'off' : 'soft'"
|
|
164
166
|
:rows="rows(field)"
|
|
165
167
|
:value="texts[field.key]"
|
|
166
|
-
:placeholder="field.default === undefined ? '' : JSON.stringify(field.default)"
|
|
168
|
+
:placeholder="field.default === undefined || field.default === null ? '' : JSON.stringify(field.default)"
|
|
167
169
|
@input="(e) => onText(field, (e.target as HTMLTextAreaElement).value)"
|
|
168
170
|
></textarea>
|
|
169
171
|
<span v-if="problems[field.key]" class="mt-0.5 block text-[11px] text-red-700">{{ problems[field.key] }}</span>
|
|
@@ -53,6 +53,17 @@ describe("fields", () => {
|
|
|
53
53
|
expect(byKey.inner).toMatchObject({ kind: "object", fields: [{ key: "depth", kind: "integer", default: 3 }] });
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
+
it("leaves out a field the plan of the plugin sets, marked readOnly", () => {
|
|
57
|
+
const planned: JsonSchema = {
|
|
58
|
+
properties: {
|
|
59
|
+
units: { anyOf: [{ type: "integer" }, { type: "null" }], default: null, readOnly: true, title: "Units" },
|
|
60
|
+
seed: { anyOf: [{ type: "integer" }, { type: "null" }], default: null, title: "Seed" },
|
|
61
|
+
},
|
|
62
|
+
type: "object",
|
|
63
|
+
};
|
|
64
|
+
expect(fields(planned).map((f) => f.key)).toEqual(["seed"]);
|
|
65
|
+
});
|
|
66
|
+
|
|
56
67
|
it("gives none for a schema without properties", () => {
|
|
57
68
|
expect(fields({})).toEqual([]);
|
|
58
69
|
});
|
|
@@ -164,7 +164,11 @@ function field(root: JsonSchema, key: string, raw: JsonSchema, required: boolean
|
|
|
164
164
|
function fieldsOf(root: JsonSchema, node: JsonSchema): Field[] {
|
|
165
165
|
if (!isRecord(node.properties)) return [];
|
|
166
166
|
const required = new Set(Array.isArray(node.required) ? node.required : []);
|
|
167
|
-
|
|
167
|
+
// a field marked `readOnly` is set by the plan of the plugin, e.g. the units
|
|
168
|
+
// of a split task, and is no setting of the form
|
|
169
|
+
return Object.entries(node.properties).flatMap(([key, raw]) =>
|
|
170
|
+
isRecord(raw) && raw.readOnly !== true ? [field(root, key, raw, required.has(key))] : [],
|
|
171
|
+
);
|
|
168
172
|
}
|
|
169
173
|
|
|
170
174
|
/** The fields of the settings model a schema describes; none for a schema without properties. */
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Release notes for simrun 0.3.0
|
|
2
|
+
|
|
3
|
+
Faster workflows on the cluster and the first models of pkdb_models on it: a split task gets only the pods its work pays for, the service follows Argo through a watch instead of a poll, and the images of the environments have the system library which every SBML model needs. Locally, `simrun submit --local` runs every task type of sbmlsim and the projects at the root of a checkout, e.g. the tutorial workflow of sbmlsim.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **The split sized by the work.** A task of the split mode `fastest` gets no pod without a unit for each of its processes, and once the seconds of a unit are learned, a further pod only while every pod still has at least `pod_start_s` of work (new in `ClusterConfig`, 10 s). A pod which started after the others had taken the units only held cores. `demo.squares` learns per `sleep_s`. See [Split modes](https://matthiaskoenig.github.io/simrun/concepts/#split-modes).
|
|
8
|
+
- **A watch of the workflows.** The service watches the workflows of the runs and reconciles a run as soon as Argo changes it; `poll_s` is the fallback. The event streams of the web app check the store every `events_poll_s` (new, 0.5 s) instead of every `poll_s`. Argo requeues a workflow after 1 s instead of 2 s, so the next task of a workflow starts about a second earlier. A workflow of two split tasks and a command takes 35 to 38 s on the k3d test cluster instead of 40 s; most of the rest is the start of the pods.
|
|
9
|
+
- **System packages in the images.** The images of the environments install the Debian packages of `ClusterConfig.system_packages` on the base image, by default `libexpat1`, which the wheel of python-libsbml links. A fit of a pkdb_models model failed on the cluster without it. An image is named by its Dockerfile as well, so another base image or other system packages give a new image.
|
|
10
|
+
- **Projects at the root of a checkout.** A task imports from the root of the model first, as `python -m` in its checkout: the projects at the root of a checkout which no package installs, e.g. the `examples` of sbmlsim, run through simrun, and the client plans with the same path (`SourceProvenance.path`, new).
|
|
11
|
+
- **The settings form of the Editor.** It leaves out the fields the JSON Schema marks `readOnly`, which the plan of a type sets, e.g. `units`, and shows no placeholder `null`. The logs of a task in the inspector can wrap their lines at its width (**wrap lines**).
|
|
12
|
+
- **Tables on 80 columns.** The tables of the command line have a rule under the header instead of a frame and keep every value whole: a long value wraps in its column, numbers are right-aligned. The list of runs has no columns for the agent and the time of creation, which the submitter and the run id carry.
|
|
13
|
+
|
|
14
|
+
## Fixes
|
|
15
|
+
|
|
16
|
+
- An unsplit task of a plugin type, e.g. `sbmlsim.simulate` or `sbmlsim.report`, failed on the local backend with `needs the image of the run, and the run has none`: a local run has no image, and the argv of the task is now built without one (`podspec.unsplit_argv`).
|
|
17
|
+
- A local task runs with the environment of the service activated, so the command of a plugin (`python -m ...`) finds its python also when the service runs from a virtual environment which is not activated.
|
|
18
|
+
- A pod of a split task has no more processes than the task has units, so the other cores stay free for other tasks; an identifiability analysis of three parameters took every core of the machine before.
|
|
19
|
+
- The manifest, the Dockerfile and the deployment documentation of the service named simrun 0.1.0; `bump-my-version` now updates them with the version.
|
|
20
|
+
|
|
21
|
+
## Upgrading
|
|
22
|
+
|
|
23
|
+
- Apply `deploy/cluster` again: the controller of Argo gets `DEFAULT_REQUEUE_TIME=1s`. The Role of the service grants `watch` on workflows already.
|
|
24
|
+
- Every model builds its image once more on its first run, as the images are named anew; the images of 0.2.0 lack libexpat.
|
|
25
|
+
- `events_poll_s`, `pod_start_s` and `system_packages` are optional settings with defaults.
|