Steps and execution
A job is a list of steps, and a step is the unit that is run and cached. This page gives what a step declares, the rules steps keep, and how the executor runs them. How a step runs walks through one step from the user’s side.
What a step declares
A flow builds each step from an invocation and what the flow itself knows:
| Field | Meaning |
|---|---|
name, dir | Its name, unique in the job, and its own directory, emptied each time the step runs |
action | One invocation, an in-process function given the step’s directory, or child steps, which make the step a cache unit or a composite step |
reads | The artefacts of other steps that it reads. Each makes the step run after the step that wrote it |
deps | The steps that must pass first: every step it reads an artefact of, and any it is told to run after without reading |
inputs | Named files or directories in the repo. Their content is keyed |
params | For an in-process step: the values its function captured that change its result, keyed as text |
prechecks | Conditions checked before any step of the run starts |
services | Each has a name, an invocation, named ports, a readiness check, a start-up timeout, a stop rule, a stop timeout, and inputs and outputs of its own |
outputs | Named files or directories. Each must exist when the step completes, and is what the cache stores. One marked debug is kept and cached only in a run with --debug |
timeout | Wall-clock limit for the command |
complete_on | The accepted exit codes, or any |
pass_patterns | Regular expressions that must each match in a named output, or the step did not complete |
fail_patterns | Regular expressions of which any match in a named output fails the step |
fail_on_exit | A message that fails the step if its command exits with a code other than 0, with {code} in it replaced by the code |
judge | A function given the exit code, the step’s directory and its parsed results, returning passed or failed |
parse | A function run in-process once the step completed, which reads what it wrote into results, written to one of its outputs as JSON |
run_after_fail | Run even when a step it depends on failed |
volatile | Never cached. No flow sets it |
resources | What it holds from each resource pool while it runs: threads, memory, disk, licences. The sum of what its command and services declare and what the flow’s config gives the step |
Everything except a name and an action is optional.
Rules steps keep
- One command per step, so each is cached by itself. A step that needs a pipeline says so:
Invocation::shellruns a script withbash -c. Every other command is an argument list, and no flow uses a shell. - A step writes only inside its own directory. A tool that builds next to its sources is given a copy of them, staged into the step’s directory.
- Files a step writes for other steps use relative paths. Step directories are siblings, so the same relative path reads the same from any of them, and in any checkout.
- A dependency is named once, by reading an artefact. A step that names a path in another step’s directory without running after that step is an error when the job is planned.
- Only declared outputs are kept. A step that passed has its outputs in its directory and nothing else, and so has a step taken from the cache. A later step, and the result file, may rely only on those.
- Steps don’t use the network. Sources already in the repo are built as ordinary steps.
Artefacts and dependencies
An artefact is a declared output of a step, as another step refers to it: the step’s name, the output’s name and its path. Step::artefact(name) gives one, and Step::reads(&artefact) makes the reading step depend on the step that wrote it. So a flow names a dependency once, and takes the path it puts in a command from the artefact it reads:
#![allow(unused)]
fn main() {
let filelist = source_steps.flatten.artefact("filelist");
let lint = linter.lint(&LintRequest {
dir: lint_dir.clone(),
filelist: filelist.path.clone(),
flag_file,
top,
})?;
let lint_step = Step::exec("lint", lint_dir, lint.invocation).reads(&filelist);
}
Step::after orders a step after another without reading anything of it. No flow needs it.
Two checks are made when a job is planned, by exec::validate:
- What a step reads is a declared output. Reading an artefact that no step declares is an error:
step `b` reads `a.out`, which is no output of a step. - A path into another step’s directory needs the dependency. A step whose command, arguments, environment or working directory names a path in the directory of a step it does not run after, directly or through other steps, is an error:
step `b` names `...`, in the directory of step `a`, which it does not run after: read the artefact, so that it does. Without the dependency the step could start before what it reads is written, and its cache key would not hold what it read. The check covers a step’s services and the children of a cache unit too.
An in-process function is not checked this way, because the paths it uses are inside the function. It still declares what it reads.
Completion and verdict
A step is judged in two stages, and they are never mixed:
- Completion decides whether the tool ran to the end: no service died, the command was not killed, the exit code is one the step accepts, every declared output exists, and every pass pattern matches. Failing any of these is a step error.
- Verdict decides pass or fail, and only for a step that completed. A step fails if its judge says so, if a fail pattern matches, or if it exited with a code other than 0 and has a
fail_on_exitmessage. Otherwise it has passed.
So a crashed tool, a timeout or a missing licence is never reported as a failure of the design, and never cached. A linter that exits non-zero because it found something still completes: its step accepts that exit code, and the judge decides from the parsed messages.
A pattern is a regular expression looked for in one output. It names the output by its name, or the command’s stdout or stderr. The syntax is that of Rust’s regex crate, matched in multi-line mode, so ^ and $ are the ends of a line. Pattern::text takes literal text and escapes it, and Pattern::regex takes an expression.
| Rule | Decides | Message |
|---|---|---|
pass_patterns | Completion. Each must match, or the tool did not finish normally: a step error | The exit code, the pattern and the file it was looked for in |
fail_patterns | The verdict. A match of any one fails the step | The pattern, the first line that matches and its file |
fail_on_exit | The verdict. An exit code other than 0 fails the step | Its own, with {code} replaced by the exit code |
judge | The verdict. It is given the exit code, the step’s directory and its parsed results, and can also return a step error | The function’s own |
- Of several rules, a step error wins, then a failure. A missing output or pass pattern is a step error before the judge is asked. A judge’s step error or failure comes before a fail pattern’s.
- Patterns are checked when the job is planned. One that does not compile, or names something that is not an output of the step,
stdoutorstderr, is an error before anything runs. - Patterns and the
fail_on_exitmessage are part of the cache key. A judge and a parse function can’t be hashed: a plugin’s are covered by its hash, and doris’s handling around them by the key protocol. A judge is keyed by its presence, and a parse function by the output it writes to; what either captured that changes the verdict goes in the step’sparams.
A step with a parse function has its results parsed once. When the step completes, before the outputs are checked, the function is run in-process in the step’s directory, and what it returns is written as JSON to the output it names (Step::parsed(name, path, function)). The judge is given the same value. The results are an output like any other, so they are in the cache, and a step taken from the cache has them: a flow reads them for its result file instead of parsing logs again. A parse function that fails is a step error.
A judge is preferred to patterns, because it works on parsed results and not on log text, so it can weigh what a tool reported, such as waived messages or expected failures. Lint’s step has a parse function that reads the linter’s logs into messages.json, with each file named from the job’s directory, and its judge decides from those messages; the result file is written from them too. TestRIG’s run step has no judge: QCVEngine exits with the number of failing tests, so a fail_on_exit message fails it on a non-zero exit code, and a pass pattern tells a finished run from a crash. No flow has a fail pattern yet. Outcomes lists the five outcomes a step can have.
A step after one that did not pass is skipped, unless it sets run_after_fail. Such a step also runs when a step it depends on failed, as a report on a failing run does. A failed step completed, so its outputs are there and are in the cache. The step is still skipped after a step error, a setup error or a skip. TestRIG’s coverage step sets it.
Prechecks
A precheck is a condition a step needs of the machine. The prechecks of every selected step of every job are run before any step starts, so a run that can’t succeed fails in seconds, not after its upstream steps.
| Precheck | Holds when | Declared by |
|---|---|---|
Program(name) | The program is on PATH, or in the directory settings give the invocation’s tool | Nothing: every program a step runs by name is checked |
Version { tool, at_least } | The tool’s probe reports that version or a later one | No flow yet |
Env(name) | The environment variable is set, and not empty | A Verilator build with dut.uvm: UVM_HOME |
File(path) | The file or directory exists | TestRIG’s run in replay mode: the trace directory |
Command(argv) | The command exits with code 0 | Enforcement: systemctl --user |
- A program is checked without being declared. Every program an invocation runs by name, and every program it lists in
needs, is aProgramprecheck. A program given as a path is usually built by an earlier step, so it is only checked when it is started. - A precheck is declared where the need is known: on a step, on its command’s invocation, or on a service’s invocation. A plugin declares what its tool’s commands need, and a flow what its step needs. The children of a cache unit are checked like any step.
Versioncompares the first dotted number in the probe’s output with the one asked for, number by number:5.030is 5, then 30. The tool must be one the step’s invocations declare.- Prechecks are not keyed. They decide whether a step can run, not what it makes.
doris check runs only the prechecks, and lists each with how it is met or why it is not (see Checking the environment). Both read the settings, so they check with the same pool sizes and tool directories. doris run exits 2 if any fails, and doris check exits 1.
Services
Some steps need programs running beside the command, such as the simulator and the reference model in TestRIG’s run step. A service is an invocation with one or more named ports. The executor allocates a free port for each port of each service, all different, starts them, waits until each is ready, runs the command, and stops them by each one’s stop rule. Port numbers are filled in when the step starts and are not part of the cache key.
| Field | Meaning | Default |
|---|---|---|
ports | The names of its ports, which its invocation and the step’s command refer to with Arg::port. The first is its own | The one it was made with |
ready | What shows it is ready: its first port is listening, a file it writes exists, or a line of its log matches a regular expression | Its port is listening |
inputs | Files from the repo it reads. Keyed like the step’s inputs, as SERVICE.NAME | None |
outputs | What it writes that is kept, such as a log, a coverage database or waves. Each is an output of the step, SERVICE.NAME | None |
ready_timeout | How long it has to become ready. Not being ready in time is a setup error | 60 seconds |
stop | Send SIGTERM as soon as the command ends, or wait a given time for it to exit by itself | SIGTERM |
stop_timeout | How long it has to exit after SIGTERM before it is killed. Having to kill it is a step error | 10 seconds |
Service::new(name, port, invocation) gives the defaults, and .port, .input and .output add to them. A service’s invocation carries prechecks and resources like a command’s: TestRIG’s dut service holds an Xcelium licence. Both TestRIG services are ready by their ports. The file and log checks, and waiting for a service to exit by itself, have no flow that uses them.
A service’s stdout and stderr go to one file, <service>.log in the step’s directory, which a pattern names as SERVICE.log.
A service’s outputs are checked once it has stopped. Step::service makes each an output of the step named SERVICE.NAME, so it is checked, cached and read by other steps like any output, and is checked with the step’s own outputs, after every service has been stopped: a simulator that writes its coverage when it is stopped has written it by then. TestRIG’s dut service declares the simulator’s log, coverage database and waves, as dut.log, dut.coverage and dut.waves, and the coverage step reads dut.coverage. No flow gives a service more than one port or an input yet.
Working directories and clean-up
When a step ends, what is left of its working directory depends on how it ended:
| The step | Its directory |
|---|---|
| Passed | Is deleted, except its outputs that are not debug outputs |
| Failed | Is kept whole if dirs.keep_failed is true, which is the default. Otherwise it is cleaned like a pass |
| Did not complete: a step error, a setup error or an interrupt | Is kept whole |
Passed or failed in a run with --debug | Is kept whole |
- A passed step leaves only what other steps and the result may read. The command’s
stdout.logandstderr.log, a service’s log and every scratch file go, unless the step declares them as outputs. Lint declares the linter’s logs, and TestRIG’srunthe engine’s and the simulator’s. - A debug output is for looking into the step, such as a simulator’s raw build log.
Step::debug_outputdeclares one. It must exist like any output, but it is deleted with the rest when the step passes, and is not stored in the cache. TestRIG’s Xceliumbuilddeclaresbuild.logas one. - A run with
--debugkeeps everything, and stores each step’s debug outputs in its cache entry. An entry records whether a debug run stored it, and a debug run does not take a step from an entry that one did not: the step runs again. Debug outputs are not part of any downstream key, so a debug run and a plain run agree on every key. - A directory kept whole has a marker file,
.doris-kept, holdingfailed,interruptedordebug.doris cleanfinds kept directories by it. So doesdoris run, which at its start removes those older thandirs.work_max_age, 14 days by default. - A step taken from the cache is not cleaned. If its outputs are already there with the stored content, its directory is left as it is, kept files and marker included. If none is, the directory is emptied and the outputs are put back.
The clean module does this. Working directories has the user’s side.
Cache units
A cache unit is a step with child steps and no command of its own (Step::unit). It is for a large step: one that is worth resuming part-way when it is interrupted, such as a synthesis run with several long stages, or a tool whose raw output is unfit for caching, such as a log with timestamps and paths in it, or gigabytes of which only a summary matters. The tool runs in one child, another child reduces what it wrote, and the unit stores only what it exports.
A unit is never needed: a step that is quick to run again, and whose outputs are fit to cache, stays a leaf, without the unit’s journal and extra bookkeeping. Lint is one: the linter runs in seconds, and its messages are parsed by a parse function on the step.
No flow has a cache unit yet. They are for the planned synthesis flow, and are exercised by unit tests only.
- A unit is one step to everything outside it. The scheduler sees one node, and
--untilnames the unit, not a child. A result file records the unit as one step, with an entry under it,children, for each child that ran or was resumed: its name, outcome, message and time. - It is cached as a whole. Its key is made from its own inputs, its upstream steps’ outputs, and the definition of each child with the children that child runs after. A change to any child is a new key. What children hand each other is not hashed, because it is made from what is.
- Only exports are stored.
Step::export(&artefact)makes a child’s artefact an output of the unit, namedCHILD.OUTPUT, which other steps read. Everything else a child writes is scratch, deleted when the unit’s directory is cleaned as any step’s is. - A child works in a directory of its own, or in the unit’s. One in a directory of its own, inside the unit’s, has it emptied before it runs, as any step has. One whose directory is the unit’s own shares it with the siblings that do the same: it is not emptied, so a child reads what an earlier one left there by the same relative path, and a tool that expects its working files beside it finds them. The unit’s directory is emptied once, when a run of the unit starts from nothing. A child that shares it has its command’s logs named after it,
CHILD.stdout.logandCHILD.stderr.log, so siblings’ logs are not mixed. A child that runs again on a resume starts with what its interrupted attempt left there. - Children run side by side. A child starts once the children it depends on are done, beside any others that fit in what the unit holds. The unit holds, for its whole run, enough of each pool for the children at one depth to run at once: those that depend on no sibling, then those that depend only on them, and so on, the most over the depths. It holds no more of a pool than the pool has, threads no more than one step can have, and no less than the hungriest child needs. With less room the children take turns; the first that is ready always starts.
- A child only completes or not. It may have accepted exit codes, pass patterns and outputs that must exist, but no judge and no fail patterns. A child that does not complete ends the unit as a step error,
child `NAME`: ..., and one that could not start as a setup error with the same prefix. No other child starts after it, and the unit ends when those running beside it have ended. So a tool that finds errors still completes, and the child after it still writes the summary. - The unit has the verdict, from what it exports: its pass and fail patterns name exports, and its judge is given the exit code of the last child, in the order they were declared, that ran a command.
- A unit can be a child of a unit. It is cached only as part of the outer unit, keeps no journal of its own, and only completes or not, like any child. Its children are reported as
INNER/NAME.
These are checked when a job is planned: a unit has at least one child and no services of its own, each child’s directory is the unit’s or inside it, a child that is a unit has a directory of its own, and a child is not volatile, has no run_after_fail and has no verdict of its own.
A unit that did not complete is resumed. While a unit with a cache key runs, a journal in its directory, .doris-journal.json, records each child that completed, under the unit’s key. If the unit ends in a step error or is interrupted, its directory is kept whole, journal included. The next run of a unit with the same key does not run a child the journal records, as long as that child’s outputs are still there and no child it depends on has just run again. A unit with another key starts from nothing. The journal is deleted when the unit completes, and never enters the cache.
Composite steps
A composite step is a step with child steps and no command of its own (Step::group), whose children are cached each by itself. It groups steps under one name, as a cache unit does, without making them one piece of work: a change to one child runs that child and what reads it, and not its siblings.
A job’s composite steps are flattened when it is planned (group::flatten), so the scheduler, the cache and the result file only see leaves:
- Each child is a step named
PARENT/CHILD, and the child of a composite in a compositePARENT/CHILD/GRANDCHILD. A/in any other step’s name is an error. - A child runs after what its parent runs after, reads what it reads and has its prechecks, as well as its own. Children name each other by their own names, as siblings.
- A parent exports what its children write.
Step::exporton a composite step adds an outputCHILD.OUTPUT, as on a unit. A step that reads it reads the output of the child that writes it, and runs after that child only. A step that runsafterthe composite step runs after all of its children. --untiltakes either name.PARENT/CHILDkeeps that child and what it needs, andPARENTkeeps all of its children.- A composite step has no verdict, command, services, inputs, resources or timeout of its own, and no outputs but its exports. Each child’s directory is inside its own. These are checked when the job is planned. A composite step can be a child of a cache unit, and is then flattened inside the unit.
A job is a list of steps, the same thing as a composite step at the top: the flattening is what makes a job’s steps the scheduler’s nodes. A step with several commands, each cached by itself, is written as a composite step with a child per command. No flow has a composite step yet.
How steps are run
One module, exec, both schedules and runs. There is no separate scheduler or executor interface.
- Before anything starts, every precheck of the selected steps is run, and every step is checked against the sizes of the resource pools: one that needs more of a pool than the pool has could never start.
doris checkmakes both checks. - The jobs of a run are scheduled as one graph, in the order planned, so steps of different jobs run together. A job’s result file is written when its last step ends, while other jobs are still running.
- Steps with no dependency between them run in parallel, up to
-jat once over every job. Each running step has an operating-system thread, which polls its command and services ten times a second for an exit, a timeout or an interrupt. - A step is looked up, then run. Its thread works out the cache key and restores the step from the cache if it is there. A step that has to run goes back to the scheduler, which starts it once nothing holds it back.
- A step that runs holds what it declares from the resource pools, from when it starts until it ends: at least one CPU thread, and whatever memory, disk space and licences it declares. While a pool has too little left, the step waits. Steps after it that need nothing from that pool go ahead; steps that do need it wait behind it. A pool with no size is not limited. A step taken from the cache holds nothing.
- Three pools have a size from the machine:
threadsis its CPU threads,memoryits memory, anddiskthe space free in the scratch directory, read whenever a step asks. A commercial tool’s licence pool is as large as the machine’s CPU threads, and no larger than 16. Any other pool is not limited until it is given a size. - A tool is told how many threads it has. An invocation that takes every thread has an argument that stands for the count, filled in when the step starts, like a port. The count is not keyed.
- A step two jobs share runs once. Two steps with the same cache key, such as the reference model in each of a design’s TestRIG jobs, are not run together. The second waits for the first, and is then taken from the cache.
- Every step is measured: when it started and ended, how long it was held back and by what, and the CPU time and peak memory of its processes. The kernel reports those when doris waits for each process (
wait4), so they cover what the process started and waited for itself. Where it can be, each step is also measured in a cgroup of its own, with no limits unless enforcement sets them: a thread theenforcemodule starts with the cgroup readsmemory.currentandcpu.stateach second, and the working directory’s size as often as is cheap, and when the step endsmemory.peakand the total CPU time. That gives the peak memory of all the step’s processes together, how many CPUs it kept busy, and its peak disk. A step with services has a cgroup below its own for each part, its command and each service, read the same way, so each part is measured on its own. See Metrics. - Each command and service is its own process group, so an interrupt or timeout stops everything it started: SIGTERM, then SIGKILL after 10 seconds.
- A step after one that did not pass is skipped, unless it runs after a failure.
- A step’s directory is cleaned when the step ends, by how it ended.
- Commands get the whole host environment, as they would if run by hand. EDA tools depend on too many variables to list. What is restricted is the cache key, not the environment. The one change is
PATH: an invocation whose tool settings give a directory, withtools.NAME.path, has it in front ofPATH, and no other invocation does. - Resources are reserved, and enforced if the settings say so. By default nothing stops a step that uses more memory or threads than it holds. With
resources.enforcetheenforcemodule gives each step that starts a process a cgroup of its own, with its memory limit set to the memory it holds and its CPU quota to its threads. For a step with services those are the sum of its parts’, and the parts’ cgroups below it have no limits of their own. Withsystemdit is a transient slice, and each process is started in a scope in it withsystemd-run --user --scope. Withcgroupit is a directory doris makes in a delegated cgroup v2 hierarchy, and each process writes itself into the directory’scgroup.procsbetweenforkandexec. A step the kernel kills for its memory is a step error that says so. So is one that writes more to its working directory than the disk it holds, which doris measures while the step runs and when it ends. Withresources.pinthe scheduler also hands out CPUs: a step is given as many of the free ones as it holds threads, and its processes are started with their affinity set to them. See Enforcing what a step holds.
doris is Linux only: a port is listening when it is in the LISTEN state in /proc/net/tcp, process groups are used directly, and the cache and each job’s directory are locked with flock.
Runs at the same time
Two doris run processes in one checkout share three things: the jobs’ working directories in the scratch directory, the files each flow’s reports are made from and into, and the cache. Each is made safe in its own way. Runs at the same time has the user’s side.
Why a job’s directory has one run at a time
A job’s directory is the job’s workspace for the whole run, not only while a step runs. A step that passed leaves its outputs there, and later steps of the job read them by relative paths such as ../filelist/work/src/.... A step taken from the cache has its outputs copied back there. The result file is written from there when the job ends. And a step that is about to run empties its directory first.
So two runs of one job would undo each other. One run’s build empties build/ while the other run’s run step is starting the simulator it built, or one run puts back a cached filelist/ while the other is reading it. Nothing breaks between different jobs: no step writes outside its own directory, and no step reads another job’s directory.
The job lock
The lock module gives each job a lock file, .doris-lock, in the job’s directory, such as scratch/doris/lint/aes@verilator/.doris-lock. The file is empty. The lock is an exclusive flock on it, and the file stays when the lock is let go.
- When the lock is taken.
doris runplans, checks that every step fits in the pools, and runs the prechecks. Then it takes the lock of every job it is about to run, before it opens the cache or writes its GC root. A run whose prechecks fail never waits for a lock. - Without waiting first. Each lock is first tried with
LOCK_NB. If another run holds it, the run printswaiting for another doris run of DIR to finish, then waits with a blockingflock. - In the order of the jobs’ directories. The directories are sorted, and the locks taken one by one. Two runs that want some of the same jobs take them in the same order, so neither can hold one job while waiting for a job the other holds. One of them waits at the first job they share, holding only jobs that come before it.
- Before the interrupt handler. doris handles Ctrl-C itself once steps run, so it can stop them cleanly. That handler is installed after the locks are taken, so Ctrl-C ends a waiting run at once, as the default signal action does.
- Held to the end of the run. The locks are let go when
runreturns, after every result, the metrics and the reports are written. Not job by job: a job that has ended may still be read for the reports. - Let go by the kernel however the run ends. A
flockbelongs to the open file, which the kernel closes when the process exits, cleanly, by a signal or by a crash. No stale lock is left behind, and there is nothing to remove by hand.
A job’s whole run is the unit, not a step. A step lock would let two runs of one job interleave, and a later step of one would read the outputs an earlier step of the other had just replaced.
Cleaning up around a run
doris clean and the removal of old kept directories when a run starts both delete kept step directories, which may belong to a job another run holds. Before deleting one, each looks for a .doris-lock in the directory and each directory above it, up to the one being cleaned, and tries a shared flock on each it finds with LOCK_NB. If any is held, the directory is left. doris clean lists it as in use. Trying the lock takes it for a moment, so a run starting at that moment waits that moment.
Files written for more than one run
| File | Written by | How two runs share it |
|---|---|---|
A job’s result.json | The run holding the job | Written to a temporary file beside it and renamed, so the report of another run never reads half of one |
| The flow’s report pages and index | Every run, when it ends | Made again from every result file there, and renamed into place. The last run to end writes the index others will see |
The flow’s metrics.json and its page | Every run, when it ends | Renamed into place. They are the metrics of the run that ended last. Each run’s own are kept with its GC root |
| A GC root | Each run, its own | Named by the time and the process ID, so two runs never write one |
| The measurement store | Each run, a file of its own | Named by the time, the host and the process ID |
The temporary file is .<name>.<pid>.tmp, so two processes never write one, and a rename within a directory replaces the file in one step.
The cache
The cache is per user and shared by every checkout, so it was already shared between runs before runs of one checkout were. A run holds the cache’s lock shared, and only a collection takes it exclusive.
Two runs can still work out the same key at once, for jobs that share a step, such as a block’s lint in two tops’ runs. Both run the step, each in its own job’s directory, and both store it:
- An entry is built in
tmp/and renamed into place, so a reader sees an entry whole or not at all. - An entry being replaced is renamed away before it is deleted. A run copying outputs out of it then fails to find a file, rather than copying half of them. A restore that fails is a miss, and the step runs.
- If another run’s entry lands first, it is kept, and this run’s copy is dropped. The key is the same inputs, so either serves. The run that dropped its copy still has its own outputs in its job’s directory, and keys its downstream steps from them.
Within one run, a step two jobs share runs once: the second waits for the first. Between runs nothing makes one wait for the other’s step, so a shared step that misses in both runs runs twice.
What is not shared
- Resource pools are per run. Each run schedules within its own
-jand pool sizes, and knows nothing of what the other holds. Sharing licences between runs and hosts is on the roadmap. - Ports are not reserved between runs. A step asks the kernel for a free port for each of its services, then lets the ports go just before the services start. Another run, or any other program, could take one in that moment. The service then fails to listen, and the step ends in a step error.
- The lock needs
flock. On a filesystem without it,flockfails and the run stops with an error. NFS on Linux emulatesflockwith byte-range locks.
Not built
The roadmap has what is left of the step model: normalised exports and flows that use more of it. Scheduling and remote execution has a separate executor interface and remote executors.