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
Recently, WebRTC has a lot of eyes from market. The use cases of WebRTC are expanding - video chat, online education, online health care etc. Not only for human-to-human communication, but also IoT use cases such as machine to human use cases can be seen recently. One of the typical use-case is remote camera monitoring. With WebRTC, people can have interoperability and flexibility for deploying monitoring service. However, the benefit of WebRTC for IoT is not only its convenience and interopera...
In his general session at 21st Cloud Expo, Greg Dumas, Calligo’s Vice President and G.M. of US operations, discussed the new Global Data Protection Regulation and how Calligo can help business stay compliant in digitally globalized world. Greg Dumas is Calligo's Vice President and G.M. of US operations. Calligo is an established service provider that provides an innovative platform for trusted cloud solutions. Calligo’s customers are typically most concerned about GDPR compliance, application p...
Modern software design has fundamentally changed how we manage applications, causing many to turn to containers as the new virtual machine for resource management. As container adoption grows beyond stateless applications to stateful workloads, the need for persistent storage is foundational - something customers routinely cite as a top pain point. In his session at @DevOpsSummit at 21st Cloud Expo, Bill Borsari, Head of Systems Engineering at Datera, explored how organizations can reap the bene...
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, examined the regulations and provided insight on how it affects technology, challenges the established rules and will usher in new levels of diligence arou...
Continuous Delivery makes it possible to exploit findings of cognitive psychology and neuroscience to increase the productivity and happiness of our teams. In his session at 22nd Cloud Expo | DXWorld Expo, Daniel Jones, CTO of EngineerBetter, will answer: How can we improve willpower and decrease technical debt? Is the present bias real? How can we turn it to our advantage? Can you increase a team’s effective IQ? How do DevOps & Product Teams increase empathy, and what impact does empath...
"I focus on what we are calling CAST Highlight, which is our SaaS application portfolio analysis tool. It is an extremely lightweight tool that can integrate with pretty much any build process right now," explained Andrew Siegmund, Application Migration Specialist for CAST, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that Evatronix will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
SYS-CON Events announced today that Synametrics Technologies will exhibit at SYS-CON's 22nd International Cloud Expo®, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Synametrics Technologies is a privately held company based in Plainsboro, New Jersey that has been providing solutions for the developer community since 1997. Based on the success of its initial product offerings such as WinSQL, Xeams, SynaMan and Syncrify, Synametrics continues to create and hone inn...
As many know, the first generation of Cloud Management Platform (CMP) solutions were designed for managing virtual infrastructure (IaaS) and traditional applications. But that's no longer enough to satisfy evolving and complex business requirements. In his session at 21st Cloud Expo, Scott Davis, Embotics CTO, explored how next-generation CMPs ensure organizations can manage cloud-native and microservice-based application architectures, while also facilitating agile DevOps methodology. He expla...
To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. In his session at @BigDataExpo, Jack Norris, Senior Vice President, Data and Applications at MapR Technologies, reviewed best practices to ...
DevOps promotes continuous improvement through a culture of collaboration. But in real terms, how do you: Integrate activities across diverse teams and services? Make objective decisions with system-wide visibility? Use feedback loops to enable learning and improvement? With technology insights and real-world examples, in his general session at @DevOpsSummit, at 21st Cloud Expo, Andi Mann, Chief Technology Advocate at Splunk, explored how leading organizations use data-driven DevOps to close th...
Most technology leaders, contemporary and from the hardware era, are reshaping their businesses to do software. They hope to capture value from emerging technologies such as IoT, SDN, and AI. Ultimately, irrespective of the vertical, it is about deriving value from independent software applications participating in an ecosystem as one comprehensive solution. In his session at @ThingsExpo, Kausik Sridhar, founder and CTO of Pulzze Systems, discussed how given the magnitude of today's application ...
You know you need the cloud, but you're hesitant to simply dump everything at Amazon since you know that not all workloads are suitable for cloud. You know that you want the kind of ease of use and scalability that you get with public cloud, but your applications are architected in a way that makes the public cloud a non-starter. You're looking at private cloud solutions based on hyperconverged infrastructure, but you're concerned with the limits inherent in those technologies. What do you do?
Sanjeev Sharma Joins June 5-7, 2018 @DevOpsSummit at @Cloud Expo New York Faculty. Sanjeev Sharma is an internationally known DevOps and Cloud Transformation thought leader, technology executive, and author. Sanjeev's industry experience includes tenures as CTO, Technical Sales leader, and Cloud Architect leader. As an IBM Distinguished Engineer, Sanjeev is recognized at the highest levels of IBM's core of technical leaders.
Mobile device usage has increased exponentially during the past several years, as consumers rely on handhelds for everything from news and weather to banking and purchases. What can we expect in the next few years? The way in which we interact with our devices will fundamentally change, as businesses leverage Artificial Intelligence. We already see this taking shape as businesses leverage AI for cost savings and customer responsiveness. This trend will continue, as AI is used for more sophistica...