Skip to content

Fixed errcheck issues in server/channels/app/imaging/decode.go (#28937) #51

Fixed errcheck issues in server/channels/app/imaging/decode.go (#28937)

Fixed errcheck issues in server/channels/app/imaging/decode.go (#28937) #51

GitHub Actions / MySQL (Results) failed Nov 9, 2024 in 0s

14102 tests run, 14016 passed, 63 skipped, 23 failed.

Annotations

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount

Failed
Raw output
=== RUN   TestIsFirstUserAccount
{"timestamp":"2024-11-09 10:40:09.928 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:40:09.936 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:40:09.936 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 10:40:09.936 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 10:40:10.046 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 10:40:10.046 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 10:40:10.046 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 10:40:10.046 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 10:40:10.046 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
==================
WARNING: DATA RACE
Write at 0x00c0001eb410 by goroutine 475:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount()
      /mattermost/server/channels/app/platform/config_test.go:106 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c0001eb410 by goroutine 491:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 475 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:2161 +0x85
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.runTests()
      /usr/local/go/src/testing/testing.go:2159 +0x8be
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:2027 +0xf17
  github.com/mattermost/mattermost/server/v8/channels/testlib.(*MainHelper).Main()
      /mattermost/server/channels/testlib/helper.go:115 +0x1cb
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestMain()
      /mattermost/server/channels/app/platform/main_test.go:31 +0x279
  main.main()
      _testmain.go:137 +0x2d4

Goroutine 491 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount()
      /mattermost/server/channels/app/platform/config_test.go:106 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
{"timestamp":"2024-11-09 10:40:10.056 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccount (0.22s)
=== RUN   TestIsFirstUserAccount/failed_request
--- PASS: TestIsFirstUserAccount/failed_request (0.00s)
{"timestamp":"2024-11-09 10:40:10.052 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
=== RUN   TestIsFirstUserAccount/success_negative_users
{"timestamp":"2024-11-09 10:40:10.052 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_negative_users (0.00s)
=== RUN   TestIsFirstUserAccount/success_no_users
--- PASS: TestIsFirstUserAccount/success_no_users (0.00s)
{"timestamp":"2024-11-09 10:40:10.053 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
=== RUN   TestIsFirstUserAccount/success_one_user
--- PASS: TestIsFirstUserAccount/success_one_user (0.00s)
=== RUN   TestIsFirstUserAccount/success_multiple_users_-_no_store_call
{"timestamp":"2024-11-09 10:40:10.054 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_multiple_users_-_no_store_call (0.00s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd

Failed
Raw output
=== RUN   TestIsFirstUserAccountThunderingHerd
{"timestamp":"2024-11-09 10:40:10.150 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:40:10.158 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:40:10.158 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 10:40:10.158 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 10:40:10.269 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 10:40:10.270 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 10:40:10.270 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
==================
WARNING: DATA RACE
Write at 0x00c001f40c90 by goroutine 498:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd()
      /mattermost/server/channels/app/platform/config_test.go:147 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c001f40c90 by goroutine 512:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 498 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:2161 +0x85
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.runTests()
      /usr/local/go/src/testing/testing.go:2159 +0x8be
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:2027 +0xf17
  github.com/mattermost/mattermost/server/v8/channels/testlib.(*MainHelper).Main()
      /mattermost/server/channels/testlib/helper.go:115 +0x1cb
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestMain()
      /mattermost/server/channels/app/platform/main_test.go:31 +0x279
  main.main()
      _testmain.go:137 +0x2d4

Goroutine 512 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd()
      /mattermost/server/channels/app/platform/config_test.go:147 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
{"timestamp":"2024-11-09 10:40:10.270 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 10:40:10.270 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.270 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.270 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 10:40:10.271 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.271 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.271 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.271 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.272 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.272 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.304 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccountThunderingHerd (0.25s)
=== RUN   TestIsFirstUserAccountThunderingHerd/failed_request
--- PASS: TestIsFirstUserAccountThunderingHerd/failed_request (0.00s)
{"timestamp":"2024-11-09 10:40:10.272 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.272 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
=== RUN   TestIsFirstUserAccountThunderingHerd/success_negative_users
--- PASS: TestIsFirstUserAccountThunderingHerd/success_negative_users (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_no_users
{"timestamp":"2024-11-09 10:40:10.273 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.273 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.273 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.273 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.274 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.274 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.274 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.274 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.274 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.274 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_no_users (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_one_user_-_lot_of_requests
{"timestamp":"2024-11-09 10:40:10.275 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.276 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.277 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.277 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.277 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.277 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.278 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.278 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.278 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.278 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:40:10.291 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_one_user_-_lot_of_requests (0.02s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_multiple_users_-_no_store_call
--- PASS: TestIsFirstUserAccountThunderingHerd/success_multiple_users_-_no_store_call (0.00s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing
{"timestamp":"2024-11-09 10:40:54.156 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:40:54.163 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:40:54.163 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 10:40:54.163 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 10:40:54.268 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 10:40:54.268 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 10:40:54.268 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 10:40:54.268 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 10:40:54.268 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c0001eb910 by goroutine 4054:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func1()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:19 +0x49
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c0001eb910 by goroutine 4071:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 4054 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:18 +0x44
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Goroutine 4071 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func1()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:19 +0x49
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
--- FAIL: TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing (0.20s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId
{"timestamp":"2024-11-09 10:41:02.442 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:41:02.449 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:41:02.449 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 10:41:02.449 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 10:41:02.561 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 10:41:02.561 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 10:41:02.561 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 10:41:02.561 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 10:41:02.561 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c0019fa010 by goroutine 4265:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func5()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:76 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c0019fa010 by goroutine 4282:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 4265 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:75 +0xc4
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Goroutine 4282 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func5()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:76 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
--- FAIL: TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId (0.20s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler
--- FAIL: TestServerSyncSharedChannelHandler (8.50s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount

Failed
Raw output
=== RUN   TestIsFirstUserAccount
{"timestamp":"2024-11-09 11:13:02.594 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:02.599 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:02.599 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:02.599 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:02.670 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:02.670 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:13:02.670 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:13:02.670 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:13:02.670 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
==================
WARNING: DATA RACE
Write at 0x00c002e3c290 by goroutine 60:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount()
      /mattermost/server/channels/app/platform/config_test.go:106 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c002e3c290 by goroutine 76:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 60 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:2161 +0x85
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.runTests()
      /usr/local/go/src/testing/testing.go:2159 +0x8be
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:2027 +0xf17
  github.com/mattermost/mattermost/server/v8/channels/testlib.(*MainHelper).Main()
      /mattermost/server/channels/testlib/helper.go:115 +0x1cb
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestMain()
      /mattermost/server/channels/app/platform/main_test.go:31 +0x279
  main.main()
      _testmain.go:137 +0x2d4

Goroutine 76 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount()
      /mattermost/server/channels/app/platform/config_test.go:106 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
{"timestamp":"2024-11-09 11:13:02.672 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:02.674 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccount (0.14s)
=== RUN   TestIsFirstUserAccount/failed_request
--- PASS: TestIsFirstUserAccount/failed_request (0.00s)
=== RUN   TestIsFirstUserAccount/success_negative_users
{"timestamp":"2024-11-09 11:13:02.672 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_negative_users (0.00s)
=== RUN   TestIsFirstUserAccount/success_no_users
{"timestamp":"2024-11-09 11:13:02.673 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_no_users (0.00s)
=== RUN   TestIsFirstUserAccount/success_one_user
--- PASS: TestIsFirstUserAccount/success_one_user (0.00s)
=== RUN   TestIsFirstUserAccount/success_multiple_users_-_no_store_call
{"timestamp":"2024-11-09 11:13:02.673 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_multiple_users_-_no_store_call (0.00s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd

Failed
Raw output
=== RUN   TestIsFirstUserAccountThunderingHerd
{"timestamp":"2024-11-09 11:13:08.882 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:08.887 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:08.887 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:08.887 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:08.951 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:08.951 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:13:08.951 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:13:08.951 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:13:08.951 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
==================
WARNING: DATA RACE
Write at 0x00c000828f10 by goroutine 60:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd()
      /mattermost/server/channels/app/platform/config_test.go:147 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c000828f10 by goroutine 75:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 60 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:2161 +0x85
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.runTests()
      /usr/local/go/src/testing/testing.go:2159 +0x8be
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:2027 +0xf17
  github.com/mattermost/mattermost/server/v8/channels/testlib.(*MainHelper).Main()
      /mattermost/server/channels/testlib/helper.go:115 +0x1cb
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestMain()
      /mattermost/server/channels/app/platform/main_test.go:31 +0x279
  main.main()
      _testmain.go:137 +0x2d4

Goroutine 75 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd()
      /mattermost/server/channels/app/platform/config_test.go:147 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
{"timestamp":"2024-11-09 11:13:08.953 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.953 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.953 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.953 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.954 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.954 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.954 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.954 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.955 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.955 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.968 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccountThunderingHerd (0.14s)
=== RUN   TestIsFirstUserAccountThunderingHerd/failed_request
--- PASS: TestIsFirstUserAccountThunderingHerd/failed_request (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_negative_users
{"timestamp":"2024-11-09 11:13:08.955 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.956 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.956 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.956 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.956 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.956 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.957 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.957 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.957 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.957 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_negative_users (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_no_users
{"timestamp":"2024-11-09 11:13:08.958 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.958 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.958 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.958 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.959 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.959 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.959 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.959 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.959 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:08.959 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_no_users (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_one_user_-_lot_of_requests
{"timestamp":"2024-11-09 11:13:08.960 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_one_user_-_lot_of_requests (0.01s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_multiple_users_-_no_store_call
--- PASS: TestIsFirstUserAccountThunderingHerd/success_multiple_users_-_no_store_call (0.00s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing
{"timestamp":"2024-11-09 11:13:15.159 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:15.163 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:15.163 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:15.163 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:15.227 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:15.227 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:13:15.227 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:13:15.227 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:13:15.227 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c0009cd190 by goroutine 61:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func1()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:19 +0x49
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c0009cd190 by goroutine 77:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 61 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:18 +0x44
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Goroutine 77 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func1()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:19 +0x49
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
{"timestamp":"2024-11-09 11:13:15.228 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
    testing.go:1398: race detected during execution of test
--- FAIL: TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing (0.12s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler
--- FAIL: TestServerSyncSharedChannelHandler (0.12s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId
{"timestamp":"2024-11-09 11:13:21.180 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:21.184 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:21.184 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:21.184 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:21.258 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:21.258 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:13:21.258 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:13:21.258 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:13:21.258 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
==================
WARNING: DATA RACE
Write at 0x00c0005bbb90 by goroutine 61:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func5()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:76 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c0005bbb90 by goroutine 76:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 61 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:75 +0xc4
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Goroutine 76 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func5()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:76 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
{"timestamp":"2024-11-09 11:13:21.261 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
    testing.go:1398: race detected during execution of test
--- FAIL: TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId (0.13s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler
--- FAIL: TestServerSyncSharedChannelHandler (0.13s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount

Failed
Raw output
=== RUN   TestIsFirstUserAccount
{"timestamp":"2024-11-09 11:13:27.250 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:27.255 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:27.255 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:27.255 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:27.325 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:27.325 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:13:27.325 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:13:27.325 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:13:27.325 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c002950010 by goroutine 60:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount()
      /mattermost/server/channels/app/platform/config_test.go:106 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c002950010 by goroutine 75:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 60 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:2161 +0x85
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.runTests()
      /usr/local/go/src/testing/testing.go:2159 +0x8be
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:2027 +0xf17
  github.com/mattermost/mattermost/server/v8/channels/testlib.(*MainHelper).Main()
      /mattermost/server/channels/testlib/helper.go:115 +0x1cb
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestMain()
      /mattermost/server/channels/app/platform/main_test.go:31 +0x279
  main.main()
      _testmain.go:137 +0x2d4

Goroutine 75 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount()
      /mattermost/server/channels/app/platform/config_test.go:106 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
{"timestamp":"2024-11-09 11:13:27.327 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:27.329 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccount (0.13s)
=== RUN   TestIsFirstUserAccount/failed_request
--- PASS: TestIsFirstUserAccount/failed_request (0.00s)
=== RUN   TestIsFirstUserAccount/success_negative_users
{"timestamp":"2024-11-09 11:13:27.327 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_negative_users (0.00s)
=== RUN   TestIsFirstUserAccount/success_no_users
{"timestamp":"2024-11-09 11:13:27.328 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_no_users (0.00s)
=== RUN   TestIsFirstUserAccount/success_one_user
{"timestamp":"2024-11-09 11:13:27.328 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_one_user (0.00s)
=== RUN   TestIsFirstUserAccount/success_multiple_users_-_no_store_call
--- PASS: TestIsFirstUserAccount/success_multiple_users_-_no_store_call (0.00s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd

Failed
Raw output
=== RUN   TestIsFirstUserAccountThunderingHerd
{"timestamp":"2024-11-09 11:13:33.427 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:33.432 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:33.432 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:33.432 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:33.493 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:33.493 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:13:33.493 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:13:33.493 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:13:33.493 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
==================
WARNING: DATA RACE
Write at 0x00c002e60010 by goroutine 60:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd()
      /mattermost/server/channels/app/platform/config_test.go:147 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c002e60010 by goroutine 77:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 60 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:2161 +0x85
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.runTests()
      /usr/local/go/src/testing/testing.go:2159 +0x8be
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:2027 +0xf17
  github.com/mattermost/mattermost/server/v8/channels/testlib.(*MainHelper).Main()
      /mattermost/server/channels/testlib/helper.go:115 +0x1cb
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestMain()
      /mattermost/server/channels/app/platform/main_test.go:31 +0x279
  main.main()
      _testmain.go:137 +0x2d4

Goroutine 77 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd()
      /mattermost/server/channels/app/platform/config_test.go:147 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
{"timestamp":"2024-11-09 11:13:33.495 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.495 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.495 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.495 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.496 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.496 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.496 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.496 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.496 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.497 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.509 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccountThunderingHerd (0.15s)
=== RUN   TestIsFirstUserAccountThunderingHerd/failed_request
--- PASS: TestIsFirstUserAccountThunderingHerd/failed_request (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_negative_users
{"timestamp":"2024-11-09 11:13:33.497 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.497 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.498 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.498 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.498 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.498 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.498 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.499 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.499 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.499 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_negative_users (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_no_users
{"timestamp":"2024-11-09 11:13:33.500 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.500 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.500 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.500 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.501 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.501 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.501 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.501 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.501 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:33.502 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_no_users (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_one_user_-_lot_of_requests
{"timestamp":"2024-11-09 11:13:33.502 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_one_user_-_lot_of_requests (0.01s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_multiple_users_-_no_store_call
--- PASS: TestIsFirstUserAccountThunderingHerd/success_multiple_users_-_no_store_call (0.00s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing
{"timestamp":"2024-11-09 11:13:39.999 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:40.003 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:40.003 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:40.003 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:40.065 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:40.065 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:13:40.065 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:13:40.065 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:13:40.065 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
==================
WARNING: DATA RACE
Write at 0x00c00116c290 by goroutine 61:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func1()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:19 +0x49
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c00116c290 by goroutine 75:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 61 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:18 +0x44
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Goroutine 75 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func1()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:19 +0x49
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
{"timestamp":"2024-11-09 11:13:40.066 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
    testing.go:1398: race detected during execution of test
--- FAIL: TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing (0.12s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler
--- FAIL: TestServerSyncSharedChannelHandler (0.12s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId
{"timestamp":"2024-11-09 11:13:46.240 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:46.244 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:46.244 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:46.244 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:46.307 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:46.307 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:13:46.307 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:13:46.308 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:13:46.308 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c0006b7410 by goroutine 61:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func5()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:76 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c0006b7410 by goroutine 78:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 61 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:75 +0xc4
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Goroutine 78 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func5()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:76 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
{"timestamp":"2024-11-09 11:13:46.310 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
    testing.go:1398: race detected during execution of test
--- FAIL: TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId (0.12s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler
--- FAIL: TestServerSyncSharedChannelHandler (0.12s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount

Failed
Raw output
=== RUN   TestIsFirstUserAccount
{"timestamp":"2024-11-09 11:13:52.304 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:52.309 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:52.309 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:52.309 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:52.379 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:52.380 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:13:52.380 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:13:52.380 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:13:52.380 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c000043b90 by goroutine 60:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount()
      /mattermost/server/channels/app/platform/config_test.go:106 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c000043b90 by goroutine 75:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 60 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:2161 +0x85
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.runTests()
      /usr/local/go/src/testing/testing.go:2159 +0x8be
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:2027 +0xf17
  github.com/mattermost/mattermost/server/v8/channels/testlib.(*MainHelper).Main()
      /mattermost/server/channels/testlib/helper.go:115 +0x1cb
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestMain()
      /mattermost/server/channels/app/platform/main_test.go:31 +0x279
  main.main()
      _testmain.go:137 +0x2d4

Goroutine 75 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccount()
      /mattermost/server/channels/app/platform/config_test.go:106 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
{"timestamp":"2024-11-09 11:13:52.381 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:52.383 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccount (0.13s)
=== RUN   TestIsFirstUserAccount/failed_request
--- PASS: TestIsFirstUserAccount/failed_request (0.00s)
=== RUN   TestIsFirstUserAccount/success_negative_users
{"timestamp":"2024-11-09 11:13:52.382 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_negative_users (0.00s)
=== RUN   TestIsFirstUserAccount/success_no_users
--- PASS: TestIsFirstUserAccount/success_no_users (0.00s)
=== RUN   TestIsFirstUserAccount/success_one_user
{"timestamp":"2024-11-09 11:13:52.382 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:52.382 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_one_user (0.00s)
=== RUN   TestIsFirstUserAccount/success_multiple_users_-_no_store_call
--- PASS: TestIsFirstUserAccount/success_multiple_users_-_no_store_call (0.00s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd

Failed
Raw output
=== RUN   TestIsFirstUserAccountThunderingHerd
{"timestamp":"2024-11-09 11:13:58.382 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:58.386 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:13:58.386 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:13:58.386 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:13:58.450 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:13:58.450 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:13:58.451 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:13:58.451 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:13:58.451 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c000043910 by goroutine 60:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd()
      /mattermost/server/channels/app/platform/config_test.go:147 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c000043910 by goroutine 77:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 60 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:2161 +0x85
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.runTests()
      /usr/local/go/src/testing/testing.go:2159 +0x8be
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:2027 +0xf17
  github.com/mattermost/mattermost/server/v8/channels/testlib.(*MainHelper).Main()
      /mattermost/server/channels/testlib/helper.go:115 +0x1cb
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestMain()
      /mattermost/server/channels/app/platform/main_test.go:31 +0x279
  main.main()
      _testmain.go:137 +0x2d4

Goroutine 77 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestIsFirstUserAccountThunderingHerd()
      /mattermost/server/channels/app/platform/config_test.go:147 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
    testing.go:1398: race detected during execution of test
{"timestamp":"2024-11-09 11:13:58.452 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.452 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.453 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.453 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.453 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.453 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.453 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.454 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.454 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.454 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.465 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccountThunderingHerd (0.14s)
=== RUN   TestIsFirstUserAccountThunderingHerd/failed_request
--- PASS: TestIsFirstUserAccountThunderingHerd/failed_request (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_negative_users
{"timestamp":"2024-11-09 11:13:58.454 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.455 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.455 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.455 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.455 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.456 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.456 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.456 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.456 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.456 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_negative_users (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_no_users
{"timestamp":"2024-11-09 11:13:58.457 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.457 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.457 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.458 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.458 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.458 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.458 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.458 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.459 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:13:58.459 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_no_users (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_one_user_-_lot_of_requests
{"timestamp":"2024-11-09 11:13:58.459 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_one_user_-_lot_of_requests (0.01s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_multiple_users_-_no_store_call
--- PASS: TestIsFirstUserAccountThunderingHerd/success_multiple_users_-_no_store_call (0.00s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing
{"timestamp":"2024-11-09 11:14:04.477 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:14:04.481 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:14:04.481 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:14:04.481 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:14:04.544 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:14:04.544 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:14:04.544 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:14:04.545 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:14:04.545 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c000127690 by goroutine 61:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func1()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:19 +0x49
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c000127690 by goroutine 78:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 61 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:18 +0x44
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Goroutine 78 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func1()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:19 +0x49
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
{"timestamp":"2024-11-09 11:14:04.546 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
    testing.go:1398: race detected during execution of test
--- FAIL: TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing (0.12s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler
--- FAIL: TestServerSyncSharedChannelHandler (0.13s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId
{"timestamp":"2024-11-09 11:14:10.585 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:14:10.589 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:14:10.589 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:14:10.589 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:14:10.651 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:14:10.651 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:14:10.651 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:14:10.651 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:14:10.651 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
==================
WARNING: DATA RACE
Write at 0x00c0007e1410 by goroutine 61:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:117 +0x8b3
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func5()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:76 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Previous read at 0x00c0007e1410 by goroutine 76:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func1()
      /mattermost/server/channels/app/platform/web_hub.go:407 +0x237
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start.func2()
      /mattermost/server/channels/app/platform/web_hub.go:618 +0x58

Goroutine 61 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1742 +0x825
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:75 +0xc4
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44

Goroutine 76 (running) created at:
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*Hub).Start()
      /mattermost/server/channels/app/platform/web_hub.go:635 +0x264
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).hubStart()
      /mattermost/server/channels/app/platform/web_hub.go:122 +0x29b
  github.com/mattermost/mattermost/server/v8/channels/app/platform.(*PlatformService).Start()
      /mattermost/server/channels/app/platform/service.go:371 +0x3a
  github.com/mattermost/mattermost/server/v8/channels/app/platform.setupTestHelper()
      /mattermost/server/channels/app/platform/helper_test.go:195 +0x94c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.SetupWithStoreMock()
      /mattermost/server/channels/app/platform/helper_test.go:108 +0x19c
  github.com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler.func5()
      /mattermost/server/channels/app/platform/shared_channel_notifier_test.go:76 +0x4c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /usr/local/go/src/testing/testing.go:1742 +0x44
==================
{"timestamp":"2024-11-09 11:14:10.653 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
    testing.go:1398: race detected during execution of test
--- FAIL: TestServerSyncSharedChannelHandler/sync_service_doesn't_panic_when_no_RemoteId (0.13s)

Check failure on line 1 in com/mattermost/mattermost/server/v8/channels/app/platform

See this annotation in the file changed.

@github-actions github-actions / MySQL (Results)

com/mattermost/mattermost/server/v8/channels/app/platform.TestServerSyncSharedChannelHandler

Failed
Raw output
=== RUN   TestServerSyncSharedChannelHandler
--- FAIL: TestServerSyncSharedChannelHandler (0.13s)