Skip to content

Commit

Permalink
Merge pull request #17751 from deads2k/rebase-02-deployment-check
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

 re-enable deployment test

fixes #17750.

Adding debugging for a start.
  • Loading branch information
openshift-merge-robot authored Dec 15, 2017
2 parents 2b1b989 + 56ac0bf commit 89bbf2a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 8 additions & 1 deletion pkg/oc/cli/cmd/rollout/cancel.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,14 @@ func (o CancelOptions) Run() error {
return runtime.Encode(o.Encoder, rc)
})

if len(patches) == 0 {
allPatchesEmpty := true
for _, patch := range patches {
if len(patch.Patch) > 0 {
allPatchesEmpty = false
break
}
}
if allPatchesEmpty {
kcmdutil.PrintSuccess(o.Mapper, false, o.Out, info.Mapping.Resource, info.Name, false, "already cancelled")
return false
}
Expand Down
2 changes: 0 additions & 2 deletions test/extended/util/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@ var (
// consistent 500 errors
"should expose prometheus metrics for a route",
"should expose the profiling endpoints",
// super flaky
"should only deploy the last deployment",

`\[Skipped\]`,
`\[Slow\]`,
Expand Down
2 changes: 1 addition & 1 deletion test/testdata/failing-dc-mid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
strategy:
type: Recreate
recreateParams:
timeoutSeconds: 40
timeoutSeconds: 20
mid:
failurePolicy: Abort
execNewPod:
Expand Down
2 changes: 1 addition & 1 deletion test/testdata/failing-dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 40
timeoutSeconds: 5
updatePeriodSeconds: 1
pre:
failurePolicy: Abort
Expand Down

0 comments on commit 89bbf2a

Please sign in to comment.