Continuous Delivery, the ObjectStyle Way: An Interview
Continuous Delivery, the ObjectStyle Way: An Interview
In Continuous Delivery, development is a journey, not a destination. The developer's work is never done. And, if it is done, this spells the death of a project.
Join the DZone community and get the full member experience.Join For Free
With the influx of DevOps-related products and services on the market, today’s application delivery toolchain has become complex and fragmented. Watch Avoiding the DevOps Tax to learn best practices for integration and automation to realize a faster DevOps lifecycle.
In this interview, Alesia Krush talks to Evgeny Vintik, a Team Lead at ObjectStyle, about his experience making Continuous Integration part of his team's day-to-day software development routine.
OS: As far as I know, you were the one who introduced Continuous Integration into your team’s routine here at ObjectStyle. What inspired you to do that?
EV: Prior to ObjectStyle, I worked for a company where Continuous Integration was the norm. We were using TeamCity to cooperate and were rolling out product updates each week.
When I joined ObjectStyle about two years ago, my team was releasing software updates irregularly, and the amount of time it took to test things before each release, was way too much.
The reason it was taking so long, was that unit tests were scarce and there was poor code coverage. Moreover, out of the few unit tests that existed, many were outdated; this made those tests pretty useless.
So, I wanted my team to know there was a better way to write code. I was positive that, once they tried Continuous Integration, they would never look back. That was how I became a kind of a trailblazer for the cause at ObjectStyle.
OS: How long has it been since you started the revolution?
EV: It’s been about a year and a half.
OS: What were the challenges of introducing the new approach?
EV: One of the main challenges was breaking the old mindset. When a developer is used to a particular style of work, it’s difficult to make him/her adapt a new model. Naturally, people don’t want to get out of their comfort zones.
But, luckily, Continuous Integration brings fruit pretty quickly, which gives you the incentive to carry on. The greater your test coverage, the easier it becomes to compose new code for a program.
Another challenge was to stick to the newly adopted code quality standard. According to the new standard, code had to pass all existing tests with no exception to be incorporated into the release.
It’s important to have zero tolerance towards failed tests, because, on one occasion, you let a couple of minor issues slide. Then on another occasion, you decide, "Heck, maybe a dozen minor issues is not a big deal." This tends to snowball pretty quickly, and, before you know it, you’re not doing Continuous Delivery any longer, because you start accumulating technical debt, which takes you in the opposite direction.
OS: How did you cope with the challenges?
EV: First, I had to talk to the programmers and convince them to write more unit tests in order to increase test coverage. We introduced a system where, if the test coverage in an individual branch was smaller than the average test coverage in the master branch, the code was not passing the test.
Usually, this means that the developer has written too much code without writing sufficient unit tests for the code. Modern Continuous Delivery tools are pretty accurate at determining how much testing is required, and we rely on them for that matter.
We also struggled to create a workflow where we would do end-to-end testing on a regular basis. While automated E2E tests already existed in some form, they were run inconsistently; and some of them were outdated.
These tests take a huge amount of time to write and keep up to date. But we had to start somewhere. Clearly, the main purpose was to cover the core functionality without going too crazy and trying to cover every tiny feature in the application.
However, this is the area where you see the biggest return on investment, so to say. The longer you've been writing end-to-end tests, the less time is needed to maintain them or build upon them.
So, to sum this up, the strategy is as follows: unit tests should have maximum coverage, while end-to-end tests need to cover the crucial features/parts of the product.
OS: Did you start using any new tools for Continuous Delivery?
EV: At first, we decided to go with Atlassian’s Bamboo, the cloud–based platform. But, unfortunately, Atlassian stopped supporting it in 2017.
Then we switched to JetBrain’s TeamCity. If you're not familiar with it, TC is a great fit for Java in particular and is designed with Continuous Integration in mind. Besides, there is a robust free version available.
There are tons of other tools, of course. I would recommend anyone looking for language- and platform-agnostic instruments to try BitBucket Pipelines. You don’t even need to set up a server to run it.
In addition, there are quite a few great CI services available that integrate with GitHub. If you have a public repository, this is a good option.
OS: Besides the fact that Continuous Integration is a trend now, what are the key benefits?
EV: The longer you do CI and the more software has been written using CI-driven requirements, the easier it becomes to introduce changes or to release new features for the project.
Eventually, you should arrive at a point where you no longer have to worry about reverse compatibility or time-consuming tests. There are fewer surprises, and getting feedback on the compliance of your code becomes a routine.
Then the developer enjoys greater peace of mind and can finally focus on programming, adjusting their code as they go – instead of ping-ponging tickets back and forth between dev and QA.
In the old times, you had to wait and develop film before you could see how the photo came out. Nowadays, you can see the pictures you take momentarily, because people have digital cameras and there is no need to wait. Coding while getting immediate feedback from automatic tests is very much like that.
OS: How does Continuous Integration relate to Agile, DevOps, TDD, and Continuous Delivery? I realize these terms aren't interchangeable, but oftentimes they’re thrown around as part of the same bundle of concepts.
EV: Speaking of the first two (Agile and DevOps), Continuous Integration is a much more concrete process that can apply to any software development company, regardless of its size.
Agile is more of a philosophy/methodology. Some companies do Agile without even realizing it. You don't have to use fancy terms like Scrum, Sprint or Kanban to be doing Agile.
And while the latter is a great methodology, Continuous Integration is what makes Agile possible. Without Continuous Integration, it is difficult to release working software as frequently as the methodology requires you to.
DevOps is an even more esoteric concept. But I believe it is something quite real in big organizations that build mass-market products. The implementation may vary, but a big company often has a dedicated person or a department responsible for releases, version control, and maintaining and customizing software/hardware used in deployment. Imagine releasing the new version of a program that is spread out among hundreds of servers. And a big organization may be doing it several times a day! Then you definitely need DevOps.
Continuous delivery is the result of Continuous Integration. This is something you arrive at after you’ve been investing your sweat and blood and tears into Continuous Integration for some time. That’s the benefit you reap.
OS: If you were to describe Continuous Delivery in a few words, what would that be?
EV: In Continuous Delivery, development is a journey, not a destination. The developer's work is never done. And, if it is done, this spells the death of a project.
Published at DZone with permission of Alesia Krush , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.