Skip to content

SCM/CI workflows: YAML is too unergonomic and difficult to validate #19401

@mia-0

Description

@mia-0

Is your feature request related to a problem? Please describe.
Gonna be honest, YAML has bad ergonomics. It’s too easy to get the whitespace wrong in some line, or forget to have a - somewhere, and then the webhook endpoint just responds with a 500.

Minimal syntax is all well and good, but go too far and it becomes ambiguous. Users should not have to trigger runs to find out if they formatted their workflows in the way OBS expects, and it should not be this easy for incorrect nesting to be hiding in plain sight because of a missing space character.

Describe the solution you'd like
Use a format with obvious nesting, item and value syntax that may be more verbose but makes it easier to “express what you mean”. TOML, for example.

Describe alternatives you've considered
More detailed documentation and tools/API endpoints to validate workflows maybe. But those would not fix YAML’s problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureFrontendThings related to the OBS RoR appscm-ciThings related to the scm-ci feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions