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 / Postgres (Results) failed Nov 9, 2024 in 0s

14094 tests run, 14032 passed, 39 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 / Postgres (Results)

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

Failed
Raw output
=== RUN   TestIsFirstUserAccount
{"timestamp":"2024-11-09 10:37:51.571 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:37:51.578 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:37:51.578 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 10:37:51.579 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 10:37:51.693 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 10:37:51.694 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 10:37:51.694 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 10:37:51.694 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 10:37:51.694 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c005cd3190 by goroutine 987:
  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 0x00c005cd3190 by goroutine 1004:
  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 987 (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 1004 (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:37:51.699 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.703 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)
=== RUN   TestIsFirstUserAccount/success_negative_users
--- PASS: TestIsFirstUserAccount/success_negative_users (0.00s)
=== RUN   TestIsFirstUserAccount/success_no_users
--- PASS: TestIsFirstUserAccount/success_no_users (0.00s)
=== RUN   TestIsFirstUserAccount/success_one_user
--- PASS: TestIsFirstUserAccount/success_one_user (0.00s)
{"timestamp":"2024-11-09 10:37:51.699 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.700 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.702 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
=== 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 / Postgres (Results)

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

Failed
Raw output
=== RUN   TestIsFirstUserAccountThunderingHerd
{"timestamp":"2024-11-09 10:37:51.803 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:37:51.812 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:37:51.812 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 10:37:51.812 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
    testing.go:1398: race detected during execution of test
--- FAIL: TestIsFirstUserAccountThunderingHerd (0.25s)
=== RUN   TestIsFirstUserAccountThunderingHerd/failed_request
==================
WARNING: DATA RACE
Read at 0x00c001b18c90 by goroutine 1024:
  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

Previous write at 0x00c001b18c90 by goroutine 1010:
  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

Goroutine 1024 (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

Goroutine 1010 (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
==================
{"timestamp":"2024-11-09 10:37:51.918 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 10:37:51.918 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 10:37:51.927 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 10:37:51.927 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 10:37:51.927 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
--- PASS: TestIsFirstUserAccountThunderingHerd/failed_request (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_negative_users
{"timestamp":"2024-11-09 10:37:51.928 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.928 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.928 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.928 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.928 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.929 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.929 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.929 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.929 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.929 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.930 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.931 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.931 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.931 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.931 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.931 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.932 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.932 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.932 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccountThunderingHerd/success_negative_users (0.00s)
{"timestamp":"2024-11-09 10:37:51.933 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
=== RUN   TestIsFirstUserAccountThunderingHerd/success_no_users
--- PASS: TestIsFirstUserAccountThunderingHerd/success_no_users (0.00s)
{"timestamp":"2024-11-09 10:37:51.934 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.934 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.934 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.935 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.935 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.935 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.935 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.935 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.935 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 10:37:51.936 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
=== RUN   TestIsFirstUserAccountThunderingHerd/success_one_user_-_lot_of_requests
{"timestamp":"2024-11-09 10:37:51.941 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 / Postgres (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:38:06.674 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:38:06.682 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:38:06.682 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 10:38:06.682 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 10:38:06.812 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 10:38:06.813 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
{"timestamp":"2024-11-09 10:38:06.814 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
==================
WARNING: DATA RACE
Read at 0x00c000043910 by goroutine 5062:
  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

Previous write at 0x00c000043910 by goroutine 5048:
  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

Goroutine 5062 (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

Goroutine 5048 (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
==================
{"timestamp":"2024-11-09 10:38:06.887 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 10:38:06.887 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 10:38:06.887 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
    testing.go:1398: race detected during execution of test
--- FAIL: TestServerSyncSharedChannelHandler/sync_service_inactive,_it_does_nothing (0.30s)

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 / Postgres (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:38:12.201 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:38:12.209 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 10:38:12.209 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 10:38:12.209 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 10:38:12.316 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 10:38:12.316 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 10:38:12.316 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 10:38:12.317 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 10:38:12.317 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c001472790 by goroutine 5284:
  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 0x00c001472790 by goroutine 5301:
  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 5284 (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 5301 (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 10:38:12.320 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.22s)

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 / Postgres (Results)

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

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

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 / Postgres (Results)

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

Failed
Raw output
=== RUN   TestIsFirstUserAccount
{"timestamp":"2024-11-09 11:04:01.206 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:01.214 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:01.214 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:01.214 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:01.293 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:01.293 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:01.293 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:04:01.293 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:01.293 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c000133410 by goroutine 563:
  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 0x00c000133410 by goroutine 580:
  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 563 (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 580 (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:04:01.294 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:01.297 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccount (0.17s)
=== RUN   TestIsFirstUserAccount/failed_request
--- PASS: TestIsFirstUserAccount/failed_request (0.00s)
=== RUN   TestIsFirstUserAccount/success_negative_users
{"timestamp":"2024-11-09 11:04:01.295 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:04:01.295 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:04:01.295 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 / Postgres (Results)

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

Failed
Raw output
=== RUN   TestIsFirstUserAccountThunderingHerd
{"timestamp":"2024-11-09 11:04:05.441 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:05.446 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:05.446 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:05.446 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:05.508 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:05.508 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:05.508 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:05.508 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:04:05.508 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c00012db90 by goroutine 563:
  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 0x00c00012db90 by goroutine 580:
  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 563 (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 580 (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:04:05.510 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.510 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.510 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.510 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.511 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.511 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.511 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.511 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.511 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.512 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.524 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:04:05.512 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.512 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.513 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.513 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.513 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.513 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.513 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.514 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.514 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.514 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:04:05.515 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.515 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.515 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.515 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.515 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.516 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.516 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.516 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.516 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:05.516 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:04:05.517 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 / Postgres (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:04:09.569 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:09.573 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:09.573 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:09.573 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:09.638 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:09.638 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:09.638 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:04:09.638 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:04:09.638 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
==================
WARNING: DATA RACE
Write at 0x00c0029a4510 by goroutine 564:
  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 0x00c0029a4510 by goroutine 579:
  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 564 (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 579 (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:04:09.640 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.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 / Postgres (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 / Postgres (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:04:13.785 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:13.790 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:13.790 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:13.790 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:13.860 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:13.860 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:13.860 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:04:13.860 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:13.861 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c000042c90 by goroutine 564:
  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 0x00c000042c90 by goroutine 578:
  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 564 (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 578 (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:04:13.863 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 / Postgres (Results)

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

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

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 / Postgres (Results)

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

Failed
Raw output
=== RUN   TestIsFirstUserAccount
{"timestamp":"2024-11-09 11:04:18.154 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:18.158 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:18.158 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:18.158 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:18.225 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:18.225 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:18.225 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:18.226 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:04:18.226 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
==================
WARNING: DATA RACE
Write at 0x00c0008ff410 by goroutine 563:
  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 0x00c0008ff410 by goroutine 580:
  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 563 (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 580 (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:04:18.227 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:18.229 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:04:18.227 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 11:04:18.228 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
=== RUN   TestIsFirstUserAccount/success_one_user
{"timestamp":"2024-11-09 11:04:18.228 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 / Postgres (Results)

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

Failed
Raw output
=== RUN   TestIsFirstUserAccountThunderingHerd
{"timestamp":"2024-11-09 11:04:22.341 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:22.346 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:22.346 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:22.346 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:22.410 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:22.410 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:22.410 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:22.410 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:04:22.410 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
==================
WARNING: DATA RACE
Write at 0x00c000042a10 by goroutine 563:
  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 0x00c000042a10 by goroutine 579:
  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 563 (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 579 (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:04:22.411 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.412 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.412 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.412 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.412 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.412 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.412 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.413 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.413 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.413 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.425 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:04:22.414 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.414 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.414 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.414 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.414 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.415 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.415 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.415 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.415 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.416 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:04:22.416 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.416 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.417 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.417 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.417 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.417 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.417 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.418 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.418 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:22.418 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:04:22.419 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 / Postgres (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:04:26.575 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:26.582 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:26.582 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:26.582 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:26.655 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:26.655 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:26.655 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:26.655 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:04:26.656 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
==================
WARNING: DATA RACE
Write at 0x00c002d26010 by goroutine 564:
  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 0x00c002d26010 by goroutine 581:
  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 564 (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 581 (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:04:26.657 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.14s)

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 / Postgres (Results)

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

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

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 / Postgres (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:04:30.835 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:30.840 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:30.840 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:30.840 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:30.900 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:30.900 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:30.900 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:30.900 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:04:30.900 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
==================
WARNING: DATA RACE
Write at 0x00c00100aa10 by goroutine 564:
  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 0x00c00100aa10 by goroutine 581:
  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 564 (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 581 (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:04:30.902 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 / Postgres (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 / Postgres (Results)

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

Failed
Raw output
=== RUN   TestIsFirstUserAccount
{"timestamp":"2024-11-09 11:04:34.936 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:34.940 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:34.940 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:34.940 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:35.007 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:35.007 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:35.007 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:35.007 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:04:35.008 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c000043910 by goroutine 563:
  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 0x00c000043910 by goroutine 580:
  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 563 (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 580 (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:04:35.009 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:35.011 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:04:35.010 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:04:35.010 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
--- PASS: TestIsFirstUserAccount/success_one_user (0.00s)
{"timestamp":"2024-11-09 11:04:35.011 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
=== 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 / Postgres (Results)

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

Failed
Raw output
=== RUN   TestIsFirstUserAccountThunderingHerd
{"timestamp":"2024-11-09 11:04:39.178 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:39.182 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:39.182 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:39.182 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:39.273 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:39.274 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:39.274 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
==================
WARNING: DATA RACE
Write at 0x00c002da2790 by goroutine 563:
  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 0x00c002da2790 by goroutine 577:
  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 563 (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 577 (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:04:39.275 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.276 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.276 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.276 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.276 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.276 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:04:39.276 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.277 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.277 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
{"timestamp":"2024-11-09 11:04:39.277 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.277 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.277 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.293 Z","level":"info","msg":"stopping websocket hub connections","caller":"platform/web_hub.go:135"}
--- FAIL: TestIsFirstUserAccountThunderingHerd (0.17s)
=== RUN   TestIsFirstUserAccountThunderingHerd/failed_request
--- PASS: TestIsFirstUserAccountThunderingHerd/failed_request (0.00s)
=== RUN   TestIsFirstUserAccountThunderingHerd/success_negative_users
{"timestamp":"2024-11-09 11:04:39.278 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.278 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.278 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.278 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.279 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.279 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.279 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.279 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.279 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.280 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:04:39.280 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.281 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.281 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.281 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.281 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.281 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.282 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.282 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.282 Z","level":"debug","msg":"Fetching user count for first user account check","caller":"platform/config.go:356"}
{"timestamp":"2024-11-09 11:04:39.283 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:04:39.283 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 / Postgres (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:04:43.391 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:43.395 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:43.395 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:43.395 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:43.458 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:43.458 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:43.458 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:43.458 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:04:43.458 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c002ab6790 by goroutine 564:
  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 0x00c002ab6790 by goroutine 581:
  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 564 (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 581 (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:04:43.459 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 / Postgres (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 / Postgres (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:04:47.524 Z","level":"debug","msg":"Advanced logging config not provided for logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:47.529 Z","level":"debug","msg":"Advanced logging config not provided for notification logging","caller":"platform/config.go:165"}
{"timestamp":"2024-11-09 11:04:47.529 Z","level":"info","msg":"Successfully connected to cache backend","caller":"platform/service.go:185","backend":"lru","result":"OK"}
{"timestamp":"2024-11-09 11:04:47.529 Z","level":"info","msg":"Server is initializing...","caller":"platform/service.go:188","go_version":"go1.22.6"}
{"timestamp":"2024-11-09 11:04:47.591 Z","level":"info","msg":"Starting websocket hubs","caller":"platform/web_hub.go:114","number_of_hubs":4}
{"timestamp":"2024-11-09 11:04:47.591 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":1}
{"timestamp":"2024-11-09 11:04:47.591 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":2}
{"timestamp":"2024-11-09 11:04:47.591 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":0}
{"timestamp":"2024-11-09 11:04:47.591 Z","level":"debug","msg":"Hub is starting","caller":"platform/web_hub.go:401","index":3}
==================
WARNING: DATA RACE
Write at 0x00c002a78a10 by goroutine 564:
  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 0x00c002a78a10 by goroutine 578:
  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 564 (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 578 (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:04:47.593 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 / Postgres (Results)

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

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