fix: fall back to an untracked spawn when fspy cannot start - #752
Open
lifeiscontent wants to merge 1 commit into
Open
lifeiscontent wants to merge 1 commit into
lifeiscontent wants to merge 1 commit into
Conversation
lifeiscontent
force-pushed
the
fix/vt-untracked-spawn-fallback
branch
from
September 23, 2026 23:50
b61e289 to
1ef7ac7
Compare
lifeiscontent
force-pushed
the
fix/vt-untracked-spawn-fallback
branch
2 times, most recently
from
September 23, 2026 23:56
bae3882 to
3842cbf
Compare
Initializing fspy panicked if the preload library couldn't be written to the temp dir. Return the error from fspy::Command::spawn instead, and have vt rerun the command without tracking. The task still runs, isn't cached, and the summary says file access tracking failed to start.
lifeiscontent
force-pushed
the
fix/vt-untracked-spawn-fallback
branch
from
September 24, 2026 10:38
3842cbf to
398f824
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Part of #700, split out of #701. Initializing fspy panicked if its preload library couldn't be written to the temp dir, and any failed tracked spawn failed the task.
Changes
SPY_IMPLnow holds anio::Result.fspy::Command::spawnreturns an init failure asSpawnError::Injectioninstead of panicking.ChildOutcome::fspy_unavailable. The run isn't cached, and the summary shows "Not cached: file access tracking failed to start".summary.rsare grouped into aSuccessDetailsstruct, which keepsspawn_outcome_from_executionunder clippy's argument limit.This doesn't depend on #701 or #753.