Welcome!

Article

Key Takeaways from Continuous Discussions (#c9d9) Episode 48: Process-as-Code | #DevOps

Best Practices for Process as Code in Your Deployment Pipeline

Last week, we hosted another episode of our Continuous Discussion (#c9d9) video podcast, featuring expert panelists discussing process as code.

Our expert panel included: David-Blank Edelman, technical evangelist for Apcera;Juni Mukherjee, Author of “Continuous Delivery Pipeline – Where Does It Choke?”;J. Paul Reed, managing partner of Release Engineering Approaches; Mark Chassy, product director at Orson Software; Michael Wittig, Author of “Amazon Web Services in Action”; and, our very own Anders Wallgren and Sam Fell.

During the episode, panelists discussed their definitions of process-as-code as well as use cases and best practices for defining your automation processes as code, and ensuring your automation is versionable, testable, and repeatable.

What is Process as Code?

Process as Code: @hellomichibye says treat that pipeline like a product and optimize as you go | 

 

Process as Code allows there to be a democratization of process in the organization | @jpaulreed

 

Process As Code is a great wiki-ization of knowledge sharing - it's powerful for the org @anders_wallgren

 

Wallgrenanders-wallgren-c9d9 “If you manage to do this and it encompasses your end-to-end pipeline and all of the stages in it, then I think it’s really powerful to have an external representation of that thing – whether it’s the policy aspect of it or the coding part of it. It’s a great way to avoid the wiki-ization of knowledge. Code is a great way to document, interact and communicate, so there’s a lot of powerful side effects you get out of doing automation as process as code.”

Mark-Chassy-c9d9-devops-podcastAutomation is key, says Chassy: “If you say, ‘Here is my ecosystem. I’m giving you the right to do what you want with these automated tools, go do what you want because I’ve already set the limits,’ maybe that can allow you get outside of the strict ‘You must do it like this.’ As much as anything about code is as soon as you put it on a wiki it’s out of date, the same thing is true of any kind of business requirement. As we automate everything, the question is how we can actually automate the business requirements going into the software that we’re working on in the first place.”

Mukherjeejuni-devops-c9d9, who is in charge of process at her company, explains their methods for using process as code: “The entire process, along with the KPI’s, the measurements, the success metrics, the tests, the configuration management, the deployment, the auditing – it’s all code. Initially there was nervousness about automated agents doing what otherwise a human would carefully do, but the automated agents have made it even more traceable and predictable, and compliance and risk were actually jazzed that there was a better chance at making mistakes. There is still room to make mistakes – to err is human – but everything is traceable and repeatable so in general everyone is happy.”

j-paul-reed-c9d9-devops-podcastIt’s not just about pipelines and automation, there is a bigger picture to process as code, explains Reed: “What we are really trying to understand is what we do as individuals, how that coalesces into what we do as a group and how that then produces something of value – like a deployed artifact of software. We’re trying to capture the context of all of this in some way and model it in some way. You can’t have a discussion about doing the right thing or the wrong thing without having that context.”

Fellsam-fell elaborates on process as code as part of your pathway to production: “Your pathway to production can be transformed from a chore to a competitive advantage. If you have a great Sprint and you get a lot of great features in but you never ship it you really haven’t solved any problems. So getting it out and making it prescient is a part of that process.”

david-blank-edelman-c9d9-devops-podcastPeople are just as important in process as code, according to Blank-Edelman: “Process is people to a certain extent, so when we say that developers are super good at running in the same direction together and always playing nice, my senses meter starts to move a little bit closer towards. I think that one of the things that process as code gives you – if you get lucky – is that you hit on a good representation for what you are trying to talk about that everybody can agree upon. Then you can write that representation down and everybody can agree on what are the symbols, the verbs, the actions, and the nouns in this world, and if you can agree on it and write it down, then you are a lot farther along than many other people.”

Wittigmichael-wittig-c9d9-devops-podcast describes his process using Jenkins: “A few years ago I had to use a Jenkins server. We used it to build our software and a lot of configuration was inside Jenkins – it was separated from the code. We thought that this is probably not a good idea and we put all this scripts we used to build our software into the code repository, and Jenkins only triggered those scripts. Now we’re also pushing the whole pipeline configuration into our code, and Jenkins executes the pipeline as a whole.”

Best Practices for implementing Process-as-Code

"Break stuff and fail fast - make it okay to have failures" - advice on process as  per @otterbook

 

Sometimes scripts don't work, so every action should be "item open" | Process as Code @hellomichibye

 

Maybe process as code isn't about  as much as it is about capturing context | @jpaulreed

 

 

Your processes should mirror your environment - be aware of how your organizational communication works @otterbook

 

sam-fellFell mentions the difficulty bimodal IT adds to the mix: “Culturally it’s tricky. Gartner talks about bimodal IT. So not only are you stuck between some automated and some manual, but you are also stuck between some super automated and some 18-month releases where not a lot is automated – there’s a lot of emails and spreadsheets. Trying to tie those together and have governance around those things becomes really complicated.”

Mark-Chassy-c9d9-devops-podcastDon’t let your tests remain static, advises Chassy: “I could write a bunch of tests, and if I put them in a certain tool like Quality Center it’s all sitting there. What good are my tests if they’re sitting there static, as opposed to a piece of code which generates the test on the fly based on the parameters I need? And then there are tracking tools out there that will tell me what happened and then I can tear them all down and throw them all away because I still have the code which will generate them later, saving many logistical nightmares that way.”

juni-devops-c9d9Mukherjee “When a company tries to do process as code, they usually send a pilot down the line first because you go there you learn and teach the rest of us. There’s the canary in the coal mine – even if the canary dies at least it’s just one canary instead of all of them. It’s important to have a pilot for each pipeline – mobile, database, Java, etc. – because each of them are different

michael-wittig-c9d9-devops-podcastWittig “I think I learned two things in the last year. The first thing is that scripts sometimes don’t work, and if the process consists of actions and you can execute them multiple times, each time it should produce the same result. It should be able to run asynchronously. The other thing is that often it is very easy to have a descriptive language for our process and have the runtime environment that runs your process. So, don’t script the process, use another language to describe the process and have some execution engine that executes the process, because it gets very tricky with dependencies – processes are often very complex.”

anders-wallgren-c9d9Ask questions along the way, says Wallgren: “Treat this as a living thing. When you do your iterations and you do your retrospectives spend some time thinking about if the pipeline is in good stead is the process working, do you need to make any changes or tweaks? Evolve it as you evolve everything else in the product.”

j-paul-reed-c9d9-devops-podcastThe context behind process as code is constantly changing so be prepared for that, advises Reed: “The one thing I see people struggling with when they are on this journey of codifying things as a code artifact is ‘How do you do that?’ How do you go about the practice of automating things? I have clients work through a check list for the purpose of creating requirements to do process as code or automation. Because process as code is so intertwined with that context – How do you account for the fact that context is always ongoing and moving? How do you continue to incorporate that when you’re just starting out?”

david-blank-edelman-c9d9-devops-podcastGet on the same page of communication, advises Blank-Edelman: “We can’t have a discussion without bringing up Conway’s Law – your process is going to mirror your environment and your organization. I would say that one best practice is to be aware of how organizational communication is going on and how it actually works. If your processes are going against that rather than with that, if you are swimming upstream with your processes that’s going to be a lot of wasted effort.”

Watch the full episode here:

 

 

Want more Continuous Discussions?

We hold our #c9d9’s every other Tuesday at 10 a.m. PST, which features expert panelists talking about DevOps, Continuous Delivery, Agile and more. Next time on Continuous Discussions: Deployment Patterns.

More Stories By Anders Wallgren

Anders Wallgren is Chief Technology Officer of Electric Cloud. Anders brings with him over 25 years of in-depth experience designing and building commercial software. Prior to joining Electric Cloud, Anders held executive positions at Aceva, Archistra, and Impresse. Anders also held management positions at Macromedia (MACR), Common Ground Software and Verity (VRTY), where he played critical technical leadership roles in delivering award winning technologies such as Macromedia’s Director 7 and various Shockwave products.

Latest Stories
In his General Session at 17th Cloud Expo, Bruce Swann, Senior Product Marketing Manager for Adobe Campaign, explored the key ingredients of cross-channel marketing in a digital world. Learn how the Adobe Marketing Cloud can help marketers embrace opportunities for personalized, relevant and real-time customer engagement across offline (direct mail, point of sale, call center) and digital (email, website, SMS, mobile apps, social networks, connected objects).
For organizations that have amassed large sums of software complexity, taking a microservices approach is the first step toward DevOps and continuous improvement / development. Integrating system-level analysis with microservices makes it easier to change and add functionality to applications at any time without the increase of risk. Before you start big transformation projects or a cloud migration, make sure these changes won’t take down your entire organization.
With the introduction of IoT and Smart Living in every aspect of our lives, one question has become relevant: What are the security implications? To answer this, first we have to look and explore the security models of the technologies that IoT is founded upon. In his session at @ThingsExpo, Nevi Kaja, a Research Engineer at Ford Motor Company, will discuss some of the security challenges of the IoT infrastructure and relate how these aspects impact Smart Living. The material will be delivered i...
"My role is working with customers, helping them go through this digital transformation. I spend a lot of time talking to banks, big industries, manufacturers working through how they are integrating and transforming their IT platforms and moving them forward," explained William Morrish, General Manager Product Sales at Interoute, in this SYS-CON.tv interview at 18th Cloud Expo, held June 7-9, 2016, at the Javits Center in New York City, NY.
SYS-CON Events announced today that Ocean9will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Ocean9 provides cloud services for Backup, Disaster Recovery (DRaaS) and instant Innovation, and redefines enterprise infrastructure with its cloud native subscription offerings for mission critical SAP workloads.
Your homes and cars can be automated and self-serviced. Why can't your storage? From simply asking questions to analyze and troubleshoot your infrastructure, to provisioning storage with snapshots, recovery and replication, your wildest sci-fi dream has come true. In his session at @DevOpsSummit at 20th Cloud Expo, Dan Florea, Director of Product Management at Tintri, will provide a ChatOps demo where you can talk to your storage and manage it from anywhere, through Slack and similar services ...
Imagine having the ability to leverage all of your current technology and to be able to compose it into one resource pool. Now imagine, as your business grows, not having to deploy a complete new appliance to scale your infrastructure. Also imagine a true multi-cloud capability that allows live migration without any modification between cloud environments regardless of whether that cloud is your private cloud or your public AWS, Azure or Google instance. Now think of a world that is not locked i...
SYS-CON Events announced today that Auditwerx will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Auditwerx specializes in SOC 1, SOC 2, and SOC 3 attestation services throughout the U.S. and Canada. As a division of Carr, Riggs & Ingram (CRI), one of the top 20 largest CPA firms nationally, you can expect the resources, skills, and experience of a much larger firm combined with the accessibility and atten...
In his session at @ThingsExpo, Eric Lachapelle, CEO of the Professional Evaluation and Certification Board (PECB), will provide an overview of various initiatives to certifiy the security of connected devices and future trends in ensuring public trust of IoT. Eric Lachapelle is the Chief Executive Officer of the Professional Evaluation and Certification Board (PECB), an international certification body. His role is to help companies and individuals to achieve professional, accredited and worldw...
MongoDB Atlas leverages VPC peering for AWS, a service that allows multiple VPC networks to interact. This includes VPCs that belong to other AWS account holders. By performing cross account VPC peering, users ensure networks that host and communicate their data are secure. In his session at 20th Cloud Expo, Jay Gordon, a Developer Advocate at MongoDB, will explain how to properly architect your VPC using existing AWS tools and then peer with your MongoDB Atlas cluster. He'll discuss the secur...
In his session at Cloud Expo, Alan Winters, an entertainment executive/TV producer turned serial entrepreneur, will present a success story of an entrepreneur who has both suffered through and benefited from offshore development across multiple businesses: The smart choice, or how to select the right offshore development partner Warning signs, or how to minimize chances of making the wrong choice Collaboration, or how to establish the most effective work processes Budget control, or how to m...
Deep learning has been very successful in social sciences and specially areas where there is a lot of data. Trading is another field that can be viewed as social science with a lot of data. With the advent of Deep Learning and Big Data technologies for efficient computation, we are finally able to use the same methods in investment management as we would in face recognition or in making chat-bots. In his session at 20th Cloud Expo, Gaurav Chakravorty, co-founder and Head of Strategy Development ...
SYS-CON Events announced today that Linux Academy, the foremost online Linux and cloud training platform and community, will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Linux Academy was founded on the belief that providing high-quality, in-depth training should be available at an affordable price. Industry leaders in quality training, provided services, and student certification passes, its goal is to c...
DevOps is often described as a combination of technology and culture. Without both, DevOps isn't complete. However, applying the culture to outdated technology is a recipe for disaster; as response times grow and connections between teams are delayed by technology, the culture will die. A Nutanix Enterprise Cloud has many benefits that provide the needed base for a true DevOps paradigm. In his Day 3 Keynote at 20th Cloud Expo, Chris Brown, a Solutions Marketing Manager at Nutanix, will explore t...
"delaPlex is a software development company. We do team-based outsourcing development," explained Mark Rivers, COO and Co-founder of delaPlex Software, in this SYS-CON.tv interview at 18th Cloud Expo, held June 7-9, 2016, at the Javits Center in New York City, NY.