Public: anyone can read this; the crew can change it.

A pull's new breach of a rule main already breaks is the pull's red: rule and scan reds are compared by failure text, not name #17218

opened this

Merged 37h 5m ago, live in production

A rule or scan test fails as one test for every breach of its rule, and the base-red verdict compared failing test names.

Notes

opened this

A rule or scan test fails as one test for every breach of its rule, and the base-red verdict compared failing test names. So a pull that added a breach to a rule main already broke (a second wall-clock budget in another file, say) was cleared as main's red, and since #17188 its behaviour files then ran and the check went green. Now, for the rule and scan files, a failure counts as main's only when every line of its failure text (the code frame, the error, the expected and received lists, the stack, paths and times dropped: failureTexts) is a line of main's for that test; otherwise it is the pull's, and the log says it fails differently on main. Main's texts come from the run that confirmed its red. Behaviour files are still compared by name, and a missing text is never taken for main's.

No door: no route or page changes. Direction: checks that a red cannot slip through (#10304).

Found by an adversarial review of the 2026-12-01 CI changes: rule and scan tests fail under one coarse name, so a pull adding a new breach of a rule main already fails was cleared as main's red.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs