March 26, 2019

How I wrote my own CI System

This evening, while playing with whereishasan, my upstream ISP connection went down. Diagnosing the problem, I had no idea -- all my tests were failing and I had no idea why -- unbound was fine -- it had the server in its cache, the local network was working fine, yet the remote host was frozen. So, I rebooted the router. Then waited, waited, waited, as it flushed its cache and decided to do its DHCP handshake. Then everything was fine -- I updated the location, and my tests passed again. To prevent this in the future, I whipped up a cronjob to run my unit tests and email me when they failed using sendEmail. Slotted it into the daily cron on my local server, ran a few tests and, happy it worked, I relaxed. Now to figure out how to make it run on push and kill the process if tests fail.

No comments:

Post a Comment