Documentation
¶
Index ¶
- func ApplyLocalUpdate(ctx context.Context, tag, staged, target string, desktopStaged ...string) error
- func ApplyReleaseUpdateForTest(ctx context.Context, tag string, hooks UpdateOpsForTest) error
- func ApplyUpdateForTest(ctx context.Context, tag string, ops UpdateOpsForTest) error
- func HotInstall(ctx context.Context, target, defaultDevDir string, install func() error) error
- func HotInstallForTest(target string, install func() error, ops UpdateOpsForTest) error
- func HotInstallWithProgress(ctx context.Context, target, defaultDevDir string, install func() error, ...) error
- func PrepareAndInstallSource(stopBeforePrepare bool, prepare, deploy func() error, ...) error
- func ProcessIdentityForTest(pid int) string
- func RegisterClient(ctx context.Context, kind string, args []string) (<-chan struct{}, func(), error)
- func RunUpdateCommand(args []string) bool
- func SourceInstallNeedsStoppedPreparation(goos, gui string, state serverruntime.State, ready func() bool) bool
- func StopClientForTest(executable string, pid int) error
- func WaitProcessExitForTest(ctx context.Context, pid int, identity string) error
- type DesktopProcessForTest
- type UpdateOpsForTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyLocalUpdate ¶
func ApplyLocalUpdate(ctx context.Context, tag, staged, target string, desktopStaged ...string) error
ApplyLocalUpdate applies a verified local build using the same runtime handoff.
func ApplyReleaseUpdateForTest ¶ added in v2026.1024.0
func ApplyReleaseUpdateForTest(ctx context.Context, tag string, hooks UpdateOpsForTest) error
ApplyReleaseUpdateForTest uses real release preparation and commit, replacing process operations so tests cannot stop or restart the user's installation.
func ApplyUpdateForTest ¶
func ApplyUpdateForTest(ctx context.Context, tag string, ops UpdateOpsForTest) error
func HotInstall ¶
HotInstall replaces the local installation while its daemon and native clients are stopped, then starts fresh processes in the daemon's previous mode.
func HotInstallForTest ¶
func HotInstallForTest(target string, install func() error, ops UpdateOpsForTest) error
func HotInstallWithProgress ¶ added in v2026.1011.0
func HotInstallWithProgress(ctx context.Context, target, defaultDevDir string, install func() error, progress func(string)) error
HotInstallWithProgress reports shutdown and restart when those phases begin.
func PrepareAndInstallSource ¶ added in v2026.1015.4
func PrepareAndInstallSource(stopBeforePrepare bool, prepare, deploy func() error, handoff func(func() error) error) error
PrepareAndInstallSource runs preparation inside the recoverable runtime handoff only when required.
func ProcessIdentityForTest ¶
func RegisterClient ¶
func RegisterClient(ctx context.Context, kind string, args []string) (<-chan struct{}, func(), error)
RegisterClient provides a graceful stop handshake independent of OS signals. The coordinator verifies both the executable and process creation time.
func RunUpdateCommand ¶
func SourceInstallNeedsStoppedPreparation ¶ added in v2026.1015.4
func SourceInstallNeedsStoppedPreparation(goos, gui string, state serverruntime.State, ready func() bool) bool
SourceInstallNeedsStoppedPreparation reports whether dependency repair must wait for runtime shutdown. Windows cannot unlink native npm modules loaded by the running Vite server.
func StopClientForTest ¶
Types ¶
type DesktopProcessForTest ¶
func DesktopProcessesForTest ¶
func DesktopProcessesForTest(executable string) ([]DesktopProcessForTest, error)
func UpdateClientsForTest ¶
func UpdateClientsForTest(executable string) ([]DesktopProcessForTest, error)
type UpdateOpsForTest ¶
type UpdateOpsForTest struct {
Prepare func() (string, string, error)
Stop func(string) error
Commit func(string, string) error
Start func(string) error
Restore func(string) error
Quiesce func() error
PreserveStorage bool
}
UpdateOpsForTest lets the repository's top-level tests exercise recovery without touching any running application or external release.