Skip to content

ci: catch new untracked files after running tests#5412

Merged
pietern merged 2 commits into
mainfrom
generate-out-toml
Jun 2, 2026
Merged

ci: catch new untracked files after running tests#5412
pietern merged 2 commits into
mainfrom
generate-out-toml

Conversation

@pietern
Copy link
Copy Markdown
Contributor

@pietern pietern commented Jun 2, 2026

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.

pietern added 2 commits June 2, 2026 14:40
PR #5370 added the designer_notebook test directory but omitted the
generated out.test.toml. The acceptance runner writes this file as a
side effect of test discovery and explicitly excludes it from output
comparison, so a missing copy never fails a test. Regenerated here.

Co-authored-by: Isaac
The test job already ran 'git diff --exit-code' after the suite, but a
plain 'git diff' ignores untracked files. That is how a missing
out.test.toml slipped through CI. Register untracked files with
intent-to-add first so new files are reported too; .gitignore'd test
artifacts are unaffected.

Co-authored-by: Isaac
@pietern pietern temporarily deployed to test-trigger-is June 2, 2026 12:46 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is June 2, 2026 12:46 — with GitHub Actions Inactive
@pietern pietern requested a review from andrewnester June 2, 2026 12:47
@pietern pietern enabled auto-merge June 2, 2026 12:50
@pietern pietern added this pull request to the merge queue Jun 2, 2026
@eng-dev-ecosystem-bot
Copy link
Copy Markdown
Collaborator

Commit: fbbee16

Run: 26820622089

Merged via the queue into main with commit ad37ce2 Jun 2, 2026
28 checks passed
@pietern pietern deleted the generate-out-toml branch June 2, 2026 13:46
@eng-dev-ecosystem-bot
Copy link
Copy Markdown
Collaborator

Commit: ad37ce2

Run: 26823977487

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants