How We Dey Work

Theme: Light

← All articles

Di Pragmatic Open Source Contributor

https://diurnal.st/2025/03/02/the-pragmatic-open-source-contributor.html

Dem pick am from di original and edit am make e focus.

Wetin dey inside:

  • Step 0: Talk to legal
  • Step 1: Sabi how di land be
  • Step 2: Get maintainer buy-in
  • Step 3: Do di work
  • Step 4: Do di oda work
  • Step 5: Finish line
  • Step 6: Tie am up

Sometimes I get di feeling say programmers wey dey get salary dey shy away from fixing or extending open source code because of some of dis reasons put together:

  • Dem no think say na part of dia job.

  • Dia employer no think say na part of dia job, and/or e no get di legal setup and will wey e need.

  • Dem don vex before because dem reject or ignore dia patch requests.

  • Dem dey worry about di time wey di whole process go take.

Dis barriers dey understandable and I wan break dem down. To talk am more broad, I get two aims for dis guide.

First, I hope say e go encourage us to grow di shared knowledge wey open source software represent. Especially if una dey work for bigger-scale places or una dey among di first people wey dey use promising new technologies, una get better opportunity to see issues and areas wey fit improve wey go benefit everybody.

Second, I wan give playbook for how to do dis kind work well and set expectations for wetin you fit expect and wetin dem go expect from you. I don make contributions to many projects over di years, and normally my pattern be to find some code wey solve 95% of my problem and contribute di 5% wey remain back. I don also work pass for one single open source community, OpenStack, where public contributions and distributed coordination na di normal way.

Before you do anything else, get approval from your legal department. Even if na project wey no get Contributor License Agreement (CLA) you dey contribute to, you get duty to make sure say you no dey add risk to your company or to yourself. Ideally, dis conversation go end with approval to sign any CLAs wey dem don review; Company CLAs (CCLA), if di project support dem, fit let new members of your team get dia licenses by demself, and dem dey last pass individual CLAs wey dem tie to one employee.

Dis one fit be small uphill battle, but from my experience na mostly battle of time. You fit need patience to waka all di stakeholders go through di business case for why to contribute back to open source, and any risks wey fit dey. Na dis argument I dey usually lean on:

  • Right now we dey use open source system X, and e dey give business value through capabilities and cost-efficiency, i.e., e dey usually free, “as in beer.”

  • But e no fit handle some new business use-case without modification.

  • Di effort to modify am small compared to di work to go round di constraint.

  • We no need to expose proprietary code and we no go expose am.

  • If we adapt di code privately (forking), e go bring long-term maintenance burden and add risk. E fit be say dem go change X for future for way wey go need big rework of our adaptations, and so e go block us from doing security upgrades.

  • If we adapt di code publicly, e go reduce dis risk and (especially if X well-known for di industry) e fit even help attract new talent because di company go dey more visible.

  • So to contribute to X dey for di business best interest.

I never see dis argument fail when motivation dey enough. But I sure say exceptions dey. One thing to remember be say you no dey argue say make dem actually do di work or estimate di time commitment or return on investment; you dey make case for di option. Even so, you suppose ready to give concrete examples of di type of contributions wey you fit make.

Step 1: Sabi how di land be

I dey see developers wey dey skip dis step and go straight to submit patch. Dis one fit cause frustration for you and for di maintainers. If you do quick check of any contribution process wey dem don define and put yourself for di maintainers’ shoe, e dey often prevent dis issues.

Wetin be di contribution process? You need to sign CLA first? Dem dey welcome pull requests for di repo? You fit find examples of contributions from outside? How di maintainers take respond to di contribution request? Anything dey wey you fit learn from am?

How active di maintainers dey? Dem dey review patches every day, or e look like say e no dey regular? You fit notice any pattern for how and when dem dey respond to queries? Maintainers dey share di work or na only one owner dey? If dem dey share am, who dey most active recently?

How long e go really take? How long e dey take from di time dem open pull request to di time dem merge am? How much of dat time na to wait for di patch author, and how much na to wait for feedback from maintainers? How many patches you think say you go need do, and dem need to dey done one after di oda? From dis, you fit usually get rough estimate, but I get one heuristic too: expect two weeks to one month for bugfix to land, and three months to one year for major feature work. Plenty of dat one depend on how much of your attention you give to take care of di process.

