Update yml validation to be more clear
What does this MR do and why?
Resolves #362453 (closed)
We want to update the pipeline editor validator to be more clear. In the case of a circular include, we now provide a link to the troubleshooting documentation. More info can be found in the issue.
All other validation variants should remain the same for this component. Needed to refactor the file in order to support any inline links.
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- Create a new project
cicd-circular
- Create a file
file1.yml
:
include:
- file2.yml
- Create a file
file2.yml
:
include:
- file1.yml
- Create a file
.gitlab-ci.yml
:
include:
- file1.yml
- Go to CI/CD Editor. Note after a period of time the message "Configuration validation currently not available." is displayed.
- Go to Repository, Files, click on
.gitlab-ci.yml
and then click on Edit. Make a minor change and click Commit Changes. After a period, the error is displayed.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Briley Sandlin