-
Notifications
You must be signed in to change notification settings - Fork 808
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
Conversation
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>
There was a problem hiding this 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!
🎉 ☁️ 🚗 🏺 ✅
There was a problem hiding this 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!
@Mergifyio backport release-1.20.x release-1.19.x |
* 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)
* 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)
Command
|
… (#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>
…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>
…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>
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.
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 groovy.lang.MissingMethodException when referencing github config artifact for GAE deploy spinnaker#5836 (fix(provider/appengine): Fix for issue https://github.com/spinnaker/spinnaker/issues/5836 (Master branch) #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