You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Always write out.test.toml; check drift on CI with git diff (#4737)
## Changes
Instead of failing tests when out.test.toml disagrees, always write it
to the source directory. CI now runs git diff --exit-code after tests to
catch stale files.
## Why
We avoid failing test just because out.test.toml is different. Otherwise
you (or agent) needs multiple steps: "make test" to see the difference,
run test-update or generate-out-test-toml to fix it then run test again.
We still enforce that out.test.toml is up to date by checking "git diff"
afterwards.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .github/workflows/push.yml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,14 @@ jobs:
145
145
- name: Analyze slow tests
146
146
run: make slowest
147
147
148
+
- name: Check out.test.toml files are up to date
149
+
shell: bash
150
+
run: |
151
+
if ! git diff --exit-code; then
152
+
echo "ERROR: detected changed files in the repository; Most likely you have out.test.toml files that are out of date. Run 'make generate-out-test-toml' to update."
0 commit comments