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

Validator is not showing the stages when rendering workflowgraph for pipeline template #3160

Open
VonnyJap opened this issue Aug 1, 2024 · 1 comment

Comments

@VonnyJap
Copy link
Member

VonnyJap commented Aug 1, 2024

What happened:

Stages is not being rendered in an enclosed section when pipeline template is being validated in a validator. Please see the screenshot.

Screenshot 2024-07-31 at 11 27 10 PM

What you expected to happen:

Stages should be rendered as an enclosed section when validating pipeline template in a validator.

How to reproduce it:
Use the yaml below

namespace: sd-test
name: example-template
version: '1.0.0'
description: An example pipeline template for testing golang files
maintainer: [email protected]
config:
  ## Stages by grouping
  shared:
    image: node:14
    steps:
      - init: echo 'init'
  jobs:
    # triggering-stage:
    #   requires: [~pr, ~commit]
    ci-deploy:
      requires: []
    ci-test:
      requires: [ci-deploy]
    ci-certify:
      requires: [ci-test]
    triggered-by-stage:
      requires: [~stage@integration]

  stages:
    integration:
      requires: [~commit]
      jobs: [ci-deploy, ci-test, ci-certify]
      description: "This stage will deploy the latest application to the CI environment and certify it after the tests have passed."

and put into the validator

@tkyi
Copy link
Member

tkyi commented Aug 5, 2024

I think it's because stageName field is missing in workflowGraph

@tkyi tkyi moved this to Doing in Active Work - Beta Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Doing
Development

No branches or pull requests

2 participants