Skip to content

Commit

Permalink
gopls/internal/regtest/bench: don't run the iwl test with -short
Browse files Browse the repository at this point in the history
The new InitialWorkspaceLoad benchmark relies on a memstats command that
does not exist in the released version of gopls (v0.11.0). We're
configuring x/benchmarks to run with -short, so use this to guard
against breaking the benchmark suite with this new test.

Change-Id: I64e673fca793c51bd17d0245330543402fd86ec8
Reviewed-on: https://go-review.googlesource.com/c/tools/+/473677
Reviewed-by: Alan Donovan <[email protected]>
gopls-CI: kokoro <[email protected]>
Run-TryBot: Robert Findley <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
findleyr committed Mar 7, 2023
1 parent f477bf4 commit 031fc75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gopls/internal/regtest/bench/iwl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ import (
// BenchmarkInitialWorkspaceLoad benchmarks the initial workspace load time for
// a new editing session.
func BenchmarkInitialWorkspaceLoad(b *testing.B) {
if testing.Short() {
// TODO(rfindley): remove this skip once the released gopls version
// supports the memstats command.
b.Skip("temporarily skipping as baseline gopls versions do not support the memstats command")
}
tests := []struct {
repo string
file string
Expand Down

0 comments on commit 031fc75

Please sign in to comment.