Skip to content

Include a *-filestate variant of each benchmark #1607

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions misc/test/performance_test.go
Original file line number Diff line number Diff line change
@@ -245,6 +245,19 @@ func programTestAsBenchmark(
})
integration.ProgramTest(t, &finalOptions)
})

// Run again against filestate backend; rename the benchmark first so that in the data
// warehouse one can distinguish easily the filestate time series from the regular ones that
// utilize the service backend.
t.Run("benchmark-filestate", func(t *testing.T) {
renamedBench := bench
renamedBench.Name += "-filestate"
finalOptions := test.With(renamedBench.ProgramTestOptions()).With(integration.ProgramTestOptions{
RequireService: false, // use filestate instead
NoParallel: true,
})
integration.ProgramTest(t, &finalOptions)
})
}

func TestMain(m *testing.M) {