Skip to content

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, fake or browser), 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 of POST /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_commands and backend have no defaults any more, the path of a source and the flag closed of 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 (TaskPlan of the API and of simrun-core), and with it the merge pod <task>-merge of 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_seconds and settings to a table of an earlier release.
  • The setting backend takes argo, local or fake only. 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/cluster of 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/ is goldens/, the golden tests are tests/goldens.rs and crates/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, local or fake instead.

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: local or argo for a run of the service, browser for 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 /runs and 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

  • --version of every binary. simrun --version printed the usage of the command line instead of the version, and simrun-mcp, simrun-serve, simrun-local, simrun-worker, simrun-merge and simrun-exec had no --version either. Each binary of the wheel now answers --version with 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 simrun installs the following, and the python package's only dependency is pydantic:
    • the command line simrun and the MCP server simrun-mcp;
    • the service of a cluster simrun-serve and the local service simrun-local;
    • the harness of the pods simrun-worker, simrun-merge and simrun-exec;
    • the conformance kit of a unit module simrun-abi;
    • the web app (<prefix>/share/simrun/web) and the python package of the plugins.

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=python and SIMRUN_CLI=python;
    • harness: python of the cluster configuration and SIMRUN_SERVICE=python of the image;
    • python -m simrun;
    • the extra cwl, with simrun.cwl.
  • The wheel simrun-bin. Its binaries are part of simrun now, and simrun-cli and simrun-mcp-server are renamed simrun and simrun-mcp. simrun-bin 0.5.0 stays on PyPI because simrun 0.5.0 pins it.
  • The setting simrun_bin_wheel of the service. The images of the environments install the one wheel named by simrun_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/cluster of this release. Its settings drop simrun_bin_wheel and name the backend argo.
    • 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/cluster of simrun 0.5.0 with SIMRUN_SERVICE=python, which reads and writes the same store, index and learned resources.
  • 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 simrun for 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), then python3 on the PATH.
  • 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.json is the document of the API. Edit it with every change of the API, then run npm run types.
    • A checkout builds the wheel with uv sync --extra dev. With MATURIN_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 simrun and simrun-mcp run the binaries simrun-cli and simrun-mcp-server of simrun-bin (every command and option, --json byte for byte, the tables of rich, simrun edit; the ten tools of the MCP server); SIMRUN_CLI=python runs the python ones, and python -m simrun is always the python command line. The client plans the tasks of the python task types installed here through python -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 of simrun-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 lock against 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 with SIMRUN_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::cwl writes the CWL document of a run as simrun.cwl does (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 Failed or FailureTarget fails the build, as one with a counted failed pod: an evicted build pod left the run in submitting for 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_CLUSTER names 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-bin is installed (linux); SIMRUN_CLI=python keeps the python ones.
  • The learned resources have two more columns (core_seconds and settings of an observation, for the learned work), added to an existing file when a service opens it.
  • sbmlsim names uncertainty as the cost setting of sbmlsim.simulate from 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-bin on linux only. simrun 0.4.0 required simrun-bin on 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 extra simrun). The dependency carries the marker sys_platform == 'linux'; elsewhere simrun runs its python harness and its python local service, as with SIMRUN_HARNESS=python and SIMRUN_LOCAL_SERVICE=python. The cluster and the local mode stay linux only.
  • The date of the release in CITATION.cff is 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 simrun installs simrun-bin of the same version, a wheel of the binaries simrun-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 of simrun serve --local and of every --local command) and simrun-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=python and SIMRUN_LOCAL_SERVICE=python run the python implementation instead, and harness: python of 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, and python -m simrun.unit_serve serves a python task type through the protocol. See Unit ABI.
  • The Editor on WebAssembly. The web app carries simrun-core as 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/import takes a run computed elsewhere into the store, checked member by member; GET /task-types/{name}/modules/{file} serves the module of a wasm implementation.
  • 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 to simrun_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 with harness: 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_yaml no longer depends on whether hera was imported, /estimate and 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-merge and simrun-exec are 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_wheel and harness_image in its settings (deploy/cluster/simrun.yaml has both): rebuild the image of the service from deploy/service/Dockerfile with the wheel of simrun-bin of the platform of the nodes (--build-arg BIN_WHEEL=...) and apply deploy/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-Policy and Cross-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-bin at uv sync, with maturin and the Rust toolchain of rust-toolchain.toml; uv sync --no-install-package simrun-bin leaves 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.py runs the analyses of sbmlsim (simulate, fit, identifiability, fisher, report, petab, scan, sensitivity, uncertainty) and the simulations, a fit and the build of the models of pkdb_models through simrun, from the checkouts of both, locally (--local) or on the local test system (--k3d). After every run it prints the timeline of its tasks (tests/smoke/timeline.py): the wait for the dependencies, the pod, its admission and its start, the preparation, the work, the merge, the cpu and the CPU throttling of every task, and the seconds of the environment and the image. On the same machine sbmlsim takes 78 s on k3d and 60 s locally, pkdb_models about 250 s both. See Smoke workflows.
  • 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/cluster again: BuildKit gets the volume buildkitd-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 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.
  • 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.
  • 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.
  • 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).
  • 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).
  • 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.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).
  • 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-version now updates them with the version.

Upgrading

  • Apply deploy/cluster again: the controller of Argo gets DEFAULT_REQUEUE_TIME=1s. The Role of the service grants watch on 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_s and system_packages are 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=. --local runs on this machine, the same command without --local on 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, a command with 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 --local command, on 127.0.0.1 only, stopped after 30 idle minutes or with simrun 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; --snapshot installs 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 --wait and simrun outputs. submit --wait follows a run with a live table per task and exits like wait, 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_STORE the 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 a command, the inputs of a command in 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 args of a command get {input}, {out} and {settings} as a plugin command does; a command cannot 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=positive to the mountOptions of the existing PersistentVolume of the store and restart the pods (deploy/cluster/store.yaml has it for new installs; see Cluster deployment).
  • Runs recorded by 0.2.0 carry coordinator_merges and merge_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 type command runs a command in an image of its own.
  • Split tasks on a ledger. A task type with count_units, compute_unit and merge is 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 estimate predicts 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 for estimate and validate); every task gets the provenance of the sources of its run (provenance.json, SIMRUN_PROVENANCE), and a command reads 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 simrun and the MCP server simrun-mcp of the agents submit, wait for, list, compare, cancel and clean up runs.
  • Cluster deployment. deploy/cluster is 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/k3d the 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 extra cwl).
  • 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 up keeps 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).