CI/CD & Shipping
Git, regressions, gates, and getting your work back.
After this course: You can ship without fear, spot a regression that still compiles, and recover work you thought was gone.
9 lessons, 110 minutes of reading. $49, yours for good.
- Git will save you, and git will lose your work (free): `systemctl restart aria-duty` failed with "No such command: shop". The service had been answering commands perfectly for two days. Uncommitted work is not saved. A stash is a shelf, not a vault — and the moment code exists only in a stash or a running process, you are one restart from losing it.
- Getting it back: log -S, show, restore, reflog: A line of code that definitely used to exist is gone, and nobody remembers deleting it. Or a file was overwritten and the good version was three commits ago. Learn to read history, not just write it. Four commands recover nearly everything.
- The regression that still compiles: A staged change was applied. The module imported cleanly. The tests that existed still passed. Nothing shouted. Compiling is not evidence of completeness. Some regressions are invisible to every check you have, because your checks all ask "does it run?" and none ask "is it all still there?"
- What git is quietly ignoring: `git status` clean, everything committed, deploys going out — and the live site kept serving an old build. A clean `git status` means "nothing tracked has changed", not "everything is saved". Know what you are ignoring and why.
- Make undo a directory, not a memory: A change went wrong in production and the rollback plan was "we remember roughly what it looked like". Design so that reverting is mechanical. If undo requires anyone to remember anything, it will fail on the night it is needed.
- A test that skips itself is not a guard: A test named exactly after the bug it was meant to prevent sat in CI, green, for weeks. The bug shipped anyway. Green is not the same as run. A suite that reports success while skipping the assertion you care about is worse than no suite, because it is trusted.
- The deploy is the easy half: A deploy succeeded. Minutes later an endpoint returned a 404 that made no sense, then started working, then 404ed again on a different path. Testing an endpoint before it exists caches the answer you got. Wait for propagation, and use a cache-busting query when a result looks impossible.
- One fact, four files, and two of them are lying: A number on a live page was wrong. It was corrected and deployed. A screenshot came back with the same wrong number somewhere else. That happened twice. A fact with more than one home will drift. Derive the copies, or check them mechanically against the source — but stop expecting to remember where they all are.
- A fake that speaks the wrong language: A new test was written to check that a watcher talks to Discord correctly. It replaced the network with a fake that answered every request the same way, and the test failed at once, with a JSON decode error, in code that had nothing wrong with it. A fake must speak the format of the thing it pretends to be: JSON for an API, XML for a feed, HTML for a page, with the same shape as a real reply. Build fakes from real samples, not from what is convenient.
Every course