Release notes¶
The notes of every release, newest first. They are kept in release-notes/ of the repository and are the text of the GitHub releases.
Release notes for simrun 0.7.0¶
simrun keeps no backwards compatibility from this release on: the latest version is the only one in use, so the code, the data and the documentation that existed only so that earlier versions, their stores, settings, archives and clients keep working are removed.
Breaking¶
- The backend of a run is required. A run record and its summary must name the backend which ran it (
backend:local,argo,fakeorbrowser), in the store, in the index of the runs, in the answers of the API (openapi.json, the types of the npm package simrun-core) and in the archive ofPOST /runs/import. A record or an index row without it is no longer read as a run of the browser, and an upload without it is refused with 422 (#71, #72, #75). - Run records have every field. The fields
built,oom_kills,merge_pending,pending_release,pending_cancel,pending_logs,local_commandsandbackendhave no defaults any more, the path of a source and the flagclosedof an edit session neither, and a field which the code does not know is dropped when a record is written again instead of being kept for another version. - Plans have no
coordinator_merges. The coordinator of a split task has merged its units since simrun 0.2, and the flag only told the plans of earlier records apart. It is gone from the plans (TaskPlanof the API and of simrun-core), and with it the merge pod<task>-mergeof the Argo workflow of a run and its states in the controller. A coordinator which succeeds without the marker of its merge fails its task after the grace, with the message that it ended without the marker of its merge. The CWL export keeps its merge step. - No migration of the SQLite file. The index of the runs no longer drops and rebuilds a table of an earlier layout, and the learned resources no longer add the columns
run,core_secondsandsettingsto a table of an earlier release. - The setting
backendtakesargo,localorfakeonly. The python names of simrun 0.5 (simrun.service.argo_backend:backend,simrun.service.local_backend:backend,simrun.testing:FakeBackend) are refused. - No fallback to the python service. The documentation no longer describes the fallback of a cluster to the image and
deploy/clusterof 0.5.0 (SIMRUN_SERVICE=python), nor the upgrade from simrun 0.5 (simrun-bin). - The client expects a service of this release. It no longer explains a service without the uploads of snapshots (simrun 0.1) and no longer writes a file with holes as a plain member for the services before 0.5.0.
- The web app reads the records of this release. The store of the browser no longer reads a record without a backend as a run of the browser.
Changes¶
- The goldens of the tests are plain fixtures, maintained by hand:
crates/simrun-core/tests/data/parity/isgoldens/, the golden tests aretests/goldens.rsandcrates/simrun-wasm/tests/goldens.mjs, and the recorded exchanges of the contract test are the answers of the service itself, without a table of answers which differ by design. The comments, the test names and the documentation no longer describe the code by the retired python implementation. - The smoke timeline (
tests/smoke/timeline.py) no longer reads the worker reports of simrun 0.3.
Upgrading¶
- A store of 0.6.2 (records, index, learned resources, and the runs in the store of a browser) is read as it is.
- A record of 0.6.1 or earlier names no backend and is not read. Before the upgrade, remove those runs (
simrun cleanup, or the Remove of a browser run), or start 0.7.0 on a new store. Nothing of an earlier release is migrated. - A cluster whose settings name the backend with a python name of 0.5 names it
argo,localorfakeinstead.
Release notes for simrun 0.6.2¶
Fixes¶
- An uploaded browser run keeps the terms of the browser. A run which ran in the browser and was uploaded to the service showed pods, servers and an image when it was opened in another browser, or after it was removed from the store of the browser which ran it. The record of a run now names the backend which ran it (
backend:localorargofor a run of the service,browserfor a run of the web app), and an upload keeps it. Wherever the run is viewed, its card names a browser and its web workers, the run bar and the list of the runs mark it browser, the inspector says where it ran, lists the web workers with their memory not measured and says what the plan gave them, and the strip of the servers says that the run ran in a browser, on none of the servers. The summary of a run (GET /runsand the event streams) carries the backend as well. Records and index rows of 0.6.1 and before are read as they are: a run which a service took before keeps the terms of the service, and an upload from the web app of 0.6.1 is taken as a run of the browser (#71, #72). - Edges of the canvases. An edge which skipped a column was drawn behind the cards in its way: it now goes around them, with the routed edges which share a channel spread into lanes. The label of an edge never covers a card, another label or most of a short edge; it moves beside the line, or becomes a tooltip where no spot is free. The arrowhead ends on the input handle instead of reaching into it, and in the Editor every port is a row with its name and its handle (#69, #70).
- The whole graph on a phone. The smallest zoom of both canvases is 0.1 instead of 0.3, so the view fits a workflow of seven columns on a phone of 390 px (#70).
- On a phone the state of a run and its browser mark in the run bar wrap together instead of leaving the mark alone on a line (#71).
Release notes for simrun 0.6.1¶
Fixes¶
--versionof every binary.simrun --versionprinted the usage of the command line instead of the version, andsimrun-mcp,simrun-serve,simrun-local,simrun-worker,simrun-mergeandsimrun-exechad no--versioneither. Each binary of the wheel now answers--versionwith its name and the version of simrun, which a test checks for every one.
Release notes for simrun 0.6.0¶
The migration of simrun to Rust and WebAssembly is complete. simrun is now the wheel of its binaries, and the python implementation is retired. Only the package for writing python task types stays python (simrun.plugins, simrun.manifest, simrun.unit_serve): it is the bridge through which the binaries find and run them. The design and the plan of the migration are in docs/superpowers/ of the repository.
Features¶
- One wheel with the binaries.
pip install simruninstalls the following, and the python package's only dependency is pydantic:- the command line
simrunand the MCP serversimrun-mcp; - the service of a cluster
simrun-serveand the local servicesimrun-local; - the harness of the pods
simrun-worker,simrun-mergeandsimrun-exec; - the conformance kit of a unit module
simrun-abi; - the web app (
<prefix>/share/simrun/web) and the python package of the plugins.
- the command line
Wheels are built for:
- Linux, manylinux_2_28 and musllinux_1_2, each for x86_64 and aarch64;
- macOS arm64 and x86_64. The local mode runs there: the command line, the local service, the harness, the MCP server and the web app. A worker's memory is its physical footprint; there is no cgroup limit and no CPU pinning.
See Installation.
- The Rust service on the cluster. The image of the service now runs simrun-serve by default. It passed the k3d tests and the smoke workflows of sbmlsim and pkdb_models on k3d. The setting backend takes argo, local or fake; the python names of 0.5 are still read.
- Python task types through the unit ABI. The harness runs a python implementation through python -m simrun.unit_serve <type>, which speaks the protocol of the carrier serve. Its standard output carries the protocol only: whatever a plugin prints goes to the log, including output from a library or a child process.
- simrun.plugins.paths_from_env gives the command of an unsplit task its paths.
- python -m simrun.manifest --environment gives the environment of the plugins, which a local service records.
- simrun cwl <run> writes the CWL workflow of a run, replacing the export of the former simrun.cwl. It has the same commands as the run's Argo workflow and runs with cwltool or Toil.
- The npm package simrun-core. It holds the WebAssembly core of the web app with its bindings, the typed wrapper, the browser backend and the types of the API, for the web app and for other web pages. It is released with simrun at the same version. See the package simrun-core.
- A dark theme. The web app follows the dark or light scheme of the system, and you can also choose light, dark or system yourself. Every colour is a token of frontend/src/theme.css, checked for contrast in both schemes.
- A run in the browser is shown in browser terms. A run of the browser backend shows its web workers and the cores of this browser instead of pods. Its memory reads "not measured" instead of a peak of 0: a page cannot measure the memory of its web workers.
Removed¶
- The python implementation. This removes the python command line, MCP server, client, local service and cluster service, the harness, the planner, the ledger, and every other module except the package of the plugins. The following go with it:
SIMRUN_HARNESS=python,SIMRUN_LOCAL_SERVICE=pythonandSIMRUN_CLI=python;harness: pythonof the cluster configuration andSIMRUN_SERVICE=pythonof the image;python -m simrun;- the extra
cwl, withsimrun.cwl.
- The wheel
simrun-bin. Its binaries are part ofsimrunnow, andsimrun-cliandsimrun-mcp-serverare renamedsimrunandsimrun-mcp. simrun-bin 0.5.0 stays on PyPI because simrun 0.5.0 pins it. - The setting
simrun_bin_wheelof the service. The images of the environments install the one wheel named bysimrun_wheel.
Upgrading¶
- With pip, uninstall simrun-bin first:
pip uninstall simrun-bin && pip install -U simrun. The files of simrun-bin 0.5.0 sit at the same paths as the binaries of simrun 0.6.0, so uninstalling simrun-bin afterwards would delete those binaries. uv removes simrun-bin itself when it syncs the lock. - The cluster:
- Build the image of the service from the one wheel,
simrun-0.6.0-py3-none-manylinux_2_28_x86_64.whl(see Deployment). - Apply
deploy/clusterof this release. Its settings dropsimrun_bin_wheeland name the backendargo. - The Rust service has not yet run for a week on the cluster (task 6.9 of the plan). The fallback for this release is the image and
deploy/clusterof simrun 0.5.0 withSIMRUN_SERVICE=python, which reads and writes the same store, index and learned resources.
- Build the image of the service from the one wheel,
- Windows is not supported. There is no wheel for it, and a build from the sdist stops with a message; use WSL 2. sbmlsim lists simrun in its extra
simrunfor the other platforms only, from its release after 0.6.0 of simrun on. - The python of the plugins. A binary finds the python of the python plugins in this order:
SIMRUN_PYTHON, then the python beside the binary (the environment the wheel was installed into), thenpython3on thePATH. - Development.
- The goldens of the python implementation are fixtures of the Rust tests now. A change of an answer changes its fixture by hand.
frontend/src/api/openapi.jsonis the document of the API. Edit it with every change of the API, then runnpm run types.- A checkout builds the wheel with
uv sync --extra dev. WithMATURIN_PEP517_ARGS="--profile dev"it builds the debug binaries.
Release notes for simrun 0.5.0¶
The command line, the MCP server and the client are Rust now, the service of a cluster has a Rust implementation to switch to, and the local backend runs the independent tasks of a workflow side by side. The python implementation stays as the fallback of every component (the design and the plan of the migration are in docs/superpowers/ of the repository).
Features¶
- Tasks side by side on this machine. The local backend admitted every task with the cores of its plan, so the independent tasks of a workflow ran one after the other. A task's plan is now the most it can use: the waiting tasks are admitted in order with their fewest cores until one does not fit, and the free cores go one by one to the admitted task whose learned work would end last (the core seconds of its earlier runs, of the same settings first), within the memory of the machine. A process runs on the CPUs of its cores (whole fast cores first), so a pool sized by
os.process_cpu_count(), as sbmlsim's, starts as many processes as its share. The five independent tasks of the analysis of hctz-model (factory, simulate, simulate with uncertainty, report, credibility) took 83 s and now take 40 s on 20 CPUs. The CPU of a report counts every process of the task, the pool of a forkserver included. See Shares of the machine. - The Rust command line and MCP server, the defaults. The console scripts
simrunandsimrun-mcprun the binariessimrun-cliandsimrun-mcp-serverofsimrun-bin(every command and option,--jsonbyte for byte, the tables of rich,simrun edit; the ten tools of the MCP server);SIMRUN_CLI=pythonruns the python ones, andpython -m simrunis always the python command line. The client plans the tasks of the python task types installed here throughpython -m simrun.unit_serve, as the python client does. See The Rust command line. - The Rust service of a cluster, opt-in.
simrun-serve(a binary ofsimrun-bin) is the service of a cluster on the Argo backend over kube-rs: the watch of the workflows, Kueue, the reservations, the logs, the node capacity, the environments of the runs (uv lockagainst the snapshots, the Dockerfile and the name of the image) and the builds of their images with BuildKit. The image of the service runs it withSIMRUN_SERVICE=rust; the python service stays the default until the Rust one has run on the cluster. It answers 449 recorded exchanges of the python service alike, all 13 tests on k3d pass against it, and the smoke workflows of sbmlsim and pkdb_models ran green with it on k3d (tests/smoke/run.py --k3d --cluster-service rust). - Plans before a submission from the browser. The web app takes the protocol of the client from the WebAssembly core: a task whose type plans with a module of the page is planned in the browser before the Editor submits it or runs it in the browser, a plan which only runs where its type is installed refuses with the task named (it runs through
simrun edit), and a refusal of the service names its fields as the command line does. - The CWL export in Rust.
simrun-core::cwlwrites the CWL document of a run assimrun.cwldoes (its goldens); the CWL tests run cwltool with the Rust and the python harness. - The web app on a phone. Below 768 px the views are one column: the runs, or the canvas of a run with its servers and inspector under it; the Editor with its canvas, inspector and palette.
Fixes¶
- Images of locks with another index. The requirements of an image name the indexes of the lock, and an extra index is searched for every package (
--index-strategy unsafe-best-match, safe with the hashes of every requirement): sbmlsim takes libroadrunner from its own index, and the image of its runs could not be built. - Uploads of files with holes. The Rust client writes a file with holes as a regular member of an upload, and the Rust service takes a GNU sparse member, as the python one does: a data file of pkdb_models was refused.
- A build which fails by its condition. A Job of a build with the condition
FailedorFailureTargetfails the build, as one with a counted failed pod: an evicted build pod left the run insubmittingfor the hour of the build timeout. - demo.squares refuses settings it cannot run (
n >= 1, and the other settings not negative), so the Editor shows the error instead of calling the draft valid. - The k3d cluster of the tests evicts below 5 GiB of free disk instead of a percentage, which tainted every node of a machine with a large disk;
SIMRUN_K3D_CLUSTERnames the cluster. - Flaky tests: the order of runs of one second in
tests/test_rust_service.py, and the duration of the units of a live worker on a loaded runner.
Upgrading¶
- The console scripts run the Rust command line and MCP server when
simrun-binis installed (linux);SIMRUN_CLI=pythonkeeps the python ones. - The learned resources have two more columns (
core_secondsandsettingsof an observation, for the learned work), added to an existing file when a service opens it. - sbmlsim names
uncertaintyas the cost setting ofsbmlsim.simulatefrom its next release on (matthiaskoenig/sbmlsim#746), so runs of experiments with and without draws are learned apart.
Release notes for simrun 0.4.1¶
simrun installs again where simrun-bin has no wheel: its dependency on the Rust binaries is for linux only.
Fixes¶
simrun-binon linux only. simrun 0.4.0 requiredsimrun-binon every platform, which has wheels for linux alone, so an install on Windows or macOS built its source distribution and failed (the binaries need a unix; seen in the environment of sbmlsim on Windows, which installs simrun with its extrasimrun). The dependency carries the markersys_platform == 'linux'; elsewhere simrun runs its python harness and its python local service, as withSIMRUN_HARNESS=pythonandSIMRUN_LOCAL_SERVICE=python. The cluster and the local mode stay linux only.- The date of the release in
CITATION.cffis written by every bump of the version (0.4.0 named the date of an earlier release).
Release notes for simrun 0.4.0¶
The first release with Rust in it: the harness of the tasks and the local service are Rust binaries, installed with simrun as the new wheel simrun-bin; the web app validates and estimates a workflow in the browser with the core of simrun compiled to WebAssembly and runs workflows of WebAssembly units in the browser itself; and a unit of a task type has a frozen ABI, simrun.unit/1, through which a task type of any language, e.g. the WebAssembly modules of sbmlsim-core, runs in the harness. The python implementation stays as the fallback and is replaced component by component, each switch gated by its parity with the python one (the design and the plan are in docs/superpowers/ of the repository).
Features¶
- The Rust harness and the Rust local service, the defaults.
pip install simruninstallssimrun-binof the same version, a wheel of the binariessimrun-worker,simrun-merge,simrun-exec(the harness of a task, in the pods of the cluster and in the processes of the local backend),simrun-local(the local service ofsimrun serve --localand of every--localcommand) andsimrun-abi(the conformance kit of a unit module), for linux x86_64 and aarch64, manylinux_2_28 and musllinux_1_2 (static binaries). They keep the store, the ledger, the reports, the progress, the exit codes and the API of the python implementation, which the parity tests compare, and a python task type, e.g. those of sbmlsim, runs through the bridge of the Rust harness to the python one. The smoke workflows of sbmlsim and pkdb_models took 27 s and 54 s locally on the Rust ones and 47 s and 76 s on the python ones.SIMRUN_HARNESS=pythonandSIMRUN_LOCAL_SERVICE=pythonrun the python implementation instead, andharness: pythonof the cluster configuration sets it in every pod. See The Rust harness and The Rust service. - The unit ABI
simrun.unit/1. A task type is a manifest (the JSON Schema of its settings, its ports, its resource hint) with implementations, which the harness picks in the order native, wasm, serve, command, python: a WebAssembly module (a WASI preview 1 reactor with JSON messages, run in wasmtime), a process of the protocol (serve), a command, or native code. An operation may ask a service of the host and be told the answers, which the fit and scan drivers of sbmlsim-core need.simrun-abi check <module.wasm>runs a module through every operation and checks what a host relies on,crates/simrun-unit-example(demo.squares) is the template of a module, andpython -m simrun.unit_serveserves a python task type through the protocol. See Unit ABI. - The Editor on WebAssembly. The web app carries
simrun-coreas a WebAssembly module and validates every change of a draft at once, with the messages of the service, and estimates its tasks (the pods and the shape of every task, from the manifests and the learned resources of the service,GET /task-types/manifests,POST /estimate/context); the service validates again at a save and a run, and validates every change when the module does not load. The YAML of a download is written in the browser. - Runs in the browser. A workflow whose tasks have a WebAssembly implementation runs in the page: web workers with one instance of the module each, a host of WASI of its own, the ledger and the merge in the page, the runs in the storage of the browser (OPFS) with the files of the local service, resumed when the page comes back. The Executions list the runs of the browser with those of the service (stop, download, upload, remove, resume), and the Run of the Editor offers this browser, this machine or the cluster (
GET /backends) and says which tasks cannot run in the browser and why.POST /runs/importtakes a run computed elsewhere into the store, checked member by member;GET /task-types/{name}/modules/{file}serves the module of awasmimplementation. - Images with the Rust harness. The images of the environments install the wheel of simrun and the wheel of its binaries (
simrun_bin_wheel, a new setting of the service next tosimrun_wheel), copied from the image of the service (harness_image, a new setting), so the build context is the Dockerfile alone; the tests on the k3d cluster check that the pods run the Rust harness, and the python one withharness: python.
Fixes¶
- A source which is no working tree of a git repository, e.g. an unpacked archive of a release, or a repository without a commit is refused with what it lacks instead of the raw error of git.
- A client which waited for the end of a run finds it in the lists of its state at once: a read of the service waits for the index row of a record being written.
workflow_yamlno longer depends on whether hera was imported,/estimateand the planner no longer fail on a task without units or with negative units, and the memory of a node may be a fraction of a GiB.
Upgrading¶
- The commands
simrun-worker,simrun-mergeandsimrun-execare the Rust binaries of simrun-bin; simrun has no console scripts of these names any more. Without simrun-bin (an environment synced with--no-install-package simrun-bin) the python harness and the python local service run. - A service which builds the images of the environments needs
simrun_bin_wheelandharness_imagein its settings (deploy/cluster/simrun.yamlhas both): rebuild the image of the service fromdeploy/service/Dockerfilewith the wheel of simrun-bin of the platform of the nodes (--build-arg BIN_WHEEL=...) and applydeploy/cluster, see The service image. Every model builds its image once more on its first run, since the image carries the new harness. - The service serves the web app at
/ui/cross-origin isolated (Cross-Origin-Opener-PolicyandCross-Origin-Embedder-Policy), so a unit in the browser sleeps without waiting busily; a proxy in front of the service keeps these headers. - A checkout builds simrun-bin from
crates/simrun-binatuv sync, with maturin and the Rust toolchain ofrust-toolchain.toml;uv sync --no-install-package simrun-binleaves it out.
Release notes for simrun 0.3.2¶
A release for the tests: the package is the same as 0.3.1.
Fixes¶
- The k3d tests try the download of their tools (k3d, kubectl) again after a server error or a network error, up to five times with a growing pause, instead of failing at once: a gateway timeout of GitHub failed the cluster job of the release 0.3.1. An error of the client, e.g. a missing file, still fails at once.
Upgrading¶
- Nothing to do.
Release notes for simrun 0.3.1¶
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.
Features¶
- Smoke workflows.
tests/smoke/run.pyruns 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. - 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.
- 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.
- 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.
Fixes¶
- 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.
- 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.
- 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.
Upgrading¶
- Apply
deploy/clusteragain: BuildKit gets the volumebuildkitd-state(local-path, 50 GiB) and a rolling update of one pod at a time. - Every model builds its image once more on its first run, as the Dockerfile changed.
Release notes for simrun 0.3.0¶
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.
Features¶
- The split sized by the work. A task of the split mode
fastestgets 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 leastpod_start_sof work (new inClusterConfig, 10 s). A pod which started after the others had taken the units only held cores.demo.squareslearns persleep_s. See Split modes. - A watch of the workflows. The service watches the workflows of the runs and reconciles a run as soon as Argo changes it;
poll_sis the fallback. The event streams of the web app check the store everyevents_poll_s(new, 0.5 s) instead of everypoll_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. - System packages in the images. The images of the environments install the Debian packages of
ClusterConfig.system_packageson the base image, by defaultlibexpat1, 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. - Projects at the root of a checkout. A task imports from the root of the model first, as
python -min its checkout: the projects at the root of a checkout which no package installs, e.g. theexamplesof sbmlsim, run through simrun, and the client plans with the same path (SourceProvenance.path, new). - 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 placeholdernull. The logs of a task in the inspector can wrap their lines at its width (wrap lines). - 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.
Fixes¶
- An unsplit task of a plugin type, e.g.
sbmlsim.simulateorsbmlsim.report, failed on the local backend withneeds 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). - 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. - 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.
- The manifest, the Dockerfile and the deployment documentation of the service named simrun 0.1.0;
bump-my-versionnow updates them with the version.
Upgrading¶
- Apply
deploy/clusteragain: the controller of Argo getsDEFAULT_REQUEUE_TIME=1s. The Role of the service grantswatchon workflows already. - 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.
events_poll_s,pod_start_sandsystem_packagesare optional settings with defaults.
Release notes for simrun 0.2.0¶
Workflows without a cluster: --local runs a workflow on this machine through a local simrun service, with the same planner, harness, records and web app as on the cluster, at the speed of running the code directly. The cluster gets faster split tasks and a client which needs no mount of the store.
Features¶
- The local mode.
simrun submit fit.yaml --source model=. --localruns on this machine, the same command without--localon the cluster. A local backend runs the tasks of a run as processes (a split task on the cores of the machine, several runs sharing them, acommandwith its args directly or in its image with--docker), and the service of a project lives in.simrun/next to the workflow: started on demand by any--localcommand, on127.0.0.1only, stopped after 30 idle minutes or withsimrun serve --local --stop, and restarted when the python environment, the simrun version or the task types change. Sources are recorded (branch, commit, uncommitted files) without copying;--snapshotinstalls them into an environment of the run instead. A run of three tasks takes 4.8 s for 4.6 s of work. See Local mode. - The web app locally. The service of a project serves the web app at
/ui/, Executions and Editor (simrun edit --local); the wheel ships the built app. submit --waitandsimrun outputs.submit --waitfollows a run with a live table per task and exits likewait, the default with--local;simrun outputs RUN TASK [--to DIR]lists or downloads the outputs of a task through the API.- Snapshots through the API. Without
SIMRUN_STOREthe client uploads the files of a working tree to the service, only those the store lacks, so a laptop on the VPN needs a URL and a token only. The snapshots and their hashes are those of 0.1.0. - The coordinator merges. A split task has no merge pod any more: its coordinator merges once its ledger is complete and checks the ledger every 0.5 s instead of 5 s, which saves several seconds per split task; a coordinator which succeeded without merging (an image with the harness of 0.1.0) fails its task after a grace of two minutes.
- The web app. Why a task failed (the exit of its last pod, also in the message of the run), the phase instead of a dash (
starting,merging), a worker whose unit or command failed shown as failed, one short name per server, the lines of the Argo executor hidden unless asked for and errors in red; in the Editor the planned memory per worker, a+handle to add an input of acommand, the inputs of acommandin its inspector, older closed sessions behind Show older. The documentation shows the views.
Fixes¶
- A run with the simrun repository as a source failed in every pod: the harness now restarts after installing the sources.
- A failure which is not a stop is no longer retried a hundred times: only a pod which was stopped (no exit code, 137, 143) is retried, and the message of the run names the failed pod and its exit.
- The
argsof acommandget{input},{out}and{settings}as a plugin command does; acommandcannot stage its inputs. - The image of an environment is named also by the hash of the simrun wheel, so a new wheel of the same version builds a new image.
- Argo requeues a workflow after 2 s instead of 10 s, so a run shows running soon after its pods start.
Upgrading¶
- Add
lookupcache=positiveto themountOptionsof the existing PersistentVolume of the store and restart the pods (deploy/cluster/store.yamlhas it for new installs; see Cluster deployment). - Runs recorded by 0.2.0 carry
coordinator_mergesandmerge_pending, which a service of 0.1.0 cannot read: the service cannot be rolled back to 0.1.0 once it recorded runs. - Runs of 0.1.0 still in flight keep their merge pod.
Release notes for simrun 0.1.0¶
The first release of simrun, a runner of simulation workflows on a small k3s cluster with Argo Workflows and Kueue, for people and agents (sbmlsim#440).
Features¶
- Workflows of tasks with ports. A workflow is a YAML file of tasks of task types from plugins, whose inputs read the output ports (
out/<port>) of other tasks; the settings of a task are validated with the settings model of its type, so a misspelled setting is an error. The built-in typecommandruns a command in an image of its own. - Split tasks on a ledger. A task type with
count_units,compute_unitandmergeis split into units, which the workers of its pods claim from a ledger of atomic renames in the run store. A coordinator returns once the ledger is complete and computes the units of dead workers, extra workers spread over the idle servers (fastest, at most eight pods) or the task stays on one server (single-server), and the merge runs once every unit is done; the result does not depend on the number of pods. - Priorities, preemption and take-back. The runs of the owner of the cluster and the owner's agents, of the other people and of their agents have three priorities, each a base and a lower extra priority of Kueue, so a run of a higher priority preempts the runs of lower ones and a new run takes back the extra workers of the running runs of its own priority. A node can be reserved for one run.
- Learned resources. The memory of a pod is learned from the anonymous memory of the cgroups of earlier runs of its task type, model and cost setting; a pod killed for memory is retried once with 1.5 times the memory per process, and
estimatepredicts the duration of a split task from the seconds of its units. - Snapshots and environments. The client snapshots the working trees of the model and its libraries, uncommitted changes included, into the run store with their provenance; the service locks their third party dependencies with uv, builds the image of the environment with BuildKit only when the registry does not have it, and the pods install the read-only snapshots editable at their start.
- Plans and provenance of tasks. A task type can plan its settings before a run is submitted (
plan, called by the client where the type is installed, also forestimateandvalidate); every task gets the provenance of the sources of its run (provenance.json,SIMRUN_PROVENANCE), and acommandreads its inputs through{input}, a staged input from a local copy on the scratch of the node. - The service, the command line and the MCP server. A FastAPI service with bearer tokens of people and agents submits a run in the background and returns its id at once, follows the workflows with a stateless controller, keeps the logs of the pods and an index of the runs in SQLite beside the store; the command line
simrunand the MCP serversimrun-mcpof the agents submit, wait for, list, compare, cancel and clean up runs. - Cluster deployment.
deploy/clusteris the cluster as a kustomization (Kueue v0.20.5, Argo Workflows v4.1.6, the run store on NFS, Zot, BuildKit and the service),deploy/k3dthe overlay of the integration tests on k3d, which verify the design on a real cluster. The same run exports as a CWL workflow for cwltool (the extracwl). - The web app. The service serves a web app (Vue 3, Vue Flow, Tailwind) at
/ui/, live by server-sent events. Executions: the runs of people and agents with filters and groups and their progress, the capacity of the cluster, a strip of the servers with the cores and memory of every run, the canvas of a run with the state, units and workers of every task, and an inspector with the workers, outputs and live logs. Editor:simrun edit <workflow.yaml>on the machine with the code opens the workflow in the browser, which may run on another machine; a palette of the task types of the service, a canvas to add and connect tasks, the settings as a form of their JSON Schema, the resources with the estimate; Save writes the file next to the code, Run snapshots the working trees again; a file changed on disk is a conflict, not an overwrite; Rerun with changes opens a run in the Editor. - A local test system.
tests/cluster/local.py upkeeps the k3d cluster of the integration tests as a local system with the service on the host, for the command line, the MCP server and the web app (examples/squares.yaml).