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

[🐛 Bug]: Workflow builder complains on a workflow which works fine #3872

Open
Matvey-Kuk opened this issue Mar 5, 2025 · 2 comments
Open
Labels
Bug Something isn't working

Comments

@Matvey-Kuk
Copy link
Contributor

Workflow has:

  • No descritpion
  • "Mock" provider used as a base for enrichments
  • Trigger

When I switch to the Builder, it's complaining about all 3 issues while workflow works fine with them. Should it complain?

workflow:
  id: enriching
  name: Enrich
  triggers:
    - type: alerts
      filters:
        - key: source
          value: prometheus
  actions:
    - name: enrich-alert
      provider:
        type: mock
        with:
          enrich_alert:
            - key: enriched_field_name
              value: "{{ alert.labels.pod }}"

Builder doesn't feel well:

Image
Copy link

dosubot bot commented Mar 5, 2025

The workflow builder in "Keep" is likely complaining because the workflow lacks a description and uses a "Mock" provider, which may not be installed. The validation logic in the system checks for these issues:

  1. Missing Description: The workflow requires a description, and if it's missing, an error is generated.

  2. Provider Installation: If the "Mock" provider is not installed, the builder will flag this as an error.

Despite these validation errors, the workflow can still function correctly, as the system allows deployment even with certain types of errors, particularly those related to provider installation, as long as other critical validations like the description are met [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added the Bug Something isn't working label Mar 5, 2025
@Kiryous
Copy link
Contributor

Kiryous commented Mar 6, 2025

@Matvey-Kuk

triggers:
- type: alerts 

is actually invalid, in should be type: alert

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

2 participants