Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wait): Fix wait for up instances task #3923

Merged
merged 12 commits into from
Oct 28, 2020

Conversation

deverton
Copy link
Contributor

This change in clouddriver spinnaker/clouddriver#4681 added a boolean pinned field to the Capacity object in ServerGroup. However there's some code in the WaitForUpInstancesTask in Orca that depends on the types all being Integer. The end result is that the wait task fails with a stack trace like:

org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'true' with class 'java.lang.Boolean' to class 'java.lang.Integer'

This patch updates the task to just get the fields it needs to compare and adds a test for this case.

Dan Everton and others added 3 commits September 24, 2020 11:47
This change in clouddriver spinnaker/clouddriver#4681
added a boolean `pinned` field to the `Capacity` object in `ServerGroup`.
However there's some code in the `WaitForUpInstancesTask` in Orca that
depends on the types all being `Integer`. The end result is that the
wait task fails with a stack trace like:

```
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'true' with class 'java.lang.Boolean' to class 'java.lang.Integer'
```

This patch updates the task to just get the fields it needs to compare
and adds a test for this case.
plumpy and others added 8 commits October 12, 2020 12:15
…pinnaker#3945)

* test(preconfigured): include integration test for preconfigured job with kubernetes provider

* refactor(preconfigured): refactor test
…led (spinnaker#3959)

Similar to the bake stage, `skipRegionDetection` can be used to determine
whether or not additional regions are inferred from downstream deploy stages.

The default value is `false` which preserves the existing behavior.

```
{
  ...
  "skipRegionDetection": true
}

```
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@robzienert robzienert added the ready to merge Approved and ready for merge label Oct 28, 2020
@mergify mergify bot added the auto merged Merged automatically by a bot label Oct 28, 2020
@mergify mergify bot merged commit 7a87be2 into spinnaker:master Oct 28, 2020
@deverton deverton deleted the wait-for-update-fix branch October 28, 2020 22:13
KathrynLewis pushed a commit to KathrynLewis/orca that referenced this pull request Jan 31, 2021
* fix(wait): Fix wait for up instances task

This change in clouddriver spinnaker/clouddriver#4681
added a boolean `pinned` field to the `Capacity` object in `ServerGroup`.
However there's some code in the `WaitForUpInstancesTask` in Orca that
depends on the types all being `Integer`. The end result is that the
wait task fails with a stack trace like:

```
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'true' with class 'java.lang.Boolean' to class 'java.lang.Integer'
```

This patch updates the task to just get the fields it needs to compare
and adds a test for this case.

* chore(kork): update kork dependency (now w/ moniker) (spinnaker#3958)

* test(preconfigured): include integration test for preconfigured job (spinnaker#3945)

* test(preconfigured): include integration test for preconfigured job with kubernetes provider

* refactor(preconfigured): refactor test

* feat(clouddriver): Look ahead region detection for "aws" can be disabled (spinnaker#3959)

Similar to the bake stage, `skipRegionDetection` can be used to determine
whether or not additional regions are inferred from downstream deploy stages.

The default value is `false` which preserves the existing behavior.

```
{
  ...
  "skipRegionDetection": true
}

```

* feat(orca): Add support for Redis SSL (spinnaker#3934)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* feat(queue): Add command to cleanup zombie executions (spinnaker#3946)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* fix(bake): Log when bake request amiSuffix and stage context amiSuffix values are different and resolve the difference (spinnaker#3960)

* chore(dependencies): Autobump spinnakerGradleVersion (spinnaker#3962)

Co-authored-by: root <root@877703f80d77>

Co-authored-by: Michael Plump <plumpy@google.com>
Co-authored-by: Edgar Garcia <63310723+edgarulg@users.noreply.github.com>
Co-authored-by: Adam Jordens <adam@jordens.org>
Co-authored-by: tompiscitell <tompiscitell@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Rob Zienert <rzienert@netflix.com>
Co-authored-by: Chris Smalley <csmalley@netflix.com>
Co-authored-by: spinnakerbot <spinbot@spinnaker.io>
Co-authored-by: root <root@877703f80d77>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for merge target-release/1.24
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants