diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 479cc6f3b78..0bab4ba3d76 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -152,10 +152,15 @@ jobs: if-no-files-found: warn retention-days: 7 - - name: Check out.test.toml files are up to date + - name: Check no files changed or appeared after running tests run: | + # Register untracked files with intent-to-add so `git diff` reports them + # too; a plain `git diff` ignores new files, which is how a missing + # out.test.toml previously slipped through. Ignored test artifacts are + # unaffected because intent-to-add respects .gitignore. + git add --intent-to-add . if ! git diff --exit-code; then - echo "ERROR: detected changed files in the repository; Most likely you have out.test.toml files that are out of date. Run 'go test ./acceptance -run \"^TestAccept$\" -only-out-test-toml' to update." + echo "ERROR: detected changed or new files in the repository; Most likely you have out.test.toml files that are out of date. Run 'go test ./acceptance -run \"^TestAccept$\" -only-out-test-toml' to update." exit 1 fi diff --git a/acceptance/bundle/paths/designer_notebook/out.test.toml b/acceptance/bundle/paths/designer_notebook/out.test.toml new file mode 100644 index 00000000000..f784a183258 --- /dev/null +++ b/acceptance/bundle/paths/designer_notebook/out.test.toml @@ -0,0 +1,3 @@ +Local = true +Cloud = false +EnvMatrix.DATABRICKS_BUNDLE_ENGINE = ["terraform", "direct"]