8000 fix(cdsctl): workflow status command (#4954) · ovh/cds@6972662 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 6972662

Browse files
authored
fix(cdsctl): workflow status command (#4954)
1 parent f13ff37 commit 6972662

File tree

6 files changed

+8
-3
lines changed

6 files changed

+8
-3
lines changed

cli/cdsctl/workflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func workflowNodeForCurrentRepo(projectKey, workflowName string) (int64, error)
5656
},
5757
{
5858
Name: "git.hash",
59-
Value: latestCommit.Hash,
59+
Value: latestCommit.LongHash,
6060
},
6161
}
6262

cli/cdsctl/workflow_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func workflowStatusRunWithTrack(v cli.Values) (interface{}, error) {
5555
return nil, fmt.Errorf("unable to get latest commit: %v", err)
5656
}
5757

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

6161
for runNumber == 0 {

engine/worker/internal/action/builtin_coverage_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func TestRunCoverage_Absolute(t *testing.T) {
4949

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

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

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

165167
fi, err := os.Open("results.xml")
166168
require.NoError(t, err)

engine/worker/internal/action/builtin_junit_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func TestRunParseJunitTestResultAction_Absolute(t *testing.T) {
4444

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

4849
fi, err := os.Open("results.xml")
4950
require.NoError(t, err)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ require (
5050
github.com/fortytw2/leaktest v1.2.0 // indirect
5151
github.com/frankban/quicktest v1.6.0 // indirect
5252
github.com/fsamin/go-dump v1.0.9
53-
github.com/fsamin/go-repo v0.1.4
53+
github.com/fsamin/go-repo v0.1.5
5454
github.com/fsamin/go-shredder v0.0.0-20180118184739-b2488aedb5be
5555
github.com/gambol99/go-marathon v0.0.0-20170922093320-ec4a50170df7
5656
github.com/garyburd/redigo v1.6.0 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ github.com/fsamin/go-dump v1.0.9 h1:3MAneAJLnGfKTJtFEAdgrD+QqqK2Hwj7EJUQMQZcDls=
142142
github.com/fsamin/go-dump v1.0.9/go.mod h1:ZgKd2aOXAFFbbFuUgvQhu7mwTlI3d3qnTICMWdvAa9o=
143143
github.com/fsamin/go-repo v0.1.4 h1:P70wyLGKAHeaVDuxHckc1mCM1tsqDsTNGrF/tu1+Z1s=
144144
github.com/fsamin/go-repo v0.1.4/go.mod h1:V7Te54EYyamyQIp6UKfONBbXBlPF4u3C1bvcH7OtdLM=
145+
github.com/fsamin/go-repo v0.1.5 h1:YON5aisDn+0DpJlXvqrPT9/EGv13JgYL3X/3GXRlLhY=
146+
github.com/fsamin/go-repo v0.1.5/go.mod h1:V7Te54EYyamyQIp6UKfONBbXBlPF4u3C1bvcH7OtdLM=
145147
github.com/fsamin/go-shredder v0.0.0-20180118184739-b2488aedb5be h1:UhjSvwE1gxUYfekK9BXZ/LL55we9Avg+2Pt0PIlMYCk=
146148
github.com/fsamin/go-shredder v0.0.0-20180118184739-b2488aedb5be/go.mod h1:kuiNcf1lKxl4isIY6bHxbBatpLD43c2RKWIV/AGlhXY=
147149
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=

0 commit comments

Comments
 (0)
0