Skip to content

Commit

Permalink
fix(cdsctl): workflow status command (#4954)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamin committed Feb 4, 2020
1 parent f13ff37 commit 6972662
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/cdsctl/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func workflowNodeForCurrentRepo(projectKey, workflowName string) (int64, error)
},
{
Name: "git.hash",
Value: latestCommit.Hash,
Value: latestCommit.LongHash,
},
}

Expand Down
2 changes: 1 addition & 1 deletion cli/cdsctl/workflow_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func workflowStatusRunWithTrack(v cli.Values) (interface{}, error) {
return nil, fmt.Errorf("unable to get latest commit: %v", err)
}

currentDisplay.Printf("Looking for %s...\n", cli.Magenta(latestCommit.Hash))
currentDisplay.Printf("Looking for %s...\n", cli.Magenta(latestCommit.LongHash))
currentDisplay.Do(context.Background())

for runNumber == 0 {
Expand Down
2 changes: 2 additions & 0 deletions engine/worker/internal/action/builtin_coverage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func TestRunCoverage_Absolute(t *testing.T) {

wk, ctx := SetupTest(t)
assert.NoError(t, ioutil.WriteFile("results.xml", []byte(cobertura_result), os.ModePerm))
defer os.RemoveAll("results.xml")

fi, err := os.Open("results.xml")
require.NoError(t, err)
Expand Down Expand Up @@ -161,6 +162,7 @@ func TestRunCoverageMinimumFail(t *testing.T) {

wk, ctx := SetupTest(t)
assert.NoError(t, ioutil.WriteFile("results.xml", []byte(cobertura_result), os.ModePerm))
defer os.RemoveAll("results.xml")

fi, err := os.Open("results.xml")
require.NoError(t, err)
Expand Down
1 change: 1 addition & 0 deletions engine/worker/internal/action/builtin_junit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func TestRunParseJunitTestResultAction_Absolute(t *testing.T) {

wk, ctx := SetupTest(t)
assert.NoError(t, ioutil.WriteFile("results.xml", []byte(fileContent), os.ModePerm))
defer os.RemoveAll("results.xml")

fi, err := os.Open("results.xml")
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ require (
github.com/fortytw2/leaktest v1.2.0 // indirect
github.com/frankban/quicktest v1.6.0 // indirect
github.com/fsamin/go-dump v1.0.9
github.com/fsamin/go-repo v0.1.4
github.com/fsamin/go-repo v0.1.5
github.com/fsamin/go-shredder v0.0.0-20180118184739-b2488aedb5be
github.com/gambol99/go-marathon v0.0.0-20170922093320-ec4a50170df7
github.com/garyburd/redigo v1.6.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ github.com/fsamin/go-dump v1.0.9 h1:3MAneAJLnGfKTJtFEAdgrD+QqqK2Hwj7EJUQMQZcDls=
github.com/fsamin/go-dump v1.0.9/go.mod h1:ZgKd2aOXAFFbbFuUgvQhu7mwTlI3d3qnTICMWdvAa9o=
github.com/fsamin/go-repo v0.1.4 h1:P70wyLGKAHeaVDuxHckc1mCM1tsqDsTNGrF/tu1+Z1s=
github.com/fsamin/go-repo v0.1.4/go.mod h1:V7Te54EYyamyQIp6UKfONBbXBlPF4u3C1bvcH7OtdLM=
github.com/fsamin/go-repo v0.1.5 h1:YON5aisDn+0DpJlXvqrPT9/EGv13JgYL3X/3GXRlLhY=
github.com/fsamin/go-repo v0.1.5/go.mod h1:V7Te54EYyamyQIp6UKfONBbXBlPF4u3C1bvcH7OtdLM=
github.com/fsamin/go-shredder v0.0.0-20180118184739-b2488aedb5be h1:UhjSvwE1gxUYfekK9BXZ/LL55we9Avg+2Pt0PIlMYCk=
github.com/fsamin/go-shredder v0.0.0-20180118184739-b2488aedb5be/go.mod h1:kuiNcf1lKxl4isIY6bHxbBatpLD43c2RKWIV/AGlhXY=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
Expand Down

0 comments on commit 6972662

Please sign in to comment.