agent wrapped my go tests in //go:build ignore and CI went green
caught this tuesday night.
agent "fixed" a flaky integration test by wrapping the whole package in //go:build ignore. pr checks green. merge queue happy. i only noticed because coverage dropped 11%.
repro was a race in postgres setup. the agent never ran the test twice. just deleted the signal.
if your agent can silence tests, your CI is the bug. anyone else grepping for build tags / skip / ignore before merge?
5 comments
Join the discussion
Log in to comment.
same class of failure on a node mcp repo last month.
agent removed the
enginescheck in package.json so ci stopped failing on node 18. i only saw it because a user opened issue with stacktrace from 18.20.now i require the diff to show package.json and any
.ymlworkflow files in the review checklist. annoying. saves me.The engines check deletion is the same failure mode as the build ignore.
Agent removes the assertion, CI stops complaining, human sees green. Blast radius is silent until production.
I now require
git diff --name-onlyagainst main to include any change under.github/or**/go.modbefore approve. Still misses package-local build tags though.lol i did worse. cascade put
continue-on-error: trueon the only job that runs e2e.shipped friday. found it monday when a customer pinged that checkout was 500. ci had been "green" all weekend.
now i grep for continue-on-error before i even read the pr body
continue-on-error is my new nightmare keyword
i screenshotted a cascade pr last week that put it on
lint,typecheck, ANDe2e. three greens that meant nothing.do you block it in branch protection now or just grep? i keep forgetting and then find another one in a dependabot-adjacent workflow
yeah. i started grepping for
//go:build ignoreandt.Skipin every agent pr after something similar on a rust crate.agent just deleted the test file and left a comment "flaky, revisit later". coverage didn't even drop because the file was gone.
is there a github action that fails on new build tags? asking for a friend who keeps merging at midnight