|
| 1 | +## Title |
| 2 | + |
| 3 | +Incubator Pipeline |
| 4 | + |
| 5 | +## Patlet |
| 6 | + |
| 7 | +A team maintains a shared code library that other internal engineers need to use. The other engineers want to make improvements or use their own code. Leveraging an incubator model, the shared library team can establish a lower bar to enter the incubator pipeline and a higher bar to exit the pipeline and become a top-level unit in the library. |
| 8 | + |
| 9 | +## Problem |
| 10 | + |
| 11 | +A team charged to maintain a shared library is responsible for the quality of the components in the library. If you offer them code from another team, they face the dilemma that the other team’s code might not meet their requirements, and it’s unclear if they’ll be able to support that code. If other teams can’t offer code, they may be reluctant to use the shared code, or they may be forced to use inadequate code from the central team, causing issues for their product. |
| 12 | + |
| 13 | +The team managing the shared code library needs a way to allow InnerSource contributions to their supported library of components but also to distinguish between contributions that are up to the standard, or that are on their way to the standard. |
| 14 | + |
| 15 | +## Story |
| 16 | + |
| 17 | +See [Culture, Behaviors, and InnerSource. A three-part blog series. 3 of 3](https://www.linkedin.com/pulse/culture-behaviors-innersource-three-part-blog-series-3-gil-yehuda/) for the conceptual inspiration for this pattern. |
| 18 | + |
| 19 | +_Note: This may be replaced with a direct story from the dev team who implemented this pattern. Watch this space._ |
| 20 | + |
| 21 | +## Context |
| 22 | + |
| 23 | +We find the pattern to be useful when there’s a team at a company that is responsible for creating code assets that other engineering teams at the company must consume. For example: |
| 24 | + |
| 25 | +1. the team that creates the centrally approved library of UI components, |
| 26 | +1. the team that builds the build pipelines and installation scripts, |
| 27 | +1. the team that builds microservice template code, etc. |
| 28 | + |
| 29 | +These teams are held to meet certain standards (e.g., UI teams ensure all components comply with accessibility standards, can be themed and placed on the UI grid in a manner consistent with other components and company requirements; pipeline and install scripts might require certain boilerplate code for compliance logging or security controls, etc.). |
| 30 | + |
| 31 | +However, the shared code library team does not want engineers to “roll their own” solutions either. But the user-teams may have needs not met by the shared library team’s code. Since they are engineers, they’ll want to create or find their own solutions. Doing that threatens the shared library team and creates multiple solutions. Whereas that’s sometimes okay, in some cases companies want to use InnerSource to maintain consistency without stifling innovation. |
| 32 | + |
| 33 | +## Forces |
| 34 | + |
| 35 | +If the shared library team insists that they alone are the exclusive source of approved code, they limit the company output to the shared library team’s capacity. If the needs exceed the capacity, everyone suffers. However, if the shared library team cannot prevent other teams from creating their own solutions, they lose their role as a standards-setting team and simply become a team that provides technology that only some teams use. |
| 36 | + |
| 37 | +For the customers of the shared library team’s code, they too face a challenge. The library provided may be insufficient. They’ll need some other solution. But breaking rank will cause downstream tension when it comes time to merge their rogue code with the approved code. They want to follow the company protocols, but they also need to deploy their products. |
| 38 | + |
| 39 | +## Sketch (optional) |
| 40 | + |
| 41 | +None yet |
| 42 | + |
| 43 | +## Solutions |
| 44 | + |
| 45 | +The shared library team provides an incubator pipeline for their (internal engineering) customers to use. Customer teams who need to augment the shared library can do so by petitioning to enter the incubator pipeline. Additionally, central teams can request contributions into the incubation pipeline. The shared library team maintains an acceptance criterion to get into the pipeline. This may include some demonstration that at least one other team would find the contribution useful, that the contribution could (perhaps with some additional engineering work) be enhanced to conform to the shared library standard. **In other words, no code should enter the incubation pipeline that we know cannot exit it.** |
| 46 | + |
| 47 | +Once in the incubation pipeline, the shared library team and contributing teams can select a support agreement that enables teams to use the incubating code, but to understand that its support is less than a top-level component in the library. It is a second-class citizen that is on the way to becoming a first-class citizen. |
| 48 | + |
| 49 | +Exiting the incubation pipeline means the code is a first-class citizen and member of the shared library. In this case, the shared library team may not have created the code, and may not have enhanced the code. But they will be willing to support the code as if they created it because it meets the criteria they set for their own code. It is possible that a component fails to graduate the pipeline. In that case, the component would be retired out of the incubation pipeline. |
| 50 | + |
| 51 | +## Resulting Context |
| 52 | + |
| 53 | +When a customer-team needs code that the shared library team does not have, they have a path to success. They can create and propose a solution to be included in the incubator pipeline. (They might find an open source solution too.) This does not pose a threat to the shared library team. In fact, it allows the shared library team to grow their library at a faster rate while maintaining quality control by staging the contribution. |
| 54 | + |
| 55 | +Moreover, by defining an incubation process, the shared library team clarifies their criteria for inclusion into the library. This helps new members of their team too. In fact, this allows any engineer who can meet the criteria to become a "member of their team" even if only for a component or two. |
| 56 | + |
| 57 | +## Rationale |
| 58 | + |
| 59 | +Incubation pipelines allow participants to view code as potential and improving assets. Too often, people see code as being good enough or not good enough. In reality, code can become better. Formally putting code in an incubation status sends the message that the code is not yet good enough but is getting there. |
| 60 | + |
| 61 | +## Known Instances |
| 62 | + |
| 63 | +Being implemented at U.S. Bank. |
| 64 | + |
| 65 | +## Status |
| 66 | + |
| 67 | +Initial |
| 68 | + |
| 69 | +## Author(s) |
| 70 | + |
| 71 | +* Bryn Sharpe |
| 72 | +* Gil Yehuda |
| 73 | + |
| 74 | +## Acknowledgements |
| 75 | + |
| 76 | +* Kevin Bongers |
| 77 | +* Anton Fernando |
| 78 | +* Levi Geinert |
| 79 | +* Travis Killoren |
| 80 | +* Dave Lester |
| 81 | +* Mike Lupo |
| 82 | +* Logan Price |
| 83 | +* Joseph Ryan |
| 84 | +* Michael Schlies |
| 85 | +* Michael Schulz |
| 86 | +* John Sibo |
| 87 | +* Jennifer Skov |
| 88 | +* John Yopp |
| 89 | + |
0 commit comments