Commit ad37ce2
authored
ci: catch new untracked files after running tests (#5412)
The `designer_notebook` acceptance test (added in #5370) was missing its
generated `out.test.toml`. The file is written as a side effect of test
discovery and explicitly excluded from output comparison, so a missing
copy never fails a test — and the post-test `git diff --exit-code` guard
didn't catch it either, because plain `git diff` ignores untracked
files. The result: the file silently regenerated as an untracked change
in every worktree that ran the acceptance suite.
This adds the missing `out.test.toml` and fixes the CI guard to register
untracked files with `git add --intent-to-add .` before diffing, so any
new file appearing after a test run now fails the build. Gitignored test
artifacts are unaffected, since intent-to-add respects `.gitignore`.
This pull request and its description were written by Isaac.1 parent 47079b9 commit ad37ce2
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
157 | 162 | | |
158 | | - | |
| 163 | + | |
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments