Skip to content

Commit 701812c

Browse files
authored
Merge branch 'main' into main-restart-canary-steps
2 parents 12e4524 + f215973 commit 701812c

24 files changed

Lines changed: 164 additions & 118 deletions

.github/workflows/golangci-lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
uses: actions/setup-go@v5
3535
with:
3636
go-version-file: go.mod
37-
check-latest: true
3837
- name: golangci-lint
3938
uses: golangci/golangci-lint-action@v6
4039
with:
@@ -52,6 +51,5 @@ jobs:
5251
uses: actions/setup-go@v5
5352
with:
5453
go-version-file: go.mod
55-
check-latest: true
5654
- name: Run go fmt
5755
run: make format && git diff --exit-code

.github/workflows/release-build-sign-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ jobs:
424424
- name: Update Homebrew
425425
run: |
426426
brew tap pivotalsoftware/gon
427-
brew update --preinstall
427+
brew update
428428
cat "$(brew --repository)/Library/Taps/pivotalsoftware/homebrew-gon/gon.rb" > .github/brew-formulae
429429
430430
- name: Configure Homebrew cache

.github/workflows/release-update-repos.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,12 @@ jobs:
383383
env:
384384
DEBIAN_FRONTEND: noninteractive
385385
run: >
386-
sudo apt update &&
387-
sudo apt install --yes --no-install-recommends
386+
sudo apt update
387+
&& sudo apt install --yes --no-install-recommends
388388
gnupg
389389
createrepo-c
390-
awscli
390+
python3-pip
391+
&& pip3 install awscli
391392
392393
- name: Setup aws to upload installers to CLAW S3 bucket
393394
uses: aws-actions/configure-aws-credentials@v4

.github/workflows/tests-integration-reusable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070
uses: actions/setup-go@v5
7171
with:
7272
go-version-file: go.mod
73-
check-latest: true
7473

7574
- name: Install Tools
7675
env:
@@ -144,6 +143,7 @@ jobs:
144143
"include_apps": true,
145144
"include_backend_compatibility": false,
146145
"include_container_networking": true,
146+
"include_deployments": true,
147147
"include_detect": true,
148148
"include_docker": true,
149149
"include_cnb": true,

.github/workflows/tests-integration.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ jobs:
110110
if: ${{ inputs.run_unit_tests || inputs.run_unit_tests == '' }}
111111
with:
112112
go-version-file: go.mod
113-
check-latest: true
114113
- name: Run Units
115114
if: ${{ inputs.run_unit_tests || inputs.run_unit_tests == '' }}
116115
run: make units

.github/workflows/tests-unit.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
uses: actions/setup-go@v5
5555
with:
5656
go-version-file: go.mod
57-
check-latest: true
5857
cache: true
5958

6059
- name: Install Windows Build Dependencies

actor/v7pushaction/create_deployment_for_push_plan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (actor Actor) CreateDeploymentForApplication(pushPlan PushPlan, eventStream
1919
}
2020

2121
if len(pushPlan.InstanceSteps) > 0 {
22-
dep.Options.CanaryDeploymentOptions = resources.CanaryDeploymentOptions{Steps: []resources.CanaryStep{}}
22+
dep.Options.CanaryDeploymentOptions = &resources.CanaryDeploymentOptions{Steps: []resources.CanaryStep{}}
2323
for _, w := range pushPlan.InstanceSteps {
2424
dep.Options.CanaryDeploymentOptions.Steps = append(dep.Options.CanaryDeploymentOptions.Steps, resources.CanaryStep{InstanceWeight: w})
2525
}

actor/v7pushaction/create_deployment_for_push_plan_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ var _ = Describe("CreateDeploymentForApplication()", func() {
175175
Expect(dep).To(Equal(resources.Deployment{
176176
Strategy: "canary",
177177
Options: resources.DeploymentOpts{
178-
CanaryDeploymentOptions: resources.CanaryDeploymentOptions{
178+
CanaryDeploymentOptions: &resources.CanaryDeploymentOptions{
179179
Steps: []resources.CanaryStep{
180180
{InstanceWeight: 1},
181181
{InstanceWeight: 2},

api/cloudcontroller/ccv3/deployment_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ var _ = Describe("Deployment", func() {
251251
dep.Strategy = constant.DeploymentStrategyCanary
252252
dep.RevisionGUID = revisionGUID
253253
dep.Relationships = resources.Relationships{constant.RelationshipTypeApplication: resources.Relationship{GUID: "some-app-guid"}}
254-
dep.Options.CanaryDeploymentOptions = resources.CanaryDeploymentOptions{Steps: []resources.CanaryStep{{InstanceWeight: 1}, {InstanceWeight: 2}}}
254+
dep.Options.CanaryDeploymentOptions = &resources.CanaryDeploymentOptions{Steps: []resources.CanaryStep{{InstanceWeight: 1}, {InstanceWeight: 2}}}
255255
deploymentGUID, warnings, executeErr = client.CreateApplicationDeployment(dep)
256256
})
257257

api/cloudcontroller/ccv3/process_instance.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ type ProcessInstance struct {
3838
LogRate uint64
3939
// State is the state of the instance.
4040
State constant.ProcessInstanceState
41+
// Routeable is the readiness state of the instance, can be true, false or null.
42+
Routable *bool
4143
// Type is the process type for the instance.
4244
Type string
4345
// Uptime is the duration that the instance has been running.
@@ -54,6 +56,7 @@ func (instance *ProcessInstance) UnmarshalJSON(data []byte) error {
5456
MemQuota uint64 `json:"mem_quota"`
5557
LogRateLimit int64 `json:"log_rate_limit"`
5658
State string `json:"state"`
59+
Routable *bool `json:"routable"`
5760
Type string `json:"type"`
5861
Uptime int64 `json:"uptime"`
5962
Usage struct {
@@ -80,6 +83,7 @@ func (instance *ProcessInstance) UnmarshalJSON(data []byte) error {
8083
instance.LogRateLimit = inputInstance.LogRateLimit
8184
instance.LogRate = inputInstance.Usage.LogRate
8285
instance.State = constant.ProcessInstanceState(inputInstance.State)
86+
instance.Routable = inputInstance.Routable
8387
instance.Type = inputInstance.Type
8488
instance.Uptime, err = time.ParseDuration(fmt.Sprintf("%ds", inputInstance.Uptime))
8589
if err != nil {

0 commit comments

Comments
 (0)