sensei check FILE validates one without running it, and each error names the place in the file, for example steps[1].when.
Top-level keys
A definition is limited to 200,000 bytes.
Field types
input and output map a field name to a type.
A trailing
? on the name or on the type makes a field optional. amount?: number and amount: number? are the same field.
-i are strings. They are converted to the type the definition names.
limit
Each value is a number above zero.
services, setup, env and secrets
These say what the repository’s tests need. They are read the same way as the keys of a repository’ssensei.yaml, and are used before it. See Services, settings and secrets.
services: {} says the tests need no service, whatever the repository’s files declare.
tasks
A definition withtasks is a batch: several changes to one repository, each worked alone and then tested together. See Several changes at once.
A batch needs
repo. instructions are optional in a batch, and are said to every task.
With tasks: $input.changes, the definition’s input has changes: list. A batch written this way is saved once and run on a new list each time, and it is how a step hands a batch the tasks an earlier step listed. See A batch as a step.
ask_first
Every tool named here must also be in
tools.
steps
steps is a list of 1 to 20 steps. Each step is a mapping with these keys.
References
A step can read
$input and the steps before it. A skipped step’s output reads as nothing.
Conditions
A condition is built from references, quoted strings, numbers,true, false and null, the comparisons == and !=, the words and, or and not, and parentheses. not binds tighter than and, and and tighter than or.
File references
A step’sagent can be a path that starts with ./, ../, / or ~, or ends in .yaml, .yml or .json. The sensei command and the SDK read the file in before they send the definition. Relative paths resolve against the file that names them. Files can include files up to 3 deep, and a cycle is refused.
