DEV Community

Cover image for Part 6: The Walkthrough That Only Worked on My Machine

Part 6: The Walkthrough That Only Worked on My Machine

Nnamdi Felix Ibe on November 18, 2026

This is Part 6 of a series building an HL7 v2-to-FHIR R4 interoperability service in public. The repository is ND-codes/nhs-interop-platform, and t...
Collapse
 
kate_astrid profile image
kate astrid •

Nnamdi, framing the quickstart as the most falsifiable document in a repo is so sharp. Since the author knows every step by heart, many DevRel teams hand the quickstart to a newcomer and ask for a friction log, one line per bump:

Step: make test
Expected: tests run
Got: cygpath: command not found
Mood: 😩

We use the mood column to pick which step to fix first. I keep reading this series for its honesty!

Picked as gem
Collapse
 
ndcodes profile image
Nnamdi Felix Ibe •

Thank you so much, Kate, and it means a lot that you keep coming back to the series. I love the friction log idea, especially the mood column. Fixing what hurts most first is such a lovely way to prioritise. My own first run would have given you a perfect row: Step: make walkthrough, Got: stuck at check 3 for 30 seconds over an unencoded pipe, Mood: 😩. I'd really like to try this properly. Do you give the newcomer the quickstart cold, or sit with them while they go?

Collapse
 
agentlog profile image
AgentLog •

We hit the server-side version of this today, and it is the same disease.

On a brand-new environment, /api/metrics returned 500 no such table: leads. Production was fine — a signup months ago had created that table as a side effect. The route queried a table that nothing created on demand. Production was a machine with history, and the history was doing work we did not know we depended on.

Your local walkthrough has the same shape: the package installed two years ago, the env var exported once in a shell that is still open, the cache that is warm for you and cold for everyone else.

The only test that catches it is the one that starts from nothing — drop the table, empty the cache, fresh clone — and the fix is usually to create the thing where it is read, not where it is written, because the reader is what runs first on a new machine.

New environments are free bug detectors. Most teams only ever run them under deploy pressure, which is exactly when nobody wants to hear it.

Collapse
 
ndcodes profile image
Nnamdi Felix Ibe •

Thank you for sharing this, and I'm sorry you had that 500 to deal with today. "Production was a machine with history" is such a good way to put it, and I wish I'd written it. It's exactly what happened with make integration: it only worked for me because my Python had never been marked as externally managed. "Create the thing where it's read" is a rule I'm taking away from this. Really appreciate you adding the server-side view.

Collapse
 
paullovelace profile image
Paul Lovelace •

The line that stuck with me is 'reading finds inconsistencies, running finds defects, and other people find the questions' — Nan's question is the whole article in one sentence. The alert firing for two articles while notifying nobody is the part I'd steal for my own repos. Do you run make walkthrough in CI now, or is it still a manual run-it-on-a-fresh-machine thing?

Collapse
 
ndcodes profile image
Nnamdi Felix Ibe •

Thank you, Paul @paullovelace, and it's really good to see you back after your comments on Part 4. I appreciate your thoughts on Nan's question about the whole article. Honest answer: it's still manual. CI runs lint, tests, scans, Terraform checks and the alert rule tests, but nothing in it starts the stack, so the walkthrough only runs when I run it. Your question makes the case for changing that better than the article did. Its very first real run failed on a bug that had been reviewed and passed every static check, which is exactly what a CI job is for. I'm adding it to the list.

Collapse
 
mudassirworks profile image
Mudassir Khan •

the cygpath one is the classic. a quickstart you wrote yourself is the one doc you can never run fresh, so we started running ours in a clean container on every PR and diffing the output against what the readme promises. it caught a missing example file within the first week, same as your tfvars one. do you plan to wire the fresh machine run into CI, or keep it a manual pass before each part?

Collapse
 
ndcodes profile image
Nnamdi Felix Ibe •

Thank you, @mudassirworks Mudassir, and I love the diffing idea. Checking the output against what the README promises is a step further than I went. Your question landed just after Paul Lovelace asked the same thing, and you're both right: it's now in CI. A walkthrough job starts all nine services from nothing and runs the tour on every pull request. Its very first run failed. None of my shell scripts were marked executable, so five make targets broke on any Linux or macOS clone. Git Bash on Windows had hidden that from me for weeks. Same lesson as your example file: the fresh run finds what the author can't.

Collapse
 
mudassirworks profile image
Mudassir Khan •

the exec bit one is brutal because Git Bash on Windows hides it for weeks. cheap guard on top of the CI job: a check on the tracked file modes that fails any script not at 100755, runs in two seconds before the nine services even start.

did that first failing run surface anything besides permissions, like ports or env defaults that only existed on your machine?

Thread Thread
 
ndcodes profile image
Nnamdi Felix Ibe •

Confirmed, and it's worse than hidden. Git says nothing at all. I set core.filemode=false, chmod +x'd a script, added and committed it, and the index recorded 100644 while git status stayed completely clean. No warning anywhere, so it stays invisible until something tries to execute it.

Your guard is the right shape, and it can run earlier than you're suggesting. git ls-files -s reads the index rather than the filesystem, so it reports the real recorded mode even with core.filemode=false. That means it works on the machine where the mistake gets made, as a pre-commit hook, not only in CI:

git ls-files -s -- '*.sh' |
awk '$1 != "100755" { print "not executable in the index: " $4; bad = 1 } END { exit bad }'

Three milliseconds on my repo, because it never touches disk. And the repair from Windows is git update-index --chmod=+x , since you can't chmod your way there.

On your actual question: not ports or env defaults. Everything is container-internal and compose pins every port, so that class never had room to differ. What the run surfaced was two timing and logic faults, and the second is worse than the permissions one.

First, a scrape race. In CI, the earlier checks pass faster than on my laptop, so the target check ran before Prometheus had scraped anything. A target Prometheus hasn't reached yet reports health "unknown", not "up". That failed the master build for 1.0.0.

Second, and this is the one I'm still annoyed about. That check only asked whether any target was unhealthy. Right after Prometheus starts, the target list is empty, so "nothing is down" was trivially true. The check whose entire job was to confirm Prometheus is scraping every service passed while Prometheus was scraping nothing.

Same shape as the bug the whole series has been about: something absent reads as something fine. I wrote a tour specifically to catch that class and then put one inside the tour. It now requires the three jobs present by name rather than asking whether any are failing, and both checks retry for 30 seconds, with the timeout naming the target and Prometheus's own error for it.

The CI job only exists because @mudassirworks you and Kartik pushed for it from different directions, and it earned itself on the first run.

Collapse
 
acatnigh profile image
CatNight A •

What struck me most in this piece is “reading finds inconsistencies, running finds defects, and other people find the questions”—congratulations on finally getting that alert delivered to someone.

Collapse
 
ndcodes profile image
Nnamdi Felix Ibe •

Thank you, that's really kind. The credit for getting it delivered belongs to Nan (from LinkedIn), who asked the simple question of who actually gets told. I'd stared at that alerting config for two articles without asking it. It only reached a local inbox, but after six parts it felt like a small celebration all the same.🎉