A check starts from the last green check's disk (#16380)
A green check of the default branch keeps its installed packages
(node_modules) as the repository's snapshot, one per install command. The
next check of the same repository clones them into its fresh checkout and
skips its install, when the snapshot can be verified. Source files always come
from the check's own commit.
When a check starts warm
It starts warm only when the lockfiles and package.json hash to what the
snapshot was made from, and the snapshot's files match the entries, bytes and
newest mtime it recorded. Anything else starts cold and runs install as
before; the log says why (snapshot: cold (inputs differ from …)).
Only a green default-branch check writes a snapshot. A pull's check reads one, never writes one. Restoring copies the files (copy-on-write where the filesystem has it, a plain copy otherwise), so nothing a check runs shares a file with the snapshot.
Where to see it
- Web: a run page's line "Started warm; setup took 1.2s", and under
/system, Maintenance's disclosure: "Check starts, last 7 days" with the warm and cold counts and each median setup. - Terminal: the System screen's "Check starts, last 7 days" lines (for anyone who can read telemetry), and the same line under a check's log.