Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

refactor: swap yaml libraries #91

Merged
merged 9 commits into from
Jan 11, 2021
Merged

refactor: swap yaml libraries #91

merged 9 commits into from
Jan 11, 2021

Conversation

kneal
Copy link
Contributor

@kneal kneal commented Dec 2, 2020

This PR is towards an effort to consolidate on a single Yaml library for unmarshaling pipelines.

The plan is to work towards goccy/go-yaml being the core library.

It has the desired feature we would like to use in the compiler to enhance the error handling for users passing improper pipelines.

depends on: go-vela/types#118 go-vela/types#126
closes: go-vela/community#9

@kneal kneal added enhancement Indicates an improvement to a feature dependencies Indicates a change to dependencies labels Dec 2, 2020
@kneal kneal self-assigned this Dec 2, 2020
@codecov
Copy link

codecov bot commented Dec 2, 2020

Codecov Report

Merging #91 (bb27664) into master (3f2f8a7) will decrease coverage by 1.84%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #91      +/-   ##
==========================================
- Coverage   73.34%   71.50%   -1.85%     
==========================================
  Files          19       18       -1     
  Lines         818      779      -39     
==========================================
- Hits          600      557      -43     
- Misses        143      145       +2     
- Partials       75       77       +2     
Impacted Files Coverage Δ
compiler/native/substitute.go 63.63% <ø> (ø)
template/native/render.go 100.00% <ø> (ø)
template/starlark/render.go 46.00% <ø> (ø)
compiler/native/compile.go 66.94% <69.23%> (-1.76%) ⬇️
compiler/native/parse.go 100.00% <100.00%> (ø)

@kneal kneal marked this pull request as ready for review January 5, 2021 19:20
@kneal kneal requested a review from a team as a code owner January 5, 2021 19:20
@@ -30,17 +32,17 @@
}

// Compile produces an executable pipeline from a yaml configuration.
func (c *client) Compile(v interface{}) (*pipeline.Build, error) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
Function 'Compile' has too many statements (73 > 50) (funlen)

Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Indicates a change to dependencies enhancement Indicates an improvement to a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement and test alternative yaml library (goccy/yaml)
4 participants