woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.3k stars 370 forks source link

New repos list triggers rate limiting #4427

Open zc-devs opened 10 hours ago

zc-devs commented 10 hours ago

Component

server, web-ui

Describe the bug

Testing new repo list, sometimes I get errors : max connections reached: 10. Having 7 repos:

  1. for each repo there are requests to pipeline endpoint
  2. somehow they are doubled, so I have 14 requests to pipeline endpoint

Steps to reproduce

  1. Woodpecker + Gitea
  2. Create some repos in Gitea, 10 for example
  3. Enable them in Woodpecker
  4. Open repositories list
  5. Optionally, see : max connections reached: 10 errors
  6. Open browser console, network
  7. See, that UI tries to load pipeline info for each repo twice Screenshot 2024-11-21 133824

Expected behavior

System Info

WP `next-350082cd19`, Gitea `1.22.3`, Postgres `16`, Kubernetes `v1.30.6+k3s1`

Additional context

https://github.com/woodpecker-ci/woodpecker/pull/4386#issuecomment-2490781907

Validations