Skip to content
GitHubBlueskydev.toRSS
Releases

Safe outputs, every stop on record

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.

vx 0.0.664: Safe outputs, every stop on record

Three days of hardening found configs that loaded but could never cache right, runs whose history left out what happened, and checkouts vx read wrong. This release closes them.

This release has breaking changes: read Breaking changes first.

In this release

A task writing a folder that another task’s glob also writes in lost one of the two outputs on every run: vx clears a task’s outputs before it runs. A glob that a negation took back whole keyed no file, so every edit replayed a hit.

Now vx lock refuses both and says what to change:

Terminal window
$ vx lock
✗ vx lock lock not written
app#build and app#icons both write dist/ / dist/icons/*.svg
vx clears a task's outputs before it runs, so one deletes the other's
fix give each task its own output path, or add "!dist/icons/*.svg" to app#build's outputs.files

['**', '!**/*'] is refused the same way, and a wildcard output that matched only folders fails its task.

See Outputs.

A task that --fail-fast or a Ctrl-C killed after it started left no row in vx last, so the run’s history said less than the run did.

Now it keeps its row as aborted, counted in the task total, and vx why names an aborted previous run as why a key re-ran:

Terminal window
$ vx last
tasks 2 tasks · 0 hits · 1 failed · 1 aborted
Tasks 2 status cache ±usual time cpu mem outputs blocks worker task
failed no-cache — 209ms 1% 1.7MB — 0 local app#lint exit 1
aborted — — 219ms — — — 0 local app#test

See vx last.

A clone without --recurse-submodules leaves each submodule’s folder standing, empty. vx ran a project there on no sources.

Now a run that needs it stops and names the fix. A project a sparse checkout left out is refused the same way:

Terminal window
$ vx run build --all
✗ vx run packages/ui ("ui") is in submodule packages/ui, which is not checked out, but this run needs it — run `git submodule update --init packages/ui`

vx watch reads a submodule’s own git, and vx cache clean keeps a submodule’s committed outputs.

With Distributed task execution, a task lost on two workers failed outright, even when every task of the run passed. A worker the relay lost says nothing about the task.

Now a lost worker no longer counts as the task’s fault: the task moves to another worker. Four losses fail it, so a task that kills each worker it runs on does not start workers without end.

A hung probe or a huge output no longer holds a run

Section titled “A hung probe or a huge output no longer holds a run”

An inputs.runtime probe that never answered held the whole run with no output: a task’s timeout bounded only its command. Now the timeout bounds its probes too, and says whose limit it was:

Terminal window
$ vx run build --timeout 2s
[vx] app#build: cache key not derived: inputs.runtime probe gave no answer in 2000ms: ./scripts/version.sh (cwd: /tmp/demo/app); the run's timeout (--timeout, VX_RUN_TIMEOUT or run.timeout); raise it, or set the task's exec.timeout
└─ app#build ── (0ms) failed (cache key not derived)

A task writing about 800,000 files failed with cache save failed. Now it saves and restores:

Terminal window
$ vx run many#build
└─ many#build ── (189.94s) success
$ rm -rf dist && vx run many#build
└─ many#build ── (30.59s) restored-local
  • An output folder that is a link: a hit keeps the committed files behind it and never saves them.
  • Secrets stay masked when a pause splits one on the live stream, when a long line is cut, and after a short piece shows.
  • exec.env.define sets the PATH a runtime probe runs on.
  • --affected selects a task that reads a dependency’s outputs, and no longer selects one by a file at a glob’s head that matches none of it.
  • vx lock refuses a project name --filter cannot reach, a glob starting at ~, and a pipeline’s unknown excludeDependencies.
  • --cache-dir=~/vx and a pipeline’s cacheDir: '~/vx' name your home folder.
  • A task running vx watch or vx last --live --follow in its own workspace fails at once instead of hanging.
  • Sandbox fix lines grant where a move or a hard link lands, and a hermetic task’s failure names the host file its wall hides.
  • vx why lists a million changed inputs, and vx last --sql keeps integers past 2^53 exact.
  • Sizes print in one width: 1.0MB, not 1024KB.
  • bunx @vzn/vx-migrate maps Turbo, Nx and Vite Task negations and shared outputs as each tool reads them.
  • A history row (runs.status, RunRecord.status) may now be 'aborted'.
  • vx lock refuses a folder output another task’s glob writes in, a glob a negation takes back whole, a glob starting at ~, and a project name --filter reads as outside the root.
  • WorkerRuntime.probe takes an optional fourth argument, path.

See Upgrading.

Terminal window
vx upgrade
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.