Skip to content

Slim down default-minimal bundle template#5899

Open
janniklasrose wants to merge 18 commits into
mainfrom
janniklasrose/bundle-init-improvements
Open

Slim down default-minimal bundle template#5899
janniklasrose wants to merge 18 commits into
mainfrom
janniklasrose/bundle-init-improvements

Conversation

@janniklasrose

@janniklasrose janniklasrose commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Slim down the "default-minimal" template to use during databricks bundle init by parameterizing the underlying template to python-specific vs generic content
  • Create an alias "empty"

Why

Related: #5953

Make it easier to get started with bundles: Running bundle generate requires a databricks.yml, and all the other existing templates created by bundle init add way more than needed for the workflow of:

databricks bundle init empty
databricks bundle generate ...

Tests

Updated tests for all three permutations of default-minimal

Manual:

% ./cli bundle init empty
Welcome to the minimal Declarative Automation Bundle template!

This template creates a minimal project structure without sample code, ideal for advanced users.
(For getting started with Python or SQL code, use the default-python or default-sql templates instead.)

Your workspace at https://dogfood.staging.databricks.com is used for initialization.
(See https://docs.databricks.com/dev-tools/cli/profiles.html for how to change your profile.)

Unique name for this project [my_project]:
Default catalog for any tables created by this project [main]:
Initial language for this project: skip

✨ Your new project has been created in the 'my_project' directory!

To get started, refer to the project README.md file and the documentation at https://docs.databricks.com/dev-tools/bundles/index.html.
% tree -a my_project
my_project
├── .gitignore
├── .vscode
│   ├── extensions.json
│   └── settings.json
├── databricks.yml
├── README.md
├── resources
└── src

4 directories, 5 files

Expected golden outputs: acceptance/bundle/templates/default-minimal/

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: d26e137

Run: 29571781697

Env 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 227 1122 4:41
💚​ aws windows 4 4 229 1120 8:17
💚​ aws-ucws linux 4 4 316 1038 6:06
💚​ aws-ucws windows 4 4 318 1036 10:28
💚​ azure linux 4 4 227 1121 5:05
💚​ azure windows 4 4 229 1119 8:44
🔄​ azure-ucws linux 10 4 4 308 1035 27:32
💚​ azure-ucws windows 4 4 320 1033 7:46
🔄​ gcp linux 2 2 4 226 1123 7:21
💚​ gcp windows 4 4 228 1121 6:38
18 interesting tests: 12 flaky, 4 SKIP, 2 RECOVERED
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🔄​ TestFsCpDir/dbfs_to_dbfs ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
🔄​ TestFsCpDir/dbfs_to_uc-volumes 🙈​s 🙈​s ✅​p ✅​p 🙈​s 🙈​s 🔄​f ✅​p 🙈​s 🙈​s
🔄​ TestFsCpDirToDirFileNotOverwritten/dbfs_to_dbfs ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
🔄​ TestFsCpDirToDirFileNotOverwritten/dbfs_to_uc-volumes 🙈​s 🙈​s ✅​p ✅​p 🙈​s 🙈​s 🔄​f ✅​p 🙈​s 🙈​s
🔄​ TestFsCpFileToDir ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
🔄​ TestFsCpFileToDir/dbfs_to_dbfs ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
🔄​ TestFsCpFileToFile ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
🔄​ TestFsCpFileToFile/local_to_dbfs ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
🔄​ TestFsCpSourceIsDirectoryButTargetIsFile ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
🔄​ TestFsCpSourceIsDirectoryButTargetIsFile/dbfs_to_dbfs ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
💚​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🔄​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 🔄​f 💚​R
🔄​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 🔄​f 💚​R
Top 22 slowest tests (at least 2 minutes):
duration env testname
8:21 aws-ucws windows TestAccept
8:20 azure windows TestAccept
7:51 aws windows TestAccept
7:06 azure-ucws linux TestFilerReadWrite/dbfs
6:18 azure-ucws windows TestAccept
6:13 gcp windows TestAccept
5:09 azure-ucws linux TestFilerRecursiveDelete/dbfs
4:14 azure-ucws linux TestFsCpFileToDirFileNotOverwritten/dbfs_to_dbfs
3:34 azure-ucws linux TestFsCpDirToDirFileNotOverwritten/dbfs_to_local
3:30 azure-ucws linux TestFsCpFileToFileFileNotOverwritten/dbfs_to_dbfs
3:02 azure-ucws linux TestFsCpDirToDirFileNotOverwritten/uc-volumes_to_dbfs
3:00 gcp linux TestAccept
2:58 azure linux TestAccept
2:54 aws linux TestAccept
2:53 azure-ucws linux TestFsCpDirToDirFileNotOverwritten/local_to_dbfs
2:52 aws-ucws linux TestAccept
2:49 azure-ucws linux TestAccept
2:43 azure-ucws linux TestFsCpDirToDirFileNotOverwritten/dbfs_to_dbfs
2:28 azure-ucws linux TestFilerReadDir/dbfs
2:16 azure-ucws linux TestFsCpFileToDirFileNotOverwritten/dbfs_to_uc-volumes
2:09 azure-ucws linux TestFsCpDirToDirWithOverwriteFlag/dbfs_to_dbfs
2:01 azure-ucws linux TestFsCpDirToDirWithOverwriteFlag/local_to_dbfs

@janniklasrose janniklasrose changed the title bundle init improvements Add skeleton template for bundle init Jul 14, 2026
@janniklasrose
janniklasrose marked this pull request as ready for review July 14, 2026 12:04
@@ -0,0 +1,3 @@
{
"project_name": "my_skeleton"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can call it basic or empty?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No strong opinion. I think skeleton is pretty widely understood to be just the scaffolding, but empty might be more obvious to everyone.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on empty

Co-authored-by: Isaac
@janniklasrose janniklasrose changed the title Add skeleton template for bundle init Add empty template for bundle init Jul 15, 2026
Comment thread acceptance/bundle/templates/empty/output.txt Outdated
Comment thread libs/template/templates/empty/template/{{.project_name}}/databricks.yml.tmpl Outdated

@lennartkats-db lennartkats-db left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should first discuss if we need this if we also have default-minimal. And, if we do, if we shouldn't fold it into that template.

Per the DABs core eng weekly (2026-07-16), consolidate the empty template
into default-minimal instead of shipping a separate template:

- Remove the standalone empty template; add 'empty' as an alias of
  default-minimal so 'databricks bundle init empty' still works.
- Simplify default-minimal: stop prompting for a personal schema (always
  use a personal dev schema) and reduce the language question to
  python/skip, since sql and other produced identical output.
- Add a comment in the shared databricks.yml template guiding users on the
  catalog and schema variables.

Co-authored-by: Isaac
- Restore 'sql' alongside 'python' and 'skip' in default-minimal's language
  picker; derive .language directly from the choice instead of collapsing
  non-python to sql.
- Gate the Python extras (pyproject.toml, tests/) on 'not python' rather than
  'is sql' so 'skip' excludes them too; unchanged for default-python.
- README: render 'SQL' for sql, 'Python' for python, and nothing for skip.
- Drop the extra catalog/schema comment from the shared databricks.yml; the
  existing comment was sufficient.

Co-authored-by: Isaac
@janniklasrose janniklasrose changed the title Add empty template for bundle init Slim down default-minimal bundle template Jul 17, 2026
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.

5 participants