Skip to content

Commit 89bbf2a

Browse files
Merge pull request #17751 from deads2k/rebase-02-deployment-check
Automatic merge from submit-queue. re-enable deployment test fixes #17750. Adding debugging for a start.
2 parents 2b1b989 + 56ac0bf commit 89bbf2a

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

pkg/oc/cli/cmd/rollout/cancel.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,14 @@ func (o CancelOptions) Run() error {
136136
return runtime.Encode(o.Encoder, rc)
137137
})
138138

139-
if len(patches) == 0 {
139+
allPatchesEmpty := true
140+
for _, patch := range patches {
141+
if len(patch.Patch) > 0 {
142+
allPatchesEmpty = false
143+
break
144+
}
145+
}
146+
if allPatchesEmpty {
140147
kcmdutil.PrintSuccess(o.Mapper, false, o.Out, info.Mapping.Resource, info.Name, false, "already cancelled")
141148
return false
142149
}

test/extended/util/test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ var (
263263
// consistent 500 errors
264264
"should expose prometheus metrics for a route",
265265
"should expose the profiling endpoints",
266-
// super flaky
267-
"should only deploy the last deployment",
268266

269267
`\[Skipped\]`,
270268
`\[Slow\]`,

test/testdata/failing-dc-mid.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
strategy:
1010
type: Recreate
1111
recreateParams:
12-
timeoutSeconds: 40
12+
timeoutSeconds: 20
1313
mid:
1414
failurePolicy: Abort
1515
execNewPod:

test/testdata/failing-dc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
intervalSeconds: 1
1616
maxSurge: 25%
1717
maxUnavailable: 25%
18-
timeoutSeconds: 40
18+
timeoutSeconds: 5
1919
updatePeriodSeconds: 1
2020
pre:
2121
failurePolicy: Abort

0 commit comments

Comments
 (0)