File tree Expand file tree Collapse file tree 15 files changed +246
-173
lines changed
Expand file tree Collapse file tree 15 files changed +246
-173
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ package pipeline
55import (
66 "github.com/sirupsen/logrus"
77
8- "github.com/go-vela/server/compiler/types/yaml"
8+ "github.com/go-vela/server/compiler/types/yaml/yaml "
99)
1010
1111func stages (pipelineType string ) * yaml.Build {
Original file line number Diff line number Diff line change 66 "reflect"
77 "testing"
88
9- "github.com/go-vela/server/compiler/types/yaml"
9+ "github.com/go-vela/server/compiler/types/yaml/yaml "
1010)
1111
1212func TestPipeline_stages (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ package pipeline
55import (
66 "github.com/sirupsen/logrus"
77
8- "github.com/go-vela/server/compiler/types/yaml"
8+ "github.com/go-vela/server/compiler/types/yaml/yaml "
99)
1010
1111func steps (pipelineType string ) * yaml.Build {
Original file line number Diff line number Diff line change 66 "reflect"
77 "testing"
88
9- "github.com/go-vela/server/compiler/types/yaml"
9+ "github.com/go-vela/server/compiler/types/yaml/yaml "
1010)
1111
1212func TestPipeline_steps (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import (
1616 api "github.com/go-vela/server/api/types"
1717 "github.com/go-vela/server/compiler"
1818 "github.com/go-vela/server/compiler/types/pipeline"
19- "github.com/go-vela/server/compiler/types/yaml"
19+ "github.com/go-vela/server/compiler/types/yaml/yaml "
2020 "github.com/go-vela/server/constants"
2121)
2222
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
1313 "github.com/go-vela/cli/internal/output"
1414 "github.com/go-vela/sdk-go/vela"
1515 api "github.com/go-vela/server/api/types"
16- pyaml "github.com/go-vela/server/compiler/types/yaml"
16+ pyaml "github.com/go-vela/server/compiler/types/yaml/yaml "
1717 "github.com/go-vela/server/constants"
1818)
1919
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ type Config struct {
2929type Compiler struct {
3030 CloneImage * string
3131 TemplateDepth * int
32- StarlarkExecLimit * uint64
32+ StarlarkExecLimit * int64
3333}
3434
3535// Queue represents the compiler configurations used
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ func (c *Config) UpdateFromFile(client *vela.Client) error {
224224 }
225225
226226 if f .Compiler .StarlarkExecLimit != nil {
227- s .Compiler .StarlarkExecLimit = vela .UInt64 (f .Compiler .GetStarlarkExecLimit ())
227+ s .Compiler .StarlarkExecLimit = vela .Int64 (f .Compiler .GetStarlarkExecLimit ())
228228 }
229229 }
230230
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ func TestSettings_Config_Update(t *testing.T) {
4444 Compiler : Compiler {
4545 CloneImage : vela .String ("test" ),
4646 TemplateDepth : vela .Int (1 ),
47- StarlarkExecLimit : vela .UInt64 (1 ),
47+ StarlarkExecLimit : vela .Int64 (1 ),
4848 },
4949 },
5050 },
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func TestSettings_Config_Validate(t *testing.T) {
3939 config : & Config {
4040 Action : "update" ,
4141 Compiler : Compiler {
42- StarlarkExecLimit : vela .UInt64 (1 ),
42+ StarlarkExecLimit : vela .Int64 (1 ),
4343 },
4444 Output : "" ,
4545 },
You can’t perform that action at this time.
0 commit comments