Skip to content

Add DiffRunner.TrayDisabled - #854

Merged
SimonCropp merged 1 commit into
mainfrom
tray-disabled
Aug 26, 2026
Merged

Add DiffRunner.TrayDisabled#854
SimonCropp merged 1 commit into
mainfrom
tray-disabled

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Pending moves and deletes go to a running tray from inside the test process, and nothing turned that off on its own. Disabling diff is not the same switch: it does not stop the tracking either, since every exit of InnerLaunch adds the move, Disabled included; and in Verify it turns off the inline staging that a suite testing that staging exists to produce.

So a suite that has to leave diff on collected a pending move per staged snapshot per run on any developer box with a tray, each pointing at a throwaway directory and each offering an accept that would write to it. DiffEngine.Tests already cut both routes for itself, but half of that - DiffEngineTray.IsRunning - is internal, so no consumer could.

TrayDisabled is the public half, read from DiffEngine_TrayDisabled until set and pinned after, as Disabled is. PendingFiles now gates all six sends through one TrayAvailable, so opting out cannot cover only some of them.

Pending moves and deletes go to a running tray from inside the test
process, and nothing turned that off on its own. Disabling diff is not
the same switch: it does not stop the tracking either, since every exit
of InnerLaunch adds the move, Disabled included; and in Verify it turns
off the inline staging that a suite testing that staging exists to
produce.

So a suite that has to leave diff on collected a pending move per staged
snapshot per run on any developer box with a tray, each pointing at a
throwaway directory and each offering an accept that would write to it.
DiffEngine.Tests already cut both routes for itself, but half of that -
DiffEngineTray.IsRunning - is internal, so no consumer could.

TrayDisabled is the public half, read from DiffEngine_TrayDisabled until
set and pinned after, as Disabled is. PendingFiles now gates all six
sends through one TrayAvailable, so opting out cannot cover only some of
them.
@SimonCropp SimonCropp added this to the 20.1.0 milestone Aug 26, 2026
@SimonCropp
SimonCropp merged commit 972016d into main Aug 26, 2026
11 checks passed
@SimonCropp
SimonCropp deleted the tray-disabled branch August 26, 2026 13:02
This was referenced Aug 26, 2026
This was referenced Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant