<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bharath Malemarpuram on Medium]]></title>
        <description><![CDATA[Stories by Bharath Malemarpuram on Medium]]></description>
        <link>https://medium.com/@bharathmalemarpuram?source=rss-52b4aab152ca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Q5GfPsFsx80AfxDo.</url>
            <title>Stories by Bharath Malemarpuram on Medium</title>
            <link>https://medium.com/@bharathmalemarpuram?source=rss-52b4aab152ca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:49:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bharathmalemarpuram/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[50 Git Subcommands and What They Taught Me About Developer Experience]]></title>
            <link>https://medium.com/@bharathmalemarpuram/50-git-subcommands-and-what-they-taught-me-about-developer-experience-43670ac5c652?source=rss-52b4aab152ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/43670ac5c652</guid>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[developer-experience]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Bharath Malemarpuram]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 15:43:46 GMT</pubDate>
            <atom:updated>2026-10-23T15:43:46.081Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I built the first version of a CLI that turned our whole dev/test/release workflow into </em><em>git commands. Here is what I learned.</em></p><p>At a company I worked at, our dev/test/release workflow had a familiar problem. It lived in wiki pages, in shell history, and in senior engineers’ heads.</p><p>Want to run the right tests for your change? There was a wiki page. Want to cut a hotfix release? Ask someone who had done it before. Want to check for leaked secrets? Hope you remembered.</p><p>I started fixing this with an internal developer platform: a Python package that added more than 50 subcommands to git. I wrote the initial version — the first batch of commands, including the hotfix flow, the review flow, and the integration-test flow. It began as a dev-only tool. Then everyone in the software division adopted it, and engineers started adding their own commands, scaling it far beyond where it started. Building that first version taught me more about developer experience than anything else in my career.</p><h3>Meet developers where they already are</h3><p>The core idea was simple. Developers already live in the terminal, and they already type git fifty times a day. So the platform did not ask them to learn a new dashboard or a new tool. It just extended the tool they already used.</p><p>Everything was git &lt;verb&gt;:</p><ul><li>git blackbox — smart test selection. It analyzed what changed in your branch and ran only the tests that mattered, using ML-based subsetting. Then it fanned the run out across 16 parallel run groups. It was wired into PR checks, so every pull request got a fast, relevant test run without anyone thinking about it.</li><li>git integration-test — change-aware guardrails before you push. It checked code formatting first (or reformatted it for you), then kicked off the integration-test job in CI. And it knew what you touched: change UI code or the API schema, and it reminded you to run the GUI sanity suite and get someone from the UI team to review.</li><li>git review — the entire PR ritual in one command. By default it ran lint and style checks locally against your changed files, and refused to raise the PR if anything failed. Then it pulled latest, rebased, created the remote branch, set the upstream, and opened the PR — as a draft, by default. It could create the Jira ticket, move it to In Review, and link the PR back to it. Then it prompted you with a description pre-filled from a template (background, problem, solution, testing done), with sensible defaults. You reviewed and confirmed. -v skipped the checks when you explicitly wanted that. It even verified the tooling itself was up to date before running.</li><li>git hotfix-build and git hotfix-publish — the hotfix release flow as commands, with a --dry-run flag so you could rehearse the whole release without touching anything real.</li><li>git back-port — porting a fix to a release branch, without the manual cherry-pick dance.</li><li>git-leaks — secret scanning, containerized so it behaved the same on every machine.</li><li>git linux-pkg — Linux packaging build tooling, one command instead of a wiki page of steps.</li></ul><p>Nobody had to remember the workflow anymore. The workflow was the command.</p><h3>What it taught me about developer experience</h3><p>Meet developers where they are. The platform succeeded because it removed learning, not because it added features. It lived inside git, the tool everyone already knew. Adoption was never a problem because there was nothing new to adopt.</p><p>Make the safe path the easy path. The most dangerous commands had --dry-run. git review refused to raise a PR when prechecks failed — unless you passed -v, an explicit choice to skip them. Guardrails were subcommands, not wiki pages nobody reads. When the safe way is also the short way, people take it every time.</p><p>Automate the small jobs too. Raising a PR takes five minutes. But it is ten small steps, and everyone skipped a different one: forgot to pull latest, forgot to set the upstream, left the description blank. git review did every step, every time, without a miss. The mistakes automation kills are rarely in the big dramatic steps. They hide in the minute details nobody thinks are worth automating.</p><p>Hide the clever, show the simple. Behind git blackbox sat change analysis, ML-based test subsetting, and 16-way parallel execution. The interface was two words. Complexity belongs under the hood. The surface should stay boring.</p><p>Consistency beats features. Fifty subcommands sounds like a lot to learn. It wasn’t, because they all worked the same way. Same command shape, same flag conventions, same help output. Learn one, and you can guess the rest. A platform with consistent habits feels small no matter how big it gets.</p><p>Internal users are still users. The package was versioned. It had docs. Its error messages explained what went wrong and what to try next. We treated teammates like customers, because they were. An internal tool with bad errors is just a wiki page with extra steps.</p><h3>The quiet metric</h3><p>Nobody ever praised the platform. That was the point.</p><p>Good developer experience is invisible. Nobody writes a thank-you note for the tool that just worked. The sign it was working was what disappeared: the wiki lookups, the “how do I cut a hotfix?” questions, the broken releases, the secrets committed by accident.</p><p>If your team’s workflow lives in wiki pages and senior engineers’ memories, there is a CLI waiting to be written. Put it inside the tool your team already uses. Make the safe path the easy one. Hide the clever parts. Your future self — and every new hire after you — will thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43670ac5c652" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Replaced Manual Test Environment Setup With One CLI Command]]></title>
            <link>https://medium.com/@bharathmalemarpuram/i-replaced-manual-test-environment-setup-with-one-cli-command-d48e57503b1c?source=rss-52b4aab152ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/d48e57503b1c</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Bharath Malemarpuram]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 16:28:37 GMT</pubDate>
            <atom:updated>2026-10-15T16:28:37.849Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How a small Python tool took us from a product image to running tests in a single step.</em></p><p>At a company I worked at, we shipped our product as an installer. Customers installed it on their own machines.</p><p>That meant one thing for testing: there was no staging environment. No shared place where the latest build was always running. Every test needed a fresh environment, and every environment was built by hand.</p><p>Here is what that looked like. You downloaded the build. You found a free machine. You ran the installer. You clicked through the setup. You configured the product. Then you ran your tests.</p><p>Every engineer did this a little differently. Environments drifted. A test would fail, and the first question was always the same: is this a real bug, or is my environment just broken?</p><p>Shared environments were no better. A few standalone environments existed for the whole team. You waited for one to be released. You worried about whether someone else was using it, and what state they left it in.</p><p>The frustrating part: we already had the capability to destroy an engine and spawn a fresh one. Nobody used it. Doing it by hand meant multiple logins, clicks, and commands across different systems. Best case, 15 minutes. Worst case depended on how attentive you were that day. The capability existed. The friction killed it.</p><p>I got tired of all of that. So I built a CLI. I called it spin.</p><h3>One command, start to finish</h3><p>The idea was simple. One command should take you from a product image to running tests. No clicking. No manual steps in between.</p><p>It looked like this:</p><pre>spin clone-latest --cloud aws</pre><p>That single command did the whole pipeline:</p><ol><li>Pulled the latest product image from our artifact repository, or from the cloud marketplace.</li><li>Deployed a fresh engine on the target. The target could be an on-prem host or a cloud machine. AWS was the default. You picked with a flag, nothing else changed.</li><li>Waited until the engine was ready.</li><li>Ran the test suite against it.</li></ol><p>When it finished, you had test results from a clean, known-good environment. Every time.</p><p>The deploy that took 15 minutes by hand now took under 2 minutes.</p><h3>Three design choices that mattered</h3><p>Small commands that compose. spin was not one giant script. It was small commands: fetch the image, deploy the engine, run the tests. Each one worked on its own. clone-latest just chained them. When something broke, you knew exactly which step failed.</p><p>The target is a flag, not a fork. On-prem or cloud, the command shape stayed the same. Only the target changed. This sounds obvious, but it is the decision that kept the tool from splitting into two tools.</p><p>Config lives outside the tool. Machine sizes, regions, credentials. All of that sat in config files, not in the code. Adding a new target meant writing config, not changing the tool.</p><h3>It became a toolkit</h3><p>spin started as one command, but it grew into how the team managed engines day to day.</p><p>spin list showed your engines and what state each one was in. spin destroy cleaned up when you were done.</p><p>Nightly runs got a small feature with a big payoff: when tests failed overnight, the engine was preserved in a stopped state instead of being destroyed. A developer or tester could open it up the next morning and read the logs on the engine itself. No more “it failed overnight and the evidence is gone.”</p><p>Everything was tied to your user account. Your engines were yours. Nobody else’s commands touched them. That mattered more than it sounds. Per-user ownership removed the exact fear that made shared environments painful: someone else messing with your box.</p><h3>What changed</h3><p>The biggest change was not speed, though setup got much faster. The biggest change was trust.</p><p>Before spin, a failing test started a debate about the environment. After spin, the environment was the same every time. If a test failed, it was a real failure. That one change made test results mean something again.</p><p>It helped development just as much as testing. Developers could spin up a fresh image on the spot, push their code changes to it, and test right away. No waiting for a shared standalone environment to be released. No worrying about who else was using it. Everyone got a clean box, on demand.</p><p>The test framework went further: it spawned a fresh engine for every run and tested the code changes against it. Same clean starting point, every single run.</p><p>Testers stopped babysitting installers and spent their time testing. New team members could run the full suite on day one without a senior engineer walking them through setup.</p><p>The same idea grew from there. We built one-command wrappers that ran our functional, performance, and scale suites across on-prem, AWS, and Azure. Same principle: one command, same result, every environment.</p><h3>What I would tell anyone doing this</h3><p>Automate the boring path first. I did not handle every edge case on day one. I automated the happy path: latest image, standard config, run tests. Edge cases came later, driven by real requests.</p><p>A CLI scales knowledge. Before spin, environment setup lived in people&#39;s heads. After spin, it lived in a tool anyone could run. If only you can do it, it does not scale.</p><p>Keep it small. The tool grew because people asked for features, not because I planned them all upfront. Small tools that do one job well beat big tools that try to do everything.</p><p>If your team still builds test environments by hand, there is a CLI waiting to be written. Start with the boring path. Make the target a flag. Keep it small. Your future self will thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d48e57503b1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>