checkout
Documentation / @wtf/project-wpt / checkout
The tests of the WPT a suite runs, fetched: checkoutWpt, a sparse checkout of the WPT at
its pinned commit, of the paths asked for and no others, by git; checkoutTests, the
test files of a suite’s files and folders, each with what its // META: script= lines load; and
fileOf, the file the WPT’s server serves at a path, of its REWRITES.
A checkout is cached, by its commit, in node_modules/.cache/wpt/<commit> of the project: a
blobless, shallow fetch of the commit, whose files git checks out of the paths asked for alone. A
path asked for later is added to it. Once each path is there, nothing runs git, and a run is
offline. A lock beside it keeps two processes from changing it at once. Git runs by the exec it
is given, in the environment and the working folder of the platform it is given, and the lock
waits, and ages, by that platform’s timer and clock.
