夜间定时跑 Claude Code 修 flaky 测试,Jev 决定取哪个测试
每小时一次、每晚 8 次,从干净分支复现并修复 flaky 测试后只开 PR;Jev 在每次运行里决定取哪个测试、修还是跳过、重试还是停。
THIS IS ACTUAL F*CKING GOLD Anthropic just shared one of the best tricks for Claude Code: schedule it hourly and let it fix your flaky tests while you sleep. you close the laptop at 23:00 and the agent runs in the cloud without you. claude > /schedule hourly 23:07-06:07: fix a flaky test here's the split: ▸ one run an hour, one flaky test per run, 8 runs a night ▸ every run starts from a fresh clone of the default branch ▸ it reproduces the flake, fixes it, re-runs the suite ▸ it pushes only to a claude/* branch and opens a PR the part that makes this safe: it never touches your branch and never merges anything. by 07:00 there are PRs waiting, not commits you have to undo. JEV sits underneath and decides per run: which test to take, fix or skip, retry or stop. sharp calls run in code, split ones leave you a note instead of guessing. a flake it cannot explain does not get a confident patch, it gets a note on the PR saying what it saw. one honest warning from the file itself: green status does not mean the task is done. read each run. 8 hours of nothing becomes 8 attempts at the tests nobody on your team wants to touch. save it, this is the cheapest engineer you will ever hire.
这条是引用着另一条写的:x.com/sprytixl/status/2107763347097534680