- Notifications
You must be signed in to change notification settings - Fork928
feat: move shared ports out of experiment#13120
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
3e44582
b16831a
e11d6bf
f7e01ad
2a4ae47
ef4c07d
d316b31
ab31bad
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
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -511,23 +511,29 @@ func TestAgentStats(t *testing.T) { | ||
func TestExperimentsMetric(t *testing.T) { | ||
t.Parallel() | ||
if len(codersdk.ExperimentsAll) == 0 { | ||
t.Skip("No experiments are currently defined; skipping test.") | ||
} | ||
Comment on lines +514 to +516 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. @dannykopping I see these prom metrics are somewhat assuming that 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. We spoke offline, he gave me the 👍 for now and we'll make the changes to get these tests running again soon. | ||
tests := []struct { | ||
name string | ||
experiments codersdk.Experiments | ||
expected map[codersdk.Experiment]float64 | ||
}{ | ||
{ | ||
name: "Enabled experiment is exported in metrics", | ||
experiments: codersdk.Experiments{ | ||
codersdk.ExperimentsAll[0], | ||
}, | ||
expected: map[codersdk.Experiment]float64{ | ||
codersdk.ExperimentsAll[0]: 1, | ||
}, | ||
}, | ||
{ | ||
name: "Disabled experiment is exported in metrics", | ||
experiments: codersdk.Experiments{}, | ||
expected: map[codersdk.Experiment]float64{ | ||
codersdk.ExperimentsAll[0]: 0, | ||
}, | ||
}, | ||
{ | ||
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.