#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/filewatcher" && test == "TestFileWatcher/rename_directory_in_linux_&_windows"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestFileWatcher/rename_directory_in_linux_&_windows
==================
WARNING: DATA RACE
Write at 0x00c000242640 by goroutine 34:
  runtime.racewrite()
      <autogenerated>:1 +0x24
  golang.org/x/tools/gopls/internal/filewatcher.(*Watcher).Close()
      C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher.go:421 +0x3e
  golang.org/x/tools/gopls/internal/filewatcher_test.TestFileWatcher.func12()
      C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher_test.go:343 +0xdd1
...
Goroutine 37 (running) created at:
  golang.org/x/tools/gopls/internal/filewatcher.(*Watcher).handleEvent()
      C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher.go:233 +0x533
  golang.org/x/tools/gopls/internal/filewatcher.(*Watcher).run()
      C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher.go:128 +0x3f4
  golang.org/x/tools/gopls/internal/filewatcher.New.gowrap1()
      C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher.go:74 +0x46
==================
    testing.go:1617: race detected during execution of test
--- FAIL: TestFileWatcher/rename_directory_in_linux_&_windows (0.65s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/filewatcher" && test == "TestFileWatcher/rename_directory_in_linux_&_windows"
2025-07-29 20:55 x_tools-gotip-windows-amd64-race tools@ef0f4a4c go@cc571dab x/tools/gopls/internal/filewatcher.TestFileWatcher/rename_directory_in_linux_&_windows (log) === RUN TestFileWatcher/rename_directory_in_linux_&_windows ================== WARNING: DATA RACE Write at 0x00c000242640 by goroutine 34: runtime.racewrite() :1 +0x24 golang.org/x/tools/gopls/internal/filewatcher.(*Watcher).Close() C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher.go:421 +0x3e golang.org/x/tools/gopls/internal/filewatcher_test.TestFileWatcher.func12() C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher_test.go:343 +0xdd1 ... Goroutine 37 (running) created at: golang.org/x/tools/gopls/internal/filewatcher.(*Watcher).handleEvent() C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher.go:233 +0x533 golang.org/x/tools/gopls/internal/filewatcher.(*Watcher).run() C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher.go:128 +0x3f4 golang.org/x/tools/gopls/internal/filewatcher.New.gowrap1() C:/b/s/w/ir/x/w/targetrepo3412854684/gopls/internal/filewatcher/filewatcher.go:74 +0x46 ================== testing.go:1617: race detected during execution of test --- FAIL: TestFileWatcher/rename_directory_in_linux_&_windows (0.65s)

watchflakes