Use cases · Builds and tests
Build and test in a clean room.
Every job runs in its own isolated guest, from an exact saved revision, with its limits written down. Nothing is left over from the last job, and nothing is left behind for the next.
- DoneSaved revision selected r-0042
- DoneInputs admitted by the host
- DoneFresh guest started
- DoneTests run 9 of 9 passed
- GoneGuest thrown away
The problem
A shared build machine remembers things.
Caches, leftover files, a credential from the last job, a tool someone installed by hand. Sooner or later a build passes for the wrong reason, or fails for one you cannot reproduce.
The fix is not a cleanup script. It is a machine that did not exist before the job and does not exist after it.
How Nova handles it
From a saved revision to a recorded result.
Pin what goes in
The job names the exact repository tree and the commands to run. The host checks both before anything starts.
Run in a fresh guest
A new virtual machine starts for this job alone, with the limits from the source.
Keep the result
The run keeps its outcome, logs and outputs, the source it used and the isolation it ran under.
In the source
The limits are written down.
Processors, memory, processes, workspace, output, log size and time are fields in the job's source. They are reviewed with the plan and saved with the revision, so a job cannot quietly grow.
Start from the nova/repository-tests Blueprint and change the numbers.
let resources: catalog::tasks::types::TaskResources = catalog::tasks::types::TaskResources {
virtual_cpus: 1,
vm_memory_mib: 2048,
job_memory_mib: 512,
max_processes: 16,
workspace_mib: 16,
output_mib: 1,
log_mib: 1,
timeout_seconds: 60,
}
What you get
Results you can trust.
Nothing left over
Each job starts in a machine that has never run anything else.
Exact inputs
A run names the saved revision it used. Run it again and it starts from the same source.
Isolation on record
Every run records the isolation it ran under. Emulated isolation is labelled as emulated.
Honest failures
A run that fails says where, and keeps its logs. A list that cannot load says so instead of looking empty.
Cancel and run again
Cancel a job that is running. Run a failed one again from the same revision.
Packages captured
The software a run produced is captured automatically and matched against advisories.
Good to know
The limits, plainly.
What can a job produce?
Logs and output files, up to the sizes written in its source.
Does a job have network access?
Only what its plan grants. A job with no network grant has none.
Where does it run?
On infrastructure Nova manages, or on your own connected hosts. Guests are x86-64.
Is this a full CI service?
It runs the jobs. Triggering them from a push to your repository is not part of it; you start a run from the console.
Keep going