Step 2: Get maintainer buy-in

For small changes, you fit usually skip dis step. But if you dey think of make any significant changes to di codebase, to invest time here go make di whole process smooth well. Your objective be to identify at least one maintainer wey go help champion your change.

Meet di maintainers where dem dey. Dem get Slack channel wey dem dey use to coordinate changes and share info? Special interest group (SIG) meeting wey dey happen every two weeks? Mailing list? Find out which communication method dem prefer, then introduce yourself. Give small background on who you be and why you dey interested to contribute to di project, and which problem you dey try solve.

Follow di formal proposal process. If di project dey use proposal system (e.g., di Kubernetes Enhancement Proposal [KEP]), learn how to submit proposal. You fit talk to maintainers before you make proposal, or tell dem after you don submit di proposal. I still believe say “warm handoff” important here, to actually reach out to di maintainers in person make dem sabi say you dey open to discussion and say you serious about to start di process of making significant contribution.

Agree on scope and keep paper trail. If for your conversations with di maintainers una reach agreement on wetin di scope of your contribution go be, and, importantly, wetin fit count as out of scope, make sure say you write am down for somewhere public. Dis one fit help give context to oda maintainers wey fit review di work later. Generally, dis information suppose dey inside proposal document too, if dat process dey, but e still good to get oda records.

Step 3: Do di work

No fear to fork. Some people dey shrink back when dem hear di word “fork.” Personally, when I dey work on open source contributions, I always dey fork di project, make di patches there, and use di fork inside for small time. You dey make trade-off between speed of delivery (to use your patch immediately) and maintenance burden (to carry your fork go through upgrades); for di places wey I don work, di first one dey usually beat di second, depending on how often you expect to pull in upstream changes. If you fork internally, e also let you battle-test your changes for real environment before you submit di patches upstream. I dey often find bugs dis way, or I fit correct wrong assumptions about how something dey work for practice.

Work backwards from di specific outcome wey you want. Work to find generic mechanism wey go help achieve dat outcome (and maybe oda ones too.) For example, for dis old webpack patch, wetin I want na way to put Git commit SHA inside di name of files wey webpack build. Instead of to code dis case directly, I propose way to let plugins provide support for new filename pattern placeholders. Dis one let me handle my needs inside separate plugin, and e look like say e don useful to oda people over di years.

Add tests. If you find bug for some code, e probably mean say good-enough test no dey for dat behavior. Add test wey go fail without your patch and go pass with your patch. If you dey add new functionality, make sure say good coverage dey. Di maintainers go be di ones wey go answer for bugs inside your code finally, and your job na to reduce dat burden as much as you fit. Sometimes e dey happen say di test infrastructure wey fit express di tests wey you need no dey. For dat case, reach out to di maintainers ask dia opinion on how to go forward; often, dem go dey okay with less test coverage because dem dey work to figure out generic solution to test dat part of di code.

Keep every patch to one atomic change. Di meaning of “change” here open to interpretation. If you dey work plenty inside open source project and you dey implement big feature wey touch many areas of di code, you suppose probably break each piece of di implementation into one patch wey target one subset of di codebase. Dis one work best if di broader context of your work known and dem dey track am formally; no be all projects get dis infrastructure. I like to keep my patches scoped so say di reviewer go get less context overhead. For example, when I dey work on bigger feature, first I identify one (quite big) refactor wey I fit do wey go make e easier to implement di feature. I submit one patch for dat change, and then one patch for di minimal feature implementation.

If your atomic change still big, break am into iterative commits. For di latter example patch, I break am into several commits so say e go easy to review and to see di thought process. I fit don break dose commits into separate pull requests, but e seem to me say e dey reduce cognitive overhead (for di reviewers) when everything dey inside one pull request wey dem fit refer to and iterate on. You fit always break am into separate requests later if you don structure di commits dis way.

Keep refactoring to minimum. E fit tempt you to “clean up” oda areas of di code wey no relate directly to your code. E fit hard, but you suppose try no give in to dis impulses. Any unnecessary refactoring, especially when e concern readability or styling of code, dey add to di work wey di reviewer must do and e dey disturb di message of wetin you really dey try achieve with your patch. Reduce refactoring to only wetin necessary to make your change possible. Later, you fit come back do di refactor if you want. Patch requests also be good opportunity to ask di maintainers how dem go feel about such refactor for future, so you fit get early buy-in.

Preserve backwards-compatibility. Plenty people dey use open source projects and you no fit know all di ways wey dem dey use am today. You don probably suffer before when library change default behavior or its API surface without major version bump. Major versions na big steps for open source codebase and if you tie your change to breaking-change release, e go increase di latency before your change go dey available well well. So, work make sure say wetin you do no break existing behavior.

Step 4: Do di oda work

Write good documentation. You suppose write docs for any new capabilities wey you dey add to di project. Sometimes you need to add whole new section of documentation! I no think say I need argue for di benefits of documentation, and how e dey frustrate when documentation sorely lack. If dis task particularly hard for you, I guess say LLMs dey pretty good at writing docs these days, and dem fit be good tool to summarize how feature dey work for format wey easier to consume. I never try dis myself yet and I still dey write all documentation by hand.

Examples na documentation too. Usually, technical documentation for open source code dey be di “technical reference” type. But na only one type of documentation be dat. Examples dey add more “how to” flavor, and sometimes to show really better pass to tell. If you dey add anoda feature to di code, you suppose provide some examples of how to use am.

Step 5: Finish line

Proactively reach out to di maintainers. Use dose channels and connections wey you establish for Step 2 if na bigger change. Maintainers fit want discuss your change formally as part of dia own processes, and if you give dem heads-up say your patch ready for review, e fit help dem figure out how to prioritize am. For smaller changes, I no dey usually do dis, because I think say e dey annoy small to just ping maintainers for something wey dem don already get notification about through di patch request itself.

Politely check in from time to time to raise visibility. If I dey get wahala to get any eyeballs on patch request, I dey usually wait one or two weeks and then ping some maintainers nicely and request make dem please look-see di patch, or ask if anything else dey wey I suppose do. If e no work first time, I go do am again after about one week. If about one month pass, I go start to dey more creative and see if I fit reach dem for anoda appropriate public social channel. Always dey polite, and no ever dey pushy; even though you think say you dey help di project, you also dey take di time and attention of maintainers.

As soon as you get attention from di maintainers, jump into action. Especially for bigger requests, if you get first-pass review of your code, try respond to feedback within one day or so. Dis one dey keep di patch conversation fresh for everybody. Di maintainer just spend time to build context on your work by reviewing your code and from my experience, dem dey appreciate quick follow-through on comments. E fit hard to balance dis one depending on your own job commitments. I dey try set expectations say when patch reach final stages, I suppose get some work time wey I set aside as buffer.

Step 6: Tie am up

If you reach here, dem accept your patch! Always get one great feeling (of relief?) when you see say di merge complete successfully. E no dey always happen—I get some pull requests wey don dey sit for years dey collect small trickle of sad “+1” comments. As pragmatic contributor, dis one no too big matter, because e usually show say di code no dey change plenty and so e no be too much work to maintain your own fork.

Thank di maintainers wey review your code. To be maintainer na often thankless task, so I see say sincere thank-you dey go far. I dey often learn plenty from code reviews with open source maintainers, and I dey see am as gift. You fit just leave thank-you for your patch conversation, or reach out directly, whichever one look more appropriate based on your past communication with dem.

Reduce your bus factor. You start work on longer set of related features? If yes, make sure say you clearly document wetin di next steps for di work be for somewhere. Plenty things fit happen. You fit get involved for oda work commitments wey go take all your attention, dem fit lay you off, your company fit stop to use di software wey you patch completely. Still, somebody fit want come later to finish wetin you start. E suppose possible to do dat without your involvement.

Bring your patches back internally. If you don dey work on private fork of di code, work to bring your changes back inside your fork. Maybe you don even make am possible to stop to use your fork entirely!