Tagged: CI
3 posts tagged “CI”.
Topics
Posts3 notes
Killing `go test` doesn't kill the tests
exec.CommandContext kills only the process it started. go test runs your tests in a child process, so a timeout either leaves orphans behind or hangs Wait, depending on how you call it. Here's what I measured and the four lines that fix it.
5 min read · Go, Linux, CI
`kubectl auth can-i` said my control plane couldn't read secrets. It read one anyway
I locked down a Kubernetes CI worker and proved from inside a Pod that it couldn't read secrets. Then the control plane read one through a Job it was allowed to create. RBAC checks who sends a request, not what's in it. Here's how I closed the gap with a ValidatingAdmissionPolicy.
11 min read · Kubernetes, Security, CI
Your Kubernetes Job's exit code is lying to you
I made a Kubernetes Job fail three ways: a failing test, an OOM, and a deadline. All three ended as the same Failed, and two of them left no logs. Here's what I learned and how it shaped the result contract of a CI worker.
8 min read · Kubernetes, CI, Architecture