From 4a19fda975d832580344e33484c2db0cafa93c76 Mon Sep 17 00:00:00 2001 From: Zach Buchheit Date: Tue, 13 Oct 2026 15:17:14 -0500 Subject: [PATCH] cmd/tailscale/cli: add failing repro test #21774 This adds a test to repro the issue where tags cause justEditMP to be nil, sending runUp into a watcher loop that waits forever for a Running notification that never comes. Regression appears to be shipped in v1.90.0 via b7fe1cea9, which changed the IPN bus watcher mask from ipn.NotifyInitialState to 0. Addresses: #21774 Signed-off-by: Zach Buchheit --- cmd/tailscale/cli/cli_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmd/tailscale/cli/cli_test.go b/cmd/tailscale/cli/cli_test.go index 6ad7e0888..e8608723c 100644 --- a/cmd/tailscale/cli/cli_test.go +++ b/cmd/tailscale/cli/cli_test.go @@ -1131,6 +1131,18 @@ func TestUpdatePrefs(t *testing.T) { wantSimpleUp: false, wantErrSubtr: "tailscale up --accept-dns=false", }, + { + name: "just_up_running_with_tags", + flags: []string{}, + curPrefs: &ipn.Prefs{ + ControlURL: ipn.DefaultControlURL, + Persist: &persist.Persist{UserProfile: tailcfg.UserProfile{LoginName: "crawshaw.github"}}, + AdvertiseTags: []string{"tag:dummy-test"}, + }, + env: upCheckEnv{backendState: "Running"}, + wantSimpleUp: true, + wantJustEditMP: &ipn.MaskedPrefs{WantRunningSet: true}, + }, { name: "just_edit", flags: []string{},