- Notifications
You must be signed in to change notification settings - Fork913
fix: stop checking gauges unrelated to TestAgent_Stats_Magic#17290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -190,7 +190,7 @@ func TestAgent_Stats_Magic(t *testing.T) { | ||
s, ok := <-stats | ||
t.Logf("got stats: ok=%t, ConnectionCount=%d, RxBytes=%d, TxBytes=%d, SessionCountVSCode=%d, ConnectionMedianLatencyMS=%f", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. We should probably also remove these fields (ConnectionCount, RxBytes, TxBytes) from the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I disagree --- although we shouldn't be asserting their values, it can be useful to see them in logs so you can tell the difference between a test that misclassifies the VSCode session from one where we fail to connect at all, or fail to get any meaningful stats. The debugger is great, but relatively useless for diagnosing rare-ish flakes. | ||
ok, s.ConnectionCount, s.RxBytes, s.TxBytes, s.SessionCountVscode, s.ConnectionMedianLatencyMs) | ||
return ok && | ||
// Ensure that the connection didn't count as a "normal" SSH session. | ||
// This was a special one, so it should be labeled specially in the stats! | ||
s.SessionCountVscode == 1 && | ||
@@ -258,8 +258,7 @@ func TestAgent_Stats_Magic(t *testing.T) { | ||
s, ok := <-stats | ||
t.Logf("got stats with conn open: ok=%t, ConnectionCount=%d, SessionCountJetBrains=%d", | ||
ok, s.ConnectionCount, s.SessionCountJetbrains) | ||
return ok && s.SessionCountJetbrains == 1 | ||
}, testutil.WaitLong, testutil.IntervalFast, | ||
"never saw stats with conn open", | ||
) | ||
Uh oh!
There was an error while loading.Please reload this page.