An affected run picks the tasks a change reaches, not whole projects. A run reads only the locks. Task output goes to a file, and a run of many tasks prints only the failures. Keyed variables reach the command, by name or pattern.
An affected run now picks the tasks a change reaches, and a run reads
only the locks. A config edit waits for vx lock.
--affected marked every task of a changed project. Any edit there
reran the project’s build and tests, and every dependant’s, even when
none of them read the file.
Now a change marks a task only when it matches that task’s inputs,
then the tasks that depend on it. Only the changed projects and their
dependants are looked at.
A task with exec and no inputs runs when its project, or one it
depends on, changed. A task is one of three kinds: with exec it runs; with
inputs and no exec it is a no-op task, a package whose sources are
its build; with neither it is a group. Editing a task’s definition
makes it a new task, so it and its dependants miss and are affected.
A run read each config to check it against the lock, and refused one
edited since vx lock.
Now a run reads only .vx/projects.lock and .vx/dependencies.lock,
and runs .vx/workspace.ts as before. A config edit does nothing until
vx lock. vx lock --check shows what moved:
turbo() and nx() read no turbo.json or nx.json on a run either.
Their settings reach a run through the .vx/workspace.ts that
bunx @vzn/vx-migrate writes.
vx held each task’s output in memory, so a task that printed a flood
grew vx with it.
Now every task’s output streams to its own file: a failed task’s 300 MB
log took vx from 1.9 GB of memory to about 130 MB. One task streams to
the terminal from that file. A run of many tasks, here, on CI or on a
DTE worker, prints only the failed tasks’ output, at the end:
A night of hardening closed paths that replayed a stale hit, hung, or
failed without a reason:
Terminal window
$vxrunbuild
✗vxrun@demo/web#buildreadssrc/uiininputs.files,alinkintotheproject@demo/ui (packages/ui): a project's inputs never reach another project's files, so an edit there would replay a stale hit. Depend on a task of @demo/ui, or take the link back with "!src/ui" and name the files in inputs.workspaceFiles ("packages/ui").
A remote cache download that stalls is asked again for up to 30 s, so a run whose tasks all passed no longer exits 1.
bun() and yarn() refuse an install whose patched copies do not match the lockfile, naming bun install --force.
A remote get that never answers is a miss, and a plugin call that never settles is named.
A timeout names whose limit killed the task and how to raise it.
CI=no, off, false or 0 is not CI, so a laptop never writes the remote by accident.
.vx/projects.lock is version 10 and .vx/dependencies.lock version 7: run vx lock once and commit both.
A config edited or added since vx lock is no longer refused: the run uses the lock.
turbo() and nx() read no turbo.json or nx.json on a run; Turbo concurrency and Nx parallel and defaultBase reach a run only through .vx/workspace.ts.
--affected marks tasks by their inputs, not whole projects.
A variable in inputs.env now reaches the command.
A task with no exec and inputs: { files: [] } is refused.
A run refuses an inputs.files link into another project that no dependsOn path reaches (VX_E_NESTED_INPUT).
vx lock refuses a glob that reaches into a nested project, a project named with a leading -, a name listed twice in inputs.env, exec.env.passThrough, exec.env.secret or tags, a dependency rule with only deny: [], and persistent.readyWhen: ''.
--affected= with no value is refused.
A plugin’s setup that returns a value fails; a teardown that returns one is warned.
PreparedRun.unlockedConfig is removed, and ui.Column’s align is optional.
vx lock refuses outputs two tasks would both write. A task a stop killed keeps its row in vx last. A submodule a clone skipped is named, lost DTE workers fail no task, and a hung probe or a huge output no longer holds a run.
A pipeline is a vx run saved under a name, one per CI job. A failure skips only its dependants, a declared output nobody wrote fails the task, watch reruns only what an edit reaches, and git merges the locks as text.
The locks are text keyed by project name, so two branches merge them by project. The waits and limits a user feels are settings, vx stays small under big outputs and slow readers, and migrated Turbo configs hold only what each task declares.
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.