[RELENG-152] Improve branch cutting script for new branch creation Created: 07/Aug/20  Updated: 07/Aug/20

Status: In Progress
Project: releng
Component/s: Jenkins Job Builder
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Medium
Reporter: Thanh Ha (zxiiro) Assignee: Thanh Ha (zxiiro)
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The current branch cutting script is an AWK script that makes a bunch of assumptions that often require additional tuning from the releng team to make work every time we perform branch cutting.

Rather than using an AWK script that does not understand the structure of YAML we should develop more specialized tools to handle YAML updates in a smarter fashion to minimize the amount of things that need to be tuned after the branch cutting script is complete.

We can use something like the python yaml libraries to handle this and "prettier" to auto-format the YAML files in the releng/builder repo.



 Comments   
Comment by Thanh Ha (zxiiro) [ 07/Aug/20 ]

Proposed 2 patches to handle auto-formatting of the YAML files with the use of the "prettier" tool. Once those patches are merged we should have an easier time parsing YAML files using a Python library to extract and update files for our various use cases.

Generated at Wed Feb 07 20:37:37 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.