Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loading on manual run on branch without pipelines #4422

Open
3 tasks done
zc-devs opened this issue Nov 21, 2024 · 0 comments
Open
3 tasks done

Infinite loading on manual run on branch without pipelines #4422

zc-devs opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zc-devs
Copy link
Contributor

zc-devs commented Nov 21, 2024

Component

server, web-ui

Describe the bug

Trying to run a pipeline manually on a branch, which doesn't have any pipelines, I get infinite loading and no errors.

Steps to reproduce

  1. Woodpecker + Gitea
  2. Create empty repository
  3. Enable it in Woodpecker
  4. Go to repo, hit "Run pipeline"
  5. Select whatever branch you want, which does not contain Woodepecker's configs (main in my case)
  6. Hit "Run pipeline"
  7. See infinite loading and no errors
    Screenshot 2024-11-21 141347
  8. See errors in the server logs

{"level":"trace","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/router.go:43","message":"[POST] /api/repos/2/pipelines"}
{"level":"debug","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/session/repo.go:157","message":"user1 granted &{UserID:1 RepoID:2 Repo:<nil> Pull:true Push:true Admin:true Synced:1732187329 Created:1721072630 Updated:1732187329} permission to wp/test"}
{"level":"trace","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/services/config/forge.go:98","message":"configFetcher[wp/test]: user did not define own config, following default procedure"}
{"level":"trace","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/services/config/forge.go:145","message":"fetching .woodpecker/ from forge"}
{"level":"trace","error":"configFetcher: fallback did not find config: configs not found: .woodpecker/, .woodpecker.yaml, .woodpecker.yml","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/services/config/forge.go:62","message":"Fetching config files: Attempt #1 failed"}
{"level":"trace","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/services/config/forge.go:98","message":"configFetcher[wp/test]: user did not define own config, following default procedure"}
{"level":"trace","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/services/config/forge.go:145","message":"fetching .woodpecker/ from forge"}
{"level":"trace","error":"configFetcher: fallback did not find config: configs not found: .woodpecker/, .woodpecker.yaml, .woodpecker.yml","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/services/config/forge.go:62","message":"Fetching config files: Attempt #2 failed"}
{"level":"trace","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/services/config/forge.go:98","message":"configFetcher[wp/test]: user did not define own config, following default procedure"}
{"level":"trace","time":"2024-11-21T11:13:03Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/services/config/forge.go:145","message":"fetching .woodpecker/ from forge"}
{"level":"trace","error":"configFetcher: fallback did not find config: configs not found: .woodpecker/, .woodpecker.yaml, .woodpecker.yml","time":"2024-11-21T11:13:04Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/services/config/forge.go:62","message":"Fetching config files: Attempt #3 failed"}
{"level":"debug","repo":"wp/test","error":"configFetcher: fallback did not find config: configs not found: .woodpecker/, .woodpecker.yaml, .woodpecker.yml","time":"2024-11-21T11:13:04Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/pipeline/create.go:83","message":"cannot find config '' in 'main' with user: 'user1'"}
{"level":"debug","ip":"1.2.3.4","latency":415.194708,"method":"POST","path":"/api/repos/2/pipelines","status":204,"time":"2024-11-21T11:13:04Z","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0","time":"2024-11-21T11:13:04Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/router/middleware/logger.go:59"}

Expected behavior

  1. No infinite loading
  2. Some error shows up
  3. No retries on the server-side

Alternative 1: "Run pipeline" button is disabled when branch without config is selected.
Alternative 1: There is no branches in the list, which do not contain WP configs.

System Info

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

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@zc-devs zc-devs added the bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant