kumahq / kuma

🐻 The multi-zone service mesh for containers, Kubernetes and VMs. Built with Envoy. CNCF Sandbox Project.
https://kuma.io/install
Apache License 2.0
3.63k stars 331 forks source link

Flake in store_test #9506

Open lahabana opened 7 months ago

lahabana commented 7 months ago

What happened?

------------------------------
• [FAILED] [3.981 seconds]
PostgresStore template Store: pq Update() [It] should update an existing resource
github.com/kumahq/kuma/pkg/test/store/store_test_template.go:131

  Timeline >>
  2024-03-05T18:03:12Z  INFO    config  skipping reading config from file
  "level"=0 "msg"="Connecting and creating database to container id: 4bb43e0e0e62dd38d28ead51a6329d3edcb75410b89ae348b0a067a177579192, port 5432 mapped to host port: 32771; db name kuma_dd1f9fd37ebd4c91987a2b0a557b0b7b"
  "level"=0 "msg"="Database successfully created and started" "name"="kuma_dd1f9fd37ebd4c91987a2b0a557b0b7b"
  2024-03-05T18:03:12Z  INFO    config  skipping reading config from file
  "level"=0 "msg"="Connecting and creating database to container id: 4bb43e0e0e62dd38d28ead51a6329d3edcb75410b89ae348b0a067a177579192, port 5432 mapped to host port: 32771; db name kuma_754db260833f4db49515ec3fa357aecf"
  "level"=0 "msg"="Database successfully created and started" "name"="kuma_754db260833f4db49515ec3fa357aecf"
  2024-03-05T18:03:13Z  INFO    config  skipping reading config from file
  "level"=0 "msg"="Connecting and creating database to container id: 4bb43e0e0e62dd38d28ead51a6329d3edcb75410b89ae348b0a067a177579192, port 5432 mapped to host port: 32771; db name kuma_0d1f3fd1d24e4635a193aff576cee7cb"
  "level"=0 "msg"="Database successfully created and started" "name"="kuma_0d1f3fd1d24e4635a193aff576cee7cb"
  2024-03-05T18:03:13Z  INFO    config  skipping reading config from file
  "level"=0 "msg"="Connecting and creating database to container id: 4bb43e0e0e62dd38d28ead51a6329d3edcb75410b89ae348b0a067a177579192, port 5432 mapped to host port: 32771; db name kuma_c829aa51a6ad4128a561a96f23dedb01"
  "level"=0 "msg"="Database successfully created and started" "name"="kuma_c829aa51a6ad4128a561a96f23dedb01"
  2024-03-05T18:03:13Z  INFO    config  skipping reading config from file
  "level"=0 "msg"="Connecting and creating database to container id: 4bb43e0e0e62dd38d28ead51a6329d3edcb75410b89ae348b0a067a177579192, port 5432 mapped to host port: 32771; db name kuma_514734ef3eb9490f97bb2ffd48424478"
  "level"=0 "msg"="Database successfully created and started" "name"="kuma_514734ef3eb9490f97bb2ffd48424478"
  2024-03-05T18:03:14Z  INFO    config  skipping reading config from file
  "level"=0 "msg"="Connecting and creating database to container id: 4bb43e0e0e62dd38d28ead51a6329d3edcb75410b89ae348b0a067a177579192, port 5432 mapped to host port: 32771; db name kuma_7fbdebf0e69d454cbc346d656287148c"
  2024-03-05T18:03:14Z  INFO    postgres-event-listener-pgx started
  2024-03-05T18:03:14Z  INFO    postgres-event-listener start monitoring
  2024-03-05T18:03:14Z  ERROR   postgres-event-listener failed to listen on events  {"error": "error getting connection: failed to connect to `host=localhost user=kuma database=kuma_c9391220c55[540](https://github.com/kumahq/kuma/actions/runs/8160591183/job/22307689546#step:6:541)ce9d88fa83027aed54`: dial error (dial tcp [::1]:32770: connect: connection refused)", "errorVerbose": "failed to connect to `host=localhost user=kuma database=kuma_c9391220c55540ce9d88fa83027aed54`: dial error (dial tcp [::1]:32770: connect: connection refused)\nerror getting connection\ngithub.com/kumahq/kuma/pkg/plugins/common/postgres.(*PgxListener).handleNotifications\n\tgithub.com/kumahq/kuma/pkg/plugins/common/postgres/pgx_listener.go:79\ngithub.com/kumahq/kuma/pkg/plugins/common/postgres.(*PgxListener).run\n\tgithub.com/kumahq/kuma/pkg/plugins/common/postgres/pgx_listener.go:67\nruntime.goexit\n\truntime/asm_amd64.s:1650"}
  github.com/kumahq/kuma/pkg/plugins/resources/postgres/events.(*listener).Start
    github.com/kumahq/kuma/pkg/plugins/resources/postgres/events/listener.go:55
  github.com/kumahq/kuma/pkg/core/runtime/component.(*resilientComponent).Start.func1
    github.com/kumahq/kuma/pkg/core/runtime/component/resilient.go:43
  2024-03-05T18:03:14Z  INFO    postgres-event-listener-pgx stopped
  2024-03-05T18:03:14Z  ERROR   postgres-event-listener-component   component terminated with an error  {"generationID": 20, "error": "error getting connection: failed to connect to `host=localhost user=kuma database=kuma_c9391220c55540ce9d88fa83027aed54`: dial error (dial tcp [::1]:32770: connect: connection refused)", "errorVerbose": "failed to connect to `host=localhost user=kuma database=kuma_c9391220c55540ce9d88fa83027aed54`: dial error (dial tcp [::1]:32770: connect: connection refused)\nerror getting connection\ngithub.com/kumahq/kuma/pkg/plugins/common/postgres.(*PgxListener).handleNotifications\n\tgithub.com/kumahq/kuma/pkg/plugins/common/postgres/pgx_listener.go:79\ngithub.com/kumahq/kuma/pkg/plugins/common/postgres.(*PgxListener).run\n\tgithub.com/kumahq/kuma/pkg/plugins/common/postgres/pgx_listener.go:67\nruntime.goexit\n\truntime/asm_amd64.s:1650"}
  github.com/kumahq/kuma/pkg/core/runtime/component.(*resilientComponent).Start
    github.com/kumahq/kuma/pkg/core/runtime/component/resilient.go:51
  github.com/kumahq/kuma/pkg/plugins/resources/postgres_test.setupListeners.func1
    github.com/kumahq/kuma/pkg/plugins/resources/postgres/listener_test.go:133
  "level"=0 "msg"="Database successfully created and started" "name"="kuma_7fbdebf0e69d454cbc346d656287148c"
  2024-03-05T18:03:14Z  INFO    config  skipping reading config from file
  "level"=0 "msg"="Connecting and creating database to container id: 4bb43e0e0e62dd38d28ead51a6329d3edcb7[541](https://github.com/kumahq/kuma/actions/runs/8160591183/job/22307689546#step:6:542)0b89ae348b0a067a177579192, port [543](https://github.com/kumahq/kuma/actions/runs/8160591183/job/22307689546#step:6:544)2 mapped to host port: 32771; db name kuma_7b7364dd652742d3a0d422a1264ba784"
  "level"=0 "msg"="Database successfully created and started" "name"="kuma_7b7364dd652742d3a0d422a1264ba784"
  2024-03-05T18:03:15Z  INFO    config  skipping reading config from file
  "level"=0 "msg"="Connecting and creating database to container id: 4bb43e0e0e62dd38d28ead51a6329d3edcb75410b89ae348b0a067a177579192, port 5432 mapped to host port: 32771; db name kuma_511aa4f2dc7d4940a0dc50b948d0[544](https://github.com/kumahq/kuma/actions/runs/8160591183/job/22307689546#step:6:545)9"
  "level"=0 "msg"="Database successfully created and started" "name"="kuma_511aa4f2dc7d4940a0dc50b948d05449"
  [FAILED] in [It] - github.com/kumahq/kuma/pkg/test/store/store_test_template.go:173 @ 03/05/24 18:03:16.064
  << Timeline

  [FAILED] Expected
      <int>: 859
  to equal
      <int>: 858
  In [It] at: github.com/kumahq/kuma/pkg/test/store/store_test_template.go:173 @ 03/05/24 18:03:16.064

https://github.com/kumahq/kuma/actions/runs/8160591183/job/22307689546

I don't remember seeing unit tests flake anytime.

github-actions[bot] commented 3 months ago

This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. If you think this issue is still relevant, please comment on it or attend the next triage meeting.

github-actions[bot] commented 2 weeks ago

This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. If you think this issue is still relevant, please comment on it or attend the next triage meeting.

slonka commented 2 weeks ago

Has anyone seen this recently? 🤔