[SERVER-39455] lint the evergreen.yml file Created: 08/Feb/19  Updated: 29/Oct/23  Resolved: 21/Feb/19

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Improvement Priority: Major - P3
Reporter: David Bradford (Inactive) Assignee: David Bradford (Inactive)
Resolution: Fixed Votes: 0
Labels: techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: DAG 2019-03-11
Participants:
Story Points: 2

 Description   

It can be really easy to introduce subtle bugs in the the evergreen.yml file (See SERVER-38822) as an example. Using a yaml linter could catch some of these issues. We should create an evergreen task to run one and as part of a required builder.

This one https://github.com/adrienverge/yamllint seems to work and can be installed as a pip module. We would want to run it in relaxed mode.

yamllint -d relaxed etc/evergreen.yml



 Comments   
Comment by Githook User [ 21/Feb/19 ]

Author:

{'name': 'David Bradford', 'email': 'david.bradford@mongodb.com', 'username': 'dbradf'}

Message: SERVER-39455: Lint yaml files
Branch: master
https://github.com/mongodb/mongo/commit/f96809265b1cac1643d007ae0d80c3ceb1f594ee

Comment by David Bradford (Inactive) [ 14/Feb/19 ]

We should also see about linting all the yaml files in the repo.

Generated at Thu Feb 08 04:52:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.