Sunday, July 30, 2017

TestOps #5 - Engineering Productivity


Contents:

1) Introduction
2) What is Engineering Productivity?
3) Engineering Productivity goals & responsibilites
4) Roles in Engineering Productivity team
5) Further reading

1) Introduction

Google has recently surprised everyone by renaming their famous GTAC into Engineering Productivity conference. It means that already complicated and confusing testing dictionary received one more entry (ISTQB dictionary for instance, fails to explain the meaning of this term). The meaning of Engineering Productivity is very broad and it's not easy define it in one blog post. With help of various resources I'll try.

2) What is Engineering Productivity?

As described in How Google Tests Software Engineering Productivity in testing context was first introduced by Patrick Copeland:
So I decided to make it official and I changed the name of the team to Engineering Productivity. With the name change also came a cultural adjustment. People began talking about productivity instead of testing and quality. Productivity is our job; testing and quality are the job of everyone involved in development. This means that developers own testing and developers own quality. The productivity team is responsible for enabling development to nail those two things.
As noted by Patrick (later confirmed by Ashley Hunsberger  on Souce Lab Blog) QA people may not be enough to guarantee demanded quality. Engineering Productivity team is kind of extension which allow companies to focus on quality from start of Software Engineering process (often called 'left') to the product release and live maintenance/monitoring ('right' - Testing in Production). I'm sure that most of my readers employed as QA/testers observe that their responsibilities often go beyond simple testing role. At least that's what I encouraged you to do in my posts, for example Testing Learning Checklist. It's worth to remain once again that traditional (mostly manual) QA is getting obsolete. It was confirmed by Yahoo decision to disband their team.

3) Engineering Productivity goals & responsibilities

In summary Engineering Productivity team wants to make sure that:
a) software is released as fast as possible
b) software has the highest quality possible
c) software works correctly on production

In the past QA team was focused mostly on point b leaving a to developers and c to operation team.

New goals have impact on tasks performed by EP (Engineering Productivity) team. Testers responsibilities change in the following way:

a) More focus on test frameworks, internal consulting and coaching

Demanding business realities usually mean that developers have to write tests. To be fully effective They need guidance & tools provided by experienced testing specialists. 

EP team should also provide correct guidelines. For example 100% unit tests coverage probably won't detect performance problems. Limited testing effort should be used in correct place.

b) Shift left in software engineering process

Obviously testing at the beginning is the cheapest. Spending time on things like IDE plugins, unit tests, code coverage tools, effective code review, OWASP secure coding practices usually have high ROI (Return of Investment). EP team should also make sure that no failures are allowed to move downstream on Continuous Integration process.

c) Shift right in software engineering process

Successful release doesn't end EP team duties. They need to constantly monitor how their application perform on production. See my Testing in Production post for detailed techniques how it's done.

I have also covered shift left & right in software engineering process in my Continuous Testing post.

d) Need for speed

EP team should make sure that testing doesn't become a bottleneck and it doesn't slow down developers. For example if Selenium E2E run too long at some point they will stop giving any feedback at all, because people won't run them.

See my Continuous Improvement post for details.

4) Roles in Engineering Productivity team

Looks like there are no correct EP team structure and it's implementation varies in various companies, but we can distinguish:

a) Test Engineers (TE)

Testers with broad product & business domain knowledge who focus on what should be tested. They drive test strategy and help to identify product risks. Usually aligned in Scrum Team.

b) Software Engineers in Tests (SETs) 

Software Engineers (developers) interested in testing domain who build frameworks and tools aiming to speed up software engineering process.

c) Software Engineers, Tools & Infrastructure (SETI)

Google name for SETs.

d) Release Engineers, CI Engineers, DevOps Engineers, TestOps Engineers

Highly technical role which focuses on Continuous Integration, Continuous Delivery and whole release process automation. 

e) Site Reliability Engineers, Software Reliability Engineers (SRE)

Another highly technical role which focus on production platform maintenance, performance, monitoring and scalability. Google described this role in detail in their opensourced book.

f) Product Owner, Product Manager

According to already mentioned Ashley Hunsberger if we invest in such a big team it should be led by someone who not only plan work, but also stays in contact with business. Generally speaking he should make sure that EP team goals are aligned with business goals. I highly recommend Ashley's talk from Selenium Conf 2017 called Transformative Culture about this role in EP team.

5) Further reading & talks

Ashley Hunsberger - Blog, Selenium Conf talk
Google Testing Blog - From QA to EP
Manasi Joshi - GTAC 2016 talk about EP in Google AdSense