
Quick rollback CLI
Some new internal tools for quick rollbacks - making sure we can ship code quickly and minimize impact in rollbacks
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I'll go first so not a super exciting demo but uh this is the ability to roll back a change quickly if something goes Haywire so um it's a CI process right now it's not fully released yet but hopefully next day or two um three steps are first you got to pause the pipeline so that no other changes go out kind of freeze everything so that would just be I'm not actually going to do it since production but just uh you know say you sure you want to do it and then you pause it so then after that you revert the code so at that point you say what commit that I want to go back to that'll bring back a list of oh Democrats so
it'll bring back a list of commits that you can revert back to and there we go so it'll show you uh the current pipeline status the current service status it'll flag if this if there's a deployment in process process so you don't try to you know step on what's going on and then you can see all the commits are out there this is the one that's live right now and then here's some of the previous ones basically just double click I want to go back to this one C and paste and paste it in and when there's no warnings it'll let you do that and two to three minutes and it should be back to the uh commit you chose couple gotas this is just
doing the code so that means there won't be and if there's a database migration it won't roll back to migration there's infrastructure changes it won't roll back the infrastructure changes if there's anything like schedule Lambda stuff that kind of thing won't revert that so it only applies to model and remix um but instead of a 30 minute turnaround time it'll be two to three minutes and then the third Pro the third step in the process is to resume the pipelines trick on that one is and I'll write all this up and share it uh the trick on that one is to make sure that any compensating commits fixes stuff like that have made it all the way through the build process before we resume it
otherwise we'll be you know releasing potentially code that doesn't have the fix in it which puts us right back where we started so um relatively simple process and hopefully that will solve our problem any time we push something out there it's craft everybody we can get back up to running quickly that's it for me is awesome Brian I'm I'm super impressed by the ux of your CLI tools by the way look way better than the ones I make um thanks and so you're correlating the gith has to the um Tas defa in ECS yes so the um the way it works is each Tas staff each time it's built let me scroll up a little bit so this is clarification it's the last four G
commits that were built into images so if there's couple commits that went out at the same time it's going to be the the commit that was the last one in so you might not see the commit you want that's not quite um easy to figure out sometimes but it's the best we can do but yeah each t St has a gith hat on it so I can go and do a look up to see what the commit that message was got it and can you see more than four or is four the limit right now I did four as an arbitrary one just to not have too much stuff on the screen um I can make that a parameter I guess that we think that's
important most of the time it's the one before is the one you want so yeah I think uh the big question I had is like yeah I think you're right it's most of the time but if that one scenario where a bunch of things landed all at the same time or whatever uh could you just grab a random GI has out of git and hope that it's actually associate like that it actually released or is that probably not a good idea uh so we don't want go too far back so that's kind of why I limited too because you know that's more likely to have migration changes infrastructure changes stuff like that um but yeah it's all arbitrary so we can do what we want
to do okay yeah and I think actually just the ability to list more than four is probably just a great a great way to easy enough um one other quick piece of feedback on that warning that says you have to pause it'd be really helpful to show the command that you have to run to pause envisioning myself with my hair on fire trying to run this thing and being like what does that mean how do I do that I mean it's not super hard you change revert code to to pause but yeah okay my hair is on fire in the scenario Bri I just want fair enough fair enough cool this is awesome uh this is exactly what I was uh hoping for thank you
y