Compare commits

...

4 Commits

Author SHA1 Message Date
Brad Fitzpatrick
c80eb698d5 VERSION.txt: this is v1.78.1
Change-Id: I3588027fee8460b27c357d3a656f769fda151ccc
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-12-05 15:51:23 -08:00
Brad Fitzpatrick
1aef3e83b8 health: fix TestHealthMetric to pass on release branch
Fixes #14302

Change-Id: I9fd893a97711c72b713fe5535f2ccb93fadf7452
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
(cherry picked from commit dc6728729e)
2024-12-05 15:51:19 -08:00
Brad Fitzpatrick
2690b4762f Revert "VERSION.txt: this is v1.78.0"
This reverts commit 0267fe83b2.

Reason: it converted the tree to Windows line endings.

Updates #14299

Change-Id: I2271a61d43e99bd0bbcf9f4831e8783e570ba08a
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-12-05 15:27:16 -08:00
Nick Khyl
0267fe83b2 VERSION.txt: this is v1.78.0
Signed-off-by: Nick Khyl <nickk@tailscale.com>
2024-12-05 13:16:48 -06:00
2 changed files with 10 additions and 4 deletions

View File

@@ -1 +1 @@
1.77.0
1.78.1

View File

@@ -14,6 +14,7 @@ import (
"tailscale.com/tailcfg"
"tailscale.com/types/opt"
"tailscale.com/util/usermetric"
"tailscale.com/version"
)
func TestAppendWarnableDebugFlags(t *testing.T) {
@@ -352,6 +353,11 @@ func TestShowUpdateWarnable(t *testing.T) {
}
func TestHealthMetric(t *testing.T) {
unstableBuildWarning := 0
if version.IsUnstableBuild() {
unstableBuildWarning = 1
}
tests := []struct {
desc string
check bool
@@ -361,20 +367,20 @@ func TestHealthMetric(t *testing.T) {
}{
// When running in dev, and not initialising the client, there will be two warnings
// by default:
// - is-using-unstable-version
// - is-using-unstable-version (except on the release branch)
// - wantrunning-false
{
desc: "base-warnings",
check: true,
cv: nil,
wantMetricCount: 2,
wantMetricCount: unstableBuildWarning + 1,
},
// with: update-available
{
desc: "update-warning",
check: true,
cv: &tailcfg.ClientVersion{RunningLatest: false, LatestVersion: "1.2.3"},
wantMetricCount: 3,
wantMetricCount: unstableBuildWarning + 2,
},
}
for _, tt := range tests {