-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Woodpecker creates empty pipelines #2901
Comments
What do you mean by "empty"? Are all configs filtered out? Or is there no config in the repo? |
As you can see in the screenshot for the PR event on the same commit a Pipeline is running. There is a repo config but WP creates an empty job for the renovate branch in that example. |
So the issue seems to be either fetching configs from the forge (which should make the pipeline failing) or persisting the config to DB. Can you check the logs? (Maybe also with debug logs) |
Can still reproduce this on latest next release, see https://ci.rknet.org/repos/5 It creates an empty pipeline to push events to any branch. The Woodpecker repo in the config has not changed. You can find the config here https://gitea.rknet.org/container/hugo/src/branch/main/.woodpecker This config should ignore any push action to none-default branches. For whatever reason, the push action triggers "something" which leads to an empty pipeline that never starts. |
Nothing in the regular logs. Will switch to debug later and check again. I'll also try to reproduce it with a local dev setup. |
Could you check if it works after removing the |
I'm also able to reproduce this on a local dev setup with woodpecker-main + gitea 1.21
|
Any idea what PR could have introduced this? As the latest working version for me is |
Found it:
Related to #2876 |
Debug log while the empty pipeline is being created in the UI:
|
The empty pipelines are not added to the queue, but as they are persisted to the DB now, even if they are skipped anyway, the method GetPipelineList used by the Don't know what's the best way to handle it, I'm also not sure if the original fix from #2876 is the right way, do we really want to persist every pipeline even if they are ignored/empty? |
No, that's a regression. However, we must persist it first to get the correct env vars. I can check what could be done here, not sure when I have time though (maybe this afternoon but I can't guarantee) |
Fixes: #2901 --------- Co-authored-by: Lauris BH <lauris@nix.lv>
Component
server
Describe the bug
Woodpecker creates empty pipelines that never start because they are empty:
Issue occurs in
next-621eed6205
while reverting tonext-111a0b4ea5
fixed it.System Info
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: