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

test(appengine): Add tests demonstrating AppEngine artifact bug #3772

Merged
merged 4 commits into from
Jun 24, 2020
Merged

test(appengine): Add tests demonstrating AppEngine artifact bug #3772

merged 4 commits into from
Jun 24, 2020

Conversation

ezimanyi
Copy link
Contributor

To follow the new cherry-pick policy we should have first written a test demonstrating the bug then fixed the test along with the bug fix. This PR does that.

The net effect (when we squash commit) will just be the added tests, but to make it easier to see, the individual commits revert the fix, write some broken tests, then apply the fix and fix the tests.

This reverts commit 711c21a. After
adding tests to demonstrate the bug and fix, we'll re-apply.
This commit adds tests to demonstrate the regression in the
AppEngine artifact handling. The next commit will fix the bug
and update the tests.
groovy.lang.MissingMethodException when referencing github config artifact for GAE deploy. The config artifacts  were of instance of HashMap not an Artifact object. Added logic to translate HashMap to Artifact.

Co-Authored-By: Eric Zimanyi <ezimanyi@google.com>
Copy link
Contributor

@maggieneterval maggieneterval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for providing a 💯 example we can reference if folks have questions about the new policy!
🎉 ☁️ 🚗 🏺 ✅

@ezimanyi ezimanyi added the ready to merge Approved and ready for merge label Jun 24, 2020
Copy link
Contributor

@ethanfrogers ethanfrogers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D whoop, agreed with @maggieneterval - this will be a great example of the new policy!

@mergify mergify bot merged commit 4a26d90 into spinnaker:master Jun 24, 2020
@mergify mergify bot added the auto merged Merged automatically by a bot label Jun 24, 2020
@ezimanyi ezimanyi deleted the add-tests branch June 24, 2020 19:50
@ezimanyi
Copy link
Contributor Author

@Mergifyio backport release-1.20.x release-1.19.x

mergify bot pushed a commit that referenced this pull request Jun 24, 2020
* fix(provider/appengine): Temporarily revert fix

This reverts commit 711c21a. After
adding tests to demonstrate the bug and fix, we'll re-apply.

* test(appengine): Add tests demonstrating AppEngine artifact bug

This commit adds tests to demonstrate the regression in the
AppEngine artifact handling. The next commit will fix the bug
and update the tests.

* fix(provider/appengine): Fix for issue spinnaker/spinnaker#5836 (#3755)

groovy.lang.MissingMethodException when referencing github config artifact for GAE deploy. The config artifacts  were of instance of HashMap not an Artifact object. Added logic to translate HashMap to Artifact.

Co-Authored-By: Eric Zimanyi <ezimanyi@google.com>

Co-authored-by: guido9j <james_guido@homedepot.com>
(cherry picked from commit 4a26d90)
mergify bot pushed a commit that referenced this pull request Jun 24, 2020
* fix(provider/appengine): Temporarily revert fix

This reverts commit 711c21a. After
adding tests to demonstrate the bug and fix, we'll re-apply.

* test(appengine): Add tests demonstrating AppEngine artifact bug

This commit adds tests to demonstrate the regression in the
AppEngine artifact handling. The next commit will fix the bug
and update the tests.

* fix(provider/appengine): Fix for issue spinnaker/spinnaker#5836 (#3755)

groovy.lang.MissingMethodException when referencing github config artifact for GAE deploy. The config artifacts  were of instance of HashMap not an Artifact object. Added logic to translate HashMap to Artifact.

Co-Authored-By: Eric Zimanyi <ezimanyi@google.com>

Co-authored-by: guido9j <james_guido@homedepot.com>
(cherry picked from commit 4a26d90)
@mergify
Copy link
Contributor

mergify bot commented Jun 24, 2020

Command backport release-1.20.x release-1.19.x: success

Backports have been created

mergify bot added a commit that referenced this pull request Jun 24, 2020
… (#3774)

* fix(provider/appengine): Temporarily revert fix

This reverts commit 711c21a. After
adding tests to demonstrate the bug and fix, we'll re-apply.

* test(appengine): Add tests demonstrating AppEngine artifact bug

This commit adds tests to demonstrate the regression in the
AppEngine artifact handling. The next commit will fix the bug
and update the tests.

* fix(provider/appengine): Fix for issue spinnaker/spinnaker#5836 (#3755)

groovy.lang.MissingMethodException when referencing github config artifact for GAE deploy. The config artifacts  were of instance of HashMap not an Artifact object. Added logic to translate HashMap to Artifact.

Co-Authored-By: Eric Zimanyi <ezimanyi@google.com>

Co-authored-by: guido9j <james_guido@homedepot.com>
(cherry picked from commit 4a26d90)

Co-authored-by: Eric Zimanyi <ezimanyi@google.com>
mergify bot added a commit that referenced this pull request Jun 24, 2020
…3772) (#3775)

* test(appengine): Add tests demonstrating AppEngine artifact bug (#3772)

* fix(provider/appengine): Temporarily revert fix

This reverts commit 711c21a. After
adding tests to demonstrate the bug and fix, we'll re-apply.

* test(appengine): Add tests demonstrating AppEngine artifact bug

This commit adds tests to demonstrate the regression in the
AppEngine artifact handling. The next commit will fix the bug
and update the tests.

* fix(provider/appengine): Fix for issue spinnaker/spinnaker#5836 (#3755)

groovy.lang.MissingMethodException when referencing github config artifact for GAE deploy. The config artifacts  were of instance of HashMap not an Artifact object. Added logic to translate HashMap to Artifact.

Co-Authored-By: Eric Zimanyi <ezimanyi@google.com>

Co-authored-by: guido9j <james_guido@homedepot.com>
(cherry picked from commit 4a26d90)

* test(appengine): Fix incorrect class names and imports

A refactor between 1.19 and 1.20 changed a lot of class names and
import paths, so the backport didn't apply cleanly. This commit
updates the (non-compiling) backport so that it refers to the
classes as they exist on the 1.19 branch.

Co-authored-by: Eric Zimanyi <ezimanyi@google.com>
KathrynLewis pushed a commit to KathrynLewis/orca that referenced this pull request Jan 31, 2021
…naker#3772)

* fix(provider/appengine): Temporarily revert fix

This reverts commit 711c21a. After
adding tests to demonstrate the bug and fix, we'll re-apply.

* test(appengine): Add tests demonstrating AppEngine artifact bug

This commit adds tests to demonstrate the regression in the
AppEngine artifact handling. The next commit will fix the bug
and update the tests.

* fix(provider/appengine): Fix for issue spinnaker/spinnaker#5836 (spinnaker#3755)

groovy.lang.MissingMethodException when referencing github config artifact for GAE deploy. The config artifacts  were of instance of HashMap not an Artifact object. Added logic to translate HashMap to Artifact.

Co-Authored-By: Eric Zimanyi <ezimanyi@google.com>

Co-authored-by: guido9j <james_guido@homedepot.com>
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.21
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants