-
Notifications
You must be signed in to change notification settings - Fork 114
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
Easier ruby use #487
Easier ruby use #487
Conversation
e455ea8
to
8e25558
Compare
8e25558
to
a9fb7f1
Compare
@Shopify/cloudx This is ready for review. @dturn kindly agreed to take over getting it merged. I already manually tested invoking all the tasks with all possible args from the command line, plus requiring only the stated files in the console and successfully invoking the task from ruby. If changes are required after review, some of those tests may need to be repeated, but otherwise this just needs a test deploy using cumulus-cat. We need to document our Ruby interface, both with inline docs and in the readme. That could be added to this PR, but at this point I'd be inclined to save it for Krane. |
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.
🎩 deploy/restart/run & render with various issues against cumulus-cat and cloud-portal. No issues
🎩 in my local
😞 I wasn't able to test |
I wasn't able to test kubernetes-run in my local, will try to figure it
out
I used:
be exe/kubernetes-run cloud-portal-staging tierstaging-us-east1-2
flush-cache
…On Wed, Aug 28, 2019 at 12:22 PM Jessie ***@***.***> wrote:
🎩 in my local
- kubernetes-deploy ✅
REVISION="4f7d6697fb5a20d4c960cd1cc6530774069489b6" bundle exec kubernetes-deploy cumulus-cat-production tier4 --template-dir=/Users/jessie.ning/src/github.com/Shopify/cumulus-cat/config/k8s/resources --bindings=@/Users/jessie.ning/src/github.com/Shopify/cumulus-cat/config/k8s/runtimes/production-unrestricted.json
- kubernetes-render ✅
REVISION="4f7d6697fb5a20d4c960cd1cc6530774069489b6" bundle exec kubernetes-render --template-dir=/Users/jessie.ning/src/github.com/Shopify/cumulus-cat/config/k8s/resources --bindings=@/Users/jessie.ning/src/github.com/Shopify/cumulus-cat/config/k8s/runtimes/production-unrestricted.json
- kubernetes-restart ✅
REVISION="4f7d6697fb5a20d4c960cd1cc6530774069489b6" bundle exec kubernetes-restart cumulus-cat-production tier4
😞 I wasn't able to test kubernetes-run in my local, will try to figure
it out
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#487>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC5A4BU7FBTEK4DLPL6CXTLQG3GALANCNFSM4HPLG3MQ>
.
|
test |
What are you trying to accomplish with this PR?
Make it easier to use our Ruby interface, i.e.
DeployTask
,RunnerTask
,RenderTask
andRestartTask
by:require
s around so that requiring a specific task (e.g.require 'kubernetes-deploy/deploy_task'
) actually gets you the dependencies you need to run it (and not dependencies you don't need).require kubernetes-deploy
require ALL the tasks so that it still has a purpose in the world where the correct way to require any specific task--including DeployTask--isrequire kubernetes-deploy/TASK
.cc @stefanmb
What could go wrong?
The requires could be incomplete, causing the tasks to blow up in production when executing a line my manual tests didn't cover. I tried making the test files only require the code for their respective tasks, but in addition to being a bit of a mess, it was pointless because all but the RenderTask suite need to require DeployTask (i.e. most of the code) for setup purposes.
Todo
Investigate the OJ conflict with Rails apps and consider requiring that file from commonWhile a valid issue, this is not actually related to this PR.After review but before shipping, test the tasks: