Skip to main content
Jono's Corner

Confessions of a Good Samaritan Coder

Many years back I was working on a small backend team and we got a new hire who came from a career of solo web work. He was quite a good Rails coder and I liked his work, but testing was sort of a new concept for him. After all, he was pumping out small sites for clients. Why would they need testing? They wanted a web page quickly stood up. Fair.

On some of his early work on the team, our QA guy found a few issues on Mr. Freelance's new feature. And boy, did that not go over well. It was taken very personally. I tried to explain to him that QA's job is catching the bugs before they get to the users. They're on our side - not against us.

I call this post a "confession" because:

A. In my experience there has historically been a lot of animosity towards QA personnel.

B. In the last few years, open source projects have been trying to figure out how to deal with being flooded with issues and pull requests due to people employing AI.

So here's my confession: I'm one of those people. I use AI to file issues and send pull requests to projects I don't maintain, often in codebases I know little about. I think, done right, that's a good thing.

This influx of contributions is a real bottleneck on already overloaded volunteers. There are projects that have gone so far as to turn off submissions entirely. Some of these submissions are indeed slop, pointless noise, or even malicious. But a lot are not. My intent with this write up is to show the perspective of an eager coder who wants to help and sees this as a new opportunity for the community as a whole. Done right, an AI-assisted bug report should land the way good QA does - from someone on your side.

On QA and testing

I've always been a testing-obsessed coder. A well tested system gives me confidence in my ability to work on projects without breaking things. It's a mentality that has helped me drive teams, give talks, write libraries, and take a stab at writing a book on the topic. And man, have I written a lot of mock data generation systems over the years.

I have not been on a team with any QA in over a decade. That role has changed a lot. And even more so the world of automated testing is being challenged as the quality of LLM coding improves.

Some think greenfield apps can get by with less testing. The thought being that the newer LLMs make so few mistakes that the code takes care of itself, and tests just become brittle, slow, and performative. I am not in this camp, but I do think there are subtleties to be learned here.

Others argue that testing is more important than ever, as we build faster, more complex, harder to understand systems. See the explosion of CVEs raised in the last month alone with PHP (RCE and PHP2Shell), Node.js, Java, Linux, and Certificate Authorities. Heck. The whole internet is on fire. Who knows what's next?

Cloudflare encryption freak out

I think we all could use a little more testing.

Remember those eager tests LLMs were pumping out a couple years ago that were great for coverage, but nothing else? They often came down to 'a-b = a-b'. Talk about a waste of electrons. Test generation has become much more intelligent since, and when directed, can work very well in your favor. For example I find having my agents rely on TDD has been quite fruitful. I can see this changing in the near future, but for now it's super effective.

This carries over to contributing, too. The best thing you can hand a maintainer is a failing test that reproduces the bug. It proves the problem is real, shows exactly what your fix does, and is the clearest signal that your PR isn't slop. If the setup is not there, I sometimes spin up a new repo just to make a case in the ticket.

Joining the discussion

I've been using Linux since the 90s, and always wanted to give back. Back then I was a hobby coder, but certainly not a kernel developer. I open sourced some of my small web projects here and there but was reluctant to stick my fingers in others' work. Then Firefox came along. Another poster child of open source success which I was certainly in love with - but I didn't want to mess anything up in that code of worms.

There were still plenty of other projects out there if you could find where they lived. I slowly joined mailing lists and got access to repos with permission. There, we could discuss new ideas, documentation, and give feedback.

Linux distros always shipped with an overwhelming list of thousands of apps to install right out of the box. I loved trying these, combining them, breaking things, and getting ideas. I was a kid in the candy store of open source.

Oh, the unsung heroes. Packaging these one-off dorm room projects into the FreeBSD packages repository. I liked stumbling upon things like this one for using your CRT monitor to transmit audio over AM signal.

Was anyone using these apps though? I wanted to try them all. When GitHub came along, the barrier to entry dropped dramatically. Now I could easily file bugs, and join existing discussions on almost anything. This is where my good samaritan methodology began. Typically when people would try an app and it didn't work they would just move on and never tell the developer anything.

If I downloaded a new audio player for example, and pressing a button crashed it, I would immediately file a bug report before uninstalling. Free QA FTW! Wouldn't you want to know if everyone is skipping on your app due to simple, preventable errors? Yes. Yes, I would.

I have done this for so long that I regularly get messages on tickets years later - that I have no recollection of filing. To me, these are like little presents in my inbox. Recently I got an update on one that I filed long ago concerning a GNOME issue in NixOS. There had been a trickle of discussion here and there, but after 10+ years it was finally resolved.

Giving back with code

Now we get to today where I can do so much more than filing an issue. With LLM support now, bug reports can be super detailed and actionable. They can point to the release that introduced the bug or even the line of code that caused it. If appropriate, I can submit a PR as well. Today's LLMs are great at forking, spinning up test repos, finding contribution guidelines, cross testing, following up on discussions, etc.

Last week, at work, a docker container broke due to a python package upgrade. Claude narrowed it down to a new pg8000 release, which caused a conflict. Our package pinning was not working. Fine - easy fix.

Meanwhile, I forked the session and had it see if this was a bug in pg8000 itself, and if so, to file a bug report upstream. Three minutes later, it had found the exact issue and how to fix it. Also, easy. I filed an issue along with a pull request. For the people!

pg8000 is a python lib for accessing PostgreSQL. Beyond that, I know very little. Looking into it, I saw it is one of those situations where a solo developer supports millions of downloads.

No one is obligated to accept my PRs. This is just free, drive-by cleanup. So far, everyone has been grateful for the support. In the past few weeks alone, I have contributed to so many projects, that I created a dashboard for myself since I was losing track.

contributions dashboard

Agent ambassadors

In a different area, I have recently been quite active in the remoteStorage community. I'm very late to the game, and it seems like the community all but came and went 10 years ago. Regardless, I'm getting in there and have spun up a bunch of my own ideas, multiple services, and apps that use it.

In the process, it has also led me to fix and improve the existing libraries. Maybe because Claude is such a sycophantic enabler, I have gone further, and even pushed updates to the protocol itself.

This fits with the story of how most people gradually get involved in projects they love, but the way I got here was different. This job of bringing in developers used to be the job of project ambassadors. I'm thinking back 10 years to my time working on OpenFaaS and even farther back to when I was working on gedit. There were great stewards of open source who assumed the role of bringing in and educating new contributors. An often thankless but necessary job in free software communities.

This time, my ambassador was an agent. It read the specs, walked me through unfamiliar codebases, and pointed out where I could be useful. That used to take a patient human with spare time. Now anyone can have one on call.

What you can do

With the access to intelligence we have, you don't need a deep understanding of every arbitrary tech stack your favorite project happens to use. You are not limited to only helping with docs and translation.

Of course there are many other ways to contribute to these projects besides waiting to experience bugs. Someone eager enough could prompt their agent like so:

"Look at the list of apps I use regularly on my system. Do a survey of which ones are open source, widely used (stars or downloads), but have little activity in their public repository. Make a list of those projects and find some tickets that seem like they are small and self contained which we can complete and submit."

or

"I love <project>. What are some ways I can put you to work helping there? Are there open tickets, testing gaps, architecture review, clean up, packaging, common themes in the forums, etc?"

The open source world is your oyster and your agent is your ambassador.

Before submitting a pull request, I recommend asking or making a skill that checks:

When only filing an issue, follow up if you can. Though it's not always necessary. For example, after I filed that GNOME issue years ago, someone may submit a fix and ask for my feedback months later. If I'm not using GNOME any more, I may not be that useful. The good samaritan would go spin up a VM and give it a go, but that's not for everyone.

However, when making a PR, please see it through to merge. You are assuming a higher level of responsibility - where your code will live on. So if there is feedback, spin up that branch again and address the fixes that are needed. That's good will, and will boost your credibility with the community.

I've been on the receiving end of this too. Recently someone filed a high severity security advisory on a not-well-known app of mine. For which I am grateful. But how on earth did he even find my project? There are probably white hats scanning across GitHub for specific security vulnerabilities. Thanks for making the internet a safer place.

On an internet increasingly filling with slop, misinformation, and stupid videos, let's use AI for good, while we still can.

Viva open source!