Skip to content

Adds ci config linting resolver

Laura Montemayor requested to merge lm-add-ci-config-0 into master

What does this MR do?

Adds a mutation config_lint that lints the ci_config file and returns a structured object:

{
  stages: [
    {
      name: "test",
      groups: [
        {
          name: "jest",
          size: 2,
          jobs: [
            { name: "jest 1/2" },
            { name: "jest 2/2" },
          ],
        },
        { 
          name: "rspec",
          size: 1,
          jobs: [
            { name: "rspec" }
          ]
        },
      ]
    },
    {
      name: "post-test",
      groups: [
        {
          name: "jest-coverage"
          size: 1,
          jobs: [
            { name: "jest-coverage", needs: ["jest"] }
          ]
        },
        { ... }
      ]
    },
  ]
}

This mutation was created with the intention of letting the user visualize the graph when they are linting.

Does this MR meet the acceptance criteria?

Conformity

#273494 (closed)

Edited by Laura Montemayor

Merge request reports

Loading