Skip to content
Snippets Groups Projects

Draft: pkg/step/gitlab: initial take on parsing `step.yml` with syntactic sugar

Closed Kamil Trzciński requested to merge kamil-step-script-syntactic-sugar into main
2 unresolved threads

This tries to implement syntactic sugar syntax that is reduced to base Step Definition, and ensures that base Step Definition is still supported.

Edited by Kamil Trzciński

Merge request reports

Pipeline #1098658005 passed

Pipeline passed for 68fc68a2 on kamil-step-script-syntactic-sugar

Closed by Joe BurnettJoe Burnett 1 year ago (Jan 31, 2024 12:10am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
79 79 int32 exit_code = 7;
80 80 repeated StepResult children_step_results = 8;
81 81 }
82
83 // TODO: This is not good place for this
  • @ayufan yeah, I agree. There isn't a lot of benefit in defining the sugared syntax in proto. It's not long lived like an artifact. It's not minimal. And we want to share the schema easily with the UI. I'm thinking more along the lines of defining it in a Golang struct with annotations and generated a JSON Schema proper. E.g. github.com/invopop/jsonschema which we use already for validating some GitLab Runner configs.

  • Please register or sign in to reply
  • @ayufan and I decided to divide the work on Step Runner by having me take over creation of the sugared syntax mechanism. And he would work on the expression language implementation. I'll probably start over since I won't be putting my schema in proto. So I'm going to close this and open another MR.

  • closed

  • Please register or sign in to reply
    Loading