Skip to content

Commit 161d9df

Browse files
authored
Merge branch 'v8' into dependabot/go_modules/v8/dependencies-22afe3916f
2 parents e0833e4 + 1d84041 commit 161d9df

File tree

15 files changed

+109
-37
lines changed

15 files changed

+109
-37
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
tags:
66
- "v9.*"
77
- "v8.*"
8-
- "v7.*"
98
pull_request:
109
types:
1110
- opened
@@ -15,7 +14,6 @@ on:
1514
- main
1615
- v9
1716
- v8
18-
- v7
1917
paths-ignore:
2018
- "doc/**"
2119
- ".gitpod.yml"

.github/workflows/tests-integration.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ on:
5656
push:
5757
tags:
5858
- "v8.*"
59-
- "v7.*"
6059
pull_request_target:
6160
branches:
6261
- main
6362
- v8
64-
- v7
6563
paths-ignore:
6664
- "doc/**"
6765
- ".gitpod.yml"

.github/workflows/tests-unit.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ on:
1313
tags:
1414
- "v9.*"
1515
- "v8.*"
16-
- "v7.*"
1716
pull_request:
1817
branches:
1918
- main
2019
- v9
2120
- v8
22-
- v7
2321
paths-ignore:
2422
- "doc/**"
2523
- ".gitpod.yml"

.github/workflows/util-code-quality.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
branches:
77
- main
88
- v8
9-
- v7
109
schedule:
1110
- cron: '45 5 * * *'
1211

actor/v7action/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (actor Actor) GetLatestActiveDeploymentForApp(appGUID string) (resources.De
2929
return resources.Deployment{}, Warnings(warnings), actionerror.ActiveDeploymentNotFoundError{}
3030
}
3131

32-
return resources.Deployment(ccDeployments[0]), Warnings(warnings), nil
32+
return ccDeployments[0], Warnings(warnings), nil
3333
}
3434

3535
func (actor Actor) CancelDeployment(deploymentGUID string) (Warnings, error) {

api/cloudcontroller/ccv3/application_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ var _ = Describe("Application", func() {
217217
})
218218

219219
When("lifecycle type buildpack is provided", func() {
220-
221220
When("other buildpacks are provided", func() {
222221
BeforeEach(func() {
223222
appBytes = []byte(`{"lifecycle":{"data":{"buildpacks":["some-buildpack"]},"type":"buildpack"}}`)

api/cloudcontroller/ccv3/deployment_test.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,13 @@ var _ = Describe("Deployment", func() {
339339
"strategy": "canary",
340340
"status": {
341341
"value": "FINALIZED",
342-
"reason": "SUPERSEDED"
342+
"reason": "SUPERSEDED",
343+
"canary": {
344+
"steps": {
345+
"current": 4,
346+
"total": 5
347+
}
348+
}
343349
},
344350
"droplet": {
345351
"guid": "some-droplet-guid"
@@ -374,6 +380,8 @@ var _ = Describe("Deployment", func() {
374380
Expect(deployment.StatusValue).To(Equal(constant.DeploymentStatusValueFinalized))
375381
Expect(deployment.StatusReason).To(Equal(constant.DeploymentStatusReasonSuperseded))
376382
Expect(deployment.Strategy).To(Equal(constant.DeploymentStrategyCanary))
383+
Expect(deployment.CanaryStatus.Steps.CurrentStep).To(Equal(4))
384+
Expect(deployment.CanaryStatus.Steps.TotalSteps).To(Equal(5))
377385
})
378386
})
379387

command/v7/push_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ func (cmd PushCommand) ValidateFlags() error {
579579
case cmd.Strategy.Name != constant.DeploymentStrategyDefault && cmd.MaxInFlight != nil && *cmd.MaxInFlight < 1:
580580
return translatableerror.IncorrectUsageError{Message: "--max-in-flight must be greater than or equal to 1"}
581581
case len(cmd.InstanceSteps) > 0 && cmd.Strategy.Name != constant.DeploymentStrategyCanary:
582-
return translatableerror.ArgumentCombinationError{Args: []string{"--instance-steps", "--strategy=canary"}}
582+
return translatableerror.ArgumentCombinationError{Args: []string{"--instance-steps", "--strategy=rolling or --strategy not provided"}}
583583
case len(cmd.InstanceSteps) > 0 && !cmd.validateInstanceSteps():
584584
return translatableerror.ParseArgumentError{ArgumentName: "--instance-steps", ExpectedType: "list of weights"}
585585
}

command/v7/push_command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ var _ = Describe("push Command", func() {
14381438
},
14391439
translatableerror.ArgumentCombinationError{
14401440
Args: []string{
1441-
"--instance-steps", "--strategy=canary",
1441+
"--instance-steps", "--strategy=rolling or --strategy not provided",
14421442
}}),
14431443
)
14441444
})

command/v7/shared/app_summary_displayer.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,17 @@ func (display AppSummaryDisplayer) displayProcessTable(summary v7action.Detailed
161161
if maxInFlight > 0 {
162162
maxInFlightRow = append(maxInFlightRow, display.UI.TranslateText("max-in-flight:"), strconv.Itoa(maxInFlight))
163163
}
164+
var canaryStepsRow []string
165+
if summary.Deployment.CanaryStatus.Steps.TotalSteps > 0 {
166+
stepStatus := summary.Deployment.CanaryStatus.Steps
167+
canaryStepsRow = []string{display.UI.TranslateText("canary-steps:"), fmt.Sprintf("%d/%d", stepStatus.CurrentStep, stepStatus.TotalSteps)}
168+
169+
}
164170

165171
keyValueTable := [][]string{
166172
{display.UI.TranslateText("strategy:"), strings.ToLower(string(summary.Deployment.Strategy))},
167173
maxInFlightRow,
174+
canaryStepsRow,
168175
}
169176

170177
display.UI.DisplayKeyValueTable("", keyValueTable, ui.DefaultTableSpacePadding)

0 commit comments

Comments
 (0)