-
Notifications
You must be signed in to change notification settings - Fork 232
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
using "when condition" at workflow level causes unhelpful error: Error: All Workflows have been filtered from this Pipeline. #577
Comments
Sounds to me that the error is on the server side. right? |
This should really be fixed, as in under certain scenarios this is not actually an issue. I've added a pre-commit hook that triggers a validate against my config and need to disable it now as there's no workflow to run against my conditions.
|
This actively affects our pipeline as well where we're using the environment as a parameter and matching against the branch name to |
Same here. Using the new(ish) setup workflows and path filtering, sometimes there are no workflows to run. Right now I have a useless |
Any update on this one? Due to migrating from the deprecated "scheduled workflows" to "scheduled pipelines" we are also seeing this in some repos. |
Would also be interested in having this changed. We are using conditional workflows in combination with the path filtering orb to skip build steps if only certain files were changed. The current behavior is falsely indicating a failure of the CI pipeline. |
Hi folks, I had same problem. But I detected that it fixed up if remove |
Hi, you're likely seeing this issue because you're running I'm not sure I understand well your use case but we have a ticket in the backlog to let users pass their own pipeline values. That would enable you to do config validation based on pipeline values of your choice so you can create a realistic validation. For e.g. in your case |
Hi @ruben1, the issue is not about The underlying problem is that the |
@mathaeus thanks for the clarification, I routed this to the right internal team to look into it. |
Bumping this. It shouldn't be considered an error if all pipelines have been filtered. |
yeah we have also the same error, in the mean time, do you have any dummy noop implementation, any really light executor? I am using the executor that was already in the job but I would like to know if do you know a really light executor just to "do nothing" in my case it looks like that
|
@ruben1 any update on this? Thank you! :) |
I had the same issue, you should check your regex removing the version will just hide the warning and it is not a solution. As per the official docs:
Solution -> enclose your pattern in ^ and $ and check if it matches what you expect e.g. on regex101. Tip: use single quotes in YAML if you get the following error:
|
I could be misremembering as it has been a while but I believe the issue here is not a pipeline not being picked up, but that CircleCI considers any workflow that does not correlate with a pipeline to be an error and unintentional when some of us are intentionally filtering all pipelines and do not expect it to be an error. |
Hey folks, I escalated this to the internal team that owns that. It hasn't been prioritized as of now. If you have an issue directly related with the CLI, feel free to update here/open issues in the repo but if your issue has to do with running pipelines in the core platform, I'd advise to go through the standard support channels so that there's more visibility into that and a faster solution. |
@ruben1 thanks for the update, what do you consider as "standard support channels"? |
+1 |
Hey, If you are facing this error and you use |
If you want to save a portion of credits for jobs:
noop:
docker:
- image: cimg/base:current
resource_class: small
steps:
- run: echo "noop"
workflows:
noop: # This workflow is required, but will never run. https://github.com/CircleCI-Public/circleci-cli/issues/577
triggers:
- schedule:
cron: "0 0 31 2 0" # February 31st
filters:
branches:
only:
- some_branch_that_will_never_exist_and_nobody_will_create_it
jobs:
- noop |
I thought |
Not yet.
https://discuss.circleci.com/t/scheduled-pipelines-are-here/41684/17 |
Thanks @Kylmakalle, I missed that update. Good to know 👍 |
is there a resolution to this? still experiencing this issue in June 2023 |
Same. My working example is that I want to run workflows when commits are pushed to my default branch, but all other branches are triggered manually via api. The noise from no workflow "errors" becomes almost unbearable. |
I had the same error and the following config worked for me. I hope this helps everyone else here. The problem only happened for me because of a mismatched regex. Basically you need at least one matching workflow to make it work.
|
Meta:
CircleCI CLI Version:
0.1.14915+4e9d967 (release)
Operating System:
CircleCI CLI Diagnostic:
$ circleci diagnostic --- CircleCI CLI Diagnostics --- Debugger mode: false Config found: /Users/zeno.jiricek/.circleci/cli.yml API host: https://circleci.com API endpoint: graphql-unstable OK, got a token. Trying an introspection query on API... Ok. Hello, Zeno Jiricek.
Current behavior:
Expected behavior:
When did this begin / Was this previously working?:
no idea
Additional Information:
nope.
The text was updated successfully, but these errors were encountered: