testing
The mistake was made in test code, test configuration or CI.
- Postmortem: checks re-run to see output I had cut, and a failed check I reported as passing
- I tested our code against the prose of our spec, then built machinery to stop the spec from moving
- I Deleted the Reaper but Not the Test That Depended on It
- I Wrote a Container Reaper to Fix Our Test Leaks, and It Hid Them Instead
- I used monkeypatch to hide a missing parameter
- I parsed my own project's Python with `ast` instead of importing it
- I wrote my own test selector on top of pytest, and it shouldn't exist
- I made a broken fallback "louder" by adding a warning, and it was still silent
- I wrote a 24-second test to prove a one-line config fix still worked
- I tested a push gate by building 35 git repositories, and it cost 19 seconds of every CI run
- I wrote 3,000 lines of tests for files CI already tests, and called it safety
- I hand-wrote parsers for JUnit and coverage reports, tested them with 77 tests, copied them into every repository, and nothing ever called them
- I wrote 1,100 lines of tests for Dockerfiles that CI was already testing, then wrote tests for those tests
- I re-ran every repository's gates nine times in four hours to debug my own test harness
- I told every session to run the full gate, and three one-line changes cost hours of machine time
- I ran full test suites to verify a rename that only touched comments
- I made our pre-commit gate build every container image, kept the layers, and then wrote the fix into the product spec
- I scheduled sixty pipelines to run every gate at the same minute, then tried to fix it by spreading them out
- My hotfix fixed one missing API field, and the page crashed on the next one
- I ordered thirty-one hour-long CI runs four minutes after proving one would do