Skip to content

Add empty template for bundle init#5899

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

Add empty template for bundle init#5899
janniklasrose wants to merge 5 commits into
mainfrom
janniklasrose/bundle-init-improvements

Conversation

@janniklasrose

@janniklasrose janniklasrose commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Add a bundle template "empty" to use during databricks bundle init
  • Make the error more actionable if no databricks.yml is found

Why

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

New tests

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 8ebebb2

Run: 29210472924

Env 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 230 1079 10:19
💚​ aws windows 4 4 232 1077 7:05
💚​ aws-ucws linux 4 4 316 996 5:30
💚​ aws-ucws windows 4 4 318 994 7:10
💚​ azure linux 4 4 230 1078 7:14
🔄​ azure windows 1 4 4 231 1076 7:21
💚​ azure-ucws linux 4 4 318 993 16:16
💚​ azure-ucws windows 4 4 320 991 8:19
💚​ gcp linux 4 4 229 1080 9:03
💚​ gcp windows 4 4 231 1078 7:21
9 interesting tests: 4 RECOVERED, 4 SKIP, 1 flaky
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
🔄​ TestSyncIncrementalSyncPythonNotebookToFile ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​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 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 17 slowest tests (at least 2 minutes):
duration env testname
7:48 aws linux TestSecretsPutSecretStringValue
7:38 azure-ucws linux TestSQLExecScalar
7:14 azure-ucws linux TestSecretsPutSecretStringValue
7:03 gcp linux TestSecretsPutSecretStringValue
6:28 gcp windows TestAccept
6:14 azure windows TestAccept
6:13 azure-ucws windows TestAccept
6:11 aws-ucws windows TestAccept
6:02 aws windows TestAccept
5:27 aws windows TestSecretsPutSecretStringValue
4:41 azure linux TestSecretsPutSecretStringValue
3:31 azure-ucws windows TestSQLExecScalar
2:54 aws linux TestAccept
2:53 azure linux TestAccept
2:53 gcp linux TestAccept
2:51 aws-ucws linux TestAccept
2:47 azure-ucws linux TestAccept

@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 on lines +9 to +11
A workspace was selected based on your current profile. For information about how to
change this, see https://docs.databricks.com/dev-tools/cli/profiles.html.
workspace_host: [DATABRICKS_URL]

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.

mismatch with the template

@@ -0,0 +1,16 @@
# This is a Databricks asset bundle definition for {{.project_name}}.

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.

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.

Must be "Declarative Automation Bundle".

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.

interesting, got missed in the rename (all bundle templates, will do a quick follow-up PR)

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.

Hah! Yep sounds good to do separately.

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