Uh oh!
There was an error while loading. Please reload this page.
Fix bundle generate job to preserve nested notebook directory structure - #4596
Conversation
Commit: baac699
17 interesting tests: 10 SKIP, 7 KNOWN
Top 20 slowest tests (at least 2 minutes):
|
dc572e1 to
6a23c44Comparevarundeepsaini
commented
Mar 3, 2026
@andrewnester could you run the checks, there were some issues on windows, have fixed those |
andrewnester
left a comment
There was a problem hiding this comment.
Could you please add a NEXT_CHANGELOG entry for this change, following the format there? Thank you!
6a23c44 to
545af5cComparevarundeepsaini
commented
Mar 3, 2026
@andrewnester done. |
andrewnester
commented
Mar 4, 2026
@varundeepsaini, this change could break for users who continuously run the "bundle generates job" command to sync the files back. At the very least, can you expand this PR to clean up the files at the old location? |
2e1b40d to
7f9bca0Comparevarundeepsaini
commented
Mar 4, 2026
@andrewnester could you run the ci ? |
andrewnester
commented
Mar 11, 2026
@varundeepsaini sorry for the delay, could you please also resolve merge conflicts? |
7f9bca0 to
8a557b2Comparevarundeepsaini
commented
Mar 11, 2026
@andrewnester no worries, thanks a lot for the reviews |
Uh oh!
There was an error while loading. Please reload this page.
8a557b2 to
4876824Compared7db5b1 to
454eb63Comparevarundeepsaini
commented
Mar 17, 2026
@andrewnester I have fixed the windows test failure, |
varundeepsaini
commented
Mar 27, 2026
@andrewnester i fixed the test failures, could you re run the ci |
Head branch was pushed to by a user without write access
1f9e016 to
baac699Comparevarundeepsaini
commented
Apr 8, 2026
@andrewnester |
varundeepsaini
commented
Apr 9, 2026
@andrewnester during env setup |
varundeepsaini
commented
Apr 15, 2026
@andrewnester could you run the ci |
varundeepsaini
commented
Apr 21, 2026
@andrewnester bumping this ^^ |
andrewnester
commented
Apr 22, 2026
@varundeepsaini unfortunately right now CI actions do not work on PRs created from forks, we're working on it |
varundeepsaini
commented
Apr 22, 2026
@andrewnester no worries, thanks for the heads up |
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
varundeepsaini
commented
May 8, 2026
@andrewnester could you approve the ci run |
Uh oh!
There was an error while loading. Please reload this page.
## Summary - PR #4596 (just merged on main) committed `out.test.toml` for `acceptance/bundle/generate/job_nested_notebooks` in the pre-#5146 multi-line `[EnvMatrix]` form. - Regenerated via `go test ./acceptance -run '^TestAccept$' -only-out-test-toml`. ## Test plan - [x] `go test ./acceptance -run '^TestAccept$' -only-out-test-toml` produces only this one-file diff - [x] `git diff` after regeneration matches the diff CI was reporting This pull request and its description were written by Isaac.
## Release v0.299.2 ### Notable Changes * Breaking change: `vector_search_endpoints` renamed `min_qps` to `target_qps` in DABs configuration and the `vector-search-endpoints` commands, following the SDK rename in v0.131.0. Update any `databricks.yml` using `min_qps:` to `target_qps:` and any CLI invocations using `--min-qps` to `--target-qps`. ### CLI * `auth login` no longer falls back to plaintext when the OS keyring is reachable but locked. The unlock prompt shown by the probe now runs in parallel with the OAuth flow, and the token is stored in the keyring once the user has typed their password. * `databricks auth describe` now reports where U2M (`databricks-cli`) tokens are stored: `plaintext` (`~/.databricks/token-cache.json`) or `secure` (OS keyring), and the source of the choice (env var, config setting, or default). * Marked the default profile in the interactive pickers shown by `databricks auth switch`, `databricks auth logout`, `databricks auth token`, and `databricks auth login`, and moved it to the top of the list. `databricks auth login` and `databricks auth logout` now offer the same selectors as `databricks auth token` and `databricks auth switch` respectively. * The interactive auth profile pickers now start in search mode so typing immediately filters the list, and the action entries (`+ Create a new profile`, `→ Enter a host URL manually`) are visually distinct from real profiles and stay visible regardless of the search query. * Shortened the host prompt label shown after `→ Enter a host URL manually` in `databricks auth login` so the prompt no longer leaves stale lines on screen when typing or pasting a host URL. ### Bundles * Stop applying `presets.name_prefix` (and the dev-mode `[dev <user>]` rename) to `vector_search_endpoints` ([#5209](#5209)). * Fix `bundle generate` job to preserve nested notebook directory structure ([#4596](#4596)) * Propagate authentication environment (including `DATABRICKS_CONFIG_PROFILE`) to the `experimental.python` subprocess so bundle validate/deploy no longer fails with a multi-profile host ambiguity error when several profiles in `~/.databrickscfg` share the same host. * Fixed `--force-pull` on `bundle summary` and `bundle open` so the flag bypasses the local state cache and reads state from the workspace. ### Dependency updates * Bump Go toolchain to 1.25.10 ([#5213](#5213)). * Bump `github.com/databricks/databricks-sdk-go` from v0.128.0 to v0.132.0. * Bump Terraform provider to v1.115.0.
…re (#4596) ## Changes Fixes#4503. Add `MarkTasksForDownload` that computes a common base path across all notebook tasks before downloading, replacing the per-task loop in `job.go`. This preserves nested directory structure instead of flattening all notebooks into `src/`. ## Tests - Unit tests for `commonDirPrefix` and `MarkTasksForDownload`. - Acceptance test `bundle/generate/job_nested_notebooks` reproducing the issue. - No regressions in existing `python_job`, `ipynb_job`, `git_job` tests. Test are written by Claude Code Co-authored-by: Andrew Nester <andrew.nester.dev@gmail.com>
## Summary - PR #4596 (just merged on main) committed `out.test.toml` for `acceptance/bundle/generate/job_nested_notebooks` in the pre-#5146 multi-line `[EnvMatrix]` form. - Regenerated via `go test ./acceptance -run '^TestAccept$' -only-out-test-toml`. ## Test plan - [x] `go test ./acceptance -run '^TestAccept$' -only-out-test-toml` produces only this one-file diff - [x] `git diff` after regeneration matches the diff CI was reporting This pull request and its description were written by Isaac.
## Release v0.299.2 ### Notable Changes * Breaking change: `vector_search_endpoints` renamed `min_qps` to `target_qps` in DABs configuration and the `vector-search-endpoints` commands, following the SDK rename in v0.131.0. Update any `databricks.yml` using `min_qps:` to `target_qps:` and any CLI invocations using `--min-qps` to `--target-qps`. ### CLI * `auth login` no longer falls back to plaintext when the OS keyring is reachable but locked. The unlock prompt shown by the probe now runs in parallel with the OAuth flow, and the token is stored in the keyring once the user has typed their password. * `databricks auth describe` now reports where U2M (`databricks-cli`) tokens are stored: `plaintext` (`~/.databricks/token-cache.json`) or `secure` (OS keyring), and the source of the choice (env var, config setting, or default). * Marked the default profile in the interactive pickers shown by `databricks auth switch`, `databricks auth logout`, `databricks auth token`, and `databricks auth login`, and moved it to the top of the list. `databricks auth login` and `databricks auth logout` now offer the same selectors as `databricks auth token` and `databricks auth switch` respectively. * The interactive auth profile pickers now start in search mode so typing immediately filters the list, and the action entries (`+ Create a new profile`, `→ Enter a host URL manually`) are visually distinct from real profiles and stay visible regardless of the search query. * Shortened the host prompt label shown after `→ Enter a host URL manually` in `databricks auth login` so the prompt no longer leaves stale lines on screen when typing or pasting a host URL. ### Bundles * Stop applying `presets.name_prefix` (and the dev-mode `[dev <user>]` rename) to `vector_search_endpoints` ([#5209](#5209)). * Fix `bundle generate` job to preserve nested notebook directory structure ([#4596](#4596)) * Propagate authentication environment (including `DATABRICKS_CONFIG_PROFILE`) to the `experimental.python` subprocess so bundle validate/deploy no longer fails with a multi-profile host ambiguity error when several profiles in `~/.databrickscfg` share the same host. * Fixed `--force-pull` on `bundle summary` and `bundle open` so the flag bypasses the local state cache and reads state from the workspace. ### Dependency updates * Bump Go toolchain to 1.25.10 ([#5213](#5213)). * Bump `github.com/databricks/databricks-sdk-go` from v0.128.0 to v0.132.0. * Bump Terraform provider to v1.115.0.
…re (databricks#4596) ## Changes Fixesdatabricks#4503. Add `MarkTasksForDownload` that computes a common base path across all notebook tasks before downloading, replacing the per-task loop in `job.go`. This preserves nested directory structure instead of flattening all notebooks into `src/`. ## Tests - Unit tests for `commonDirPrefix` and `MarkTasksForDownload`. - Acceptance test `bundle/generate/job_nested_notebooks` reproducing the issue. - No regressions in existing `python_job`, `ipynb_job`, `git_job` tests. Test are written by Claude Code Co-authored-by: Andrew Nester <andrew.nester.dev@gmail.com>
…cks#5228) ## Summary - PR databricks#4596 (just merged on main) committed `out.test.toml` for `acceptance/bundle/generate/job_nested_notebooks` in the pre-databricks#5146 multi-line `[EnvMatrix]` form. - Regenerated via `go test ./acceptance -run '^TestAccept$' -only-out-test-toml`. ## Test plan - [x] `go test ./acceptance -run '^TestAccept$' -only-out-test-toml` produces only this one-file diff - [x] `git diff` after regeneration matches the diff CI was reporting This pull request and its description were written by Isaac.
## Release v0.299.2 ### Notable Changes * Breaking change: `vector_search_endpoints` renamed `min_qps` to `target_qps` in DABs configuration and the `vector-search-endpoints` commands, following the SDK rename in v0.131.0. Update any `databricks.yml` using `min_qps:` to `target_qps:` and any CLI invocations using `--min-qps` to `--target-qps`. ### CLI * `auth login` no longer falls back to plaintext when the OS keyring is reachable but locked. The unlock prompt shown by the probe now runs in parallel with the OAuth flow, and the token is stored in the keyring once the user has typed their password. * `databricks auth describe` now reports where U2M (`databricks-cli`) tokens are stored: `plaintext` (`~/.databricks/token-cache.json`) or `secure` (OS keyring), and the source of the choice (env var, config setting, or default). * Marked the default profile in the interactive pickers shown by `databricks auth switch`, `databricks auth logout`, `databricks auth token`, and `databricks auth login`, and moved it to the top of the list. `databricks auth login` and `databricks auth logout` now offer the same selectors as `databricks auth token` and `databricks auth switch` respectively. * The interactive auth profile pickers now start in search mode so typing immediately filters the list, and the action entries (`+ Create a new profile`, `→ Enter a host URL manually`) are visually distinct from real profiles and stay visible regardless of the search query. * Shortened the host prompt label shown after `→ Enter a host URL manually` in `databricks auth login` so the prompt no longer leaves stale lines on screen when typing or pasting a host URL. ### Bundles * Stop applying `presets.name_prefix` (and the dev-mode `[dev <user>]` rename) to `vector_search_endpoints` ([databricks#5209](databricks#5209)). * Fix `bundle generate` job to preserve nested notebook directory structure ([databricks#4596](databricks#4596)) * Propagate authentication environment (including `DATABRICKS_CONFIG_PROFILE`) to the `experimental.python` subprocess so bundle validate/deploy no longer fails with a multi-profile host ambiguity error when several profiles in `~/.databrickscfg` share the same host. * Fixed `--force-pull` on `bundle summary` and `bundle open` so the flag bypasses the local state cache and reads state from the workspace. ### Dependency updates * Bump Go toolchain to 1.25.10 ([databricks#5213](databricks#5213)). * Bump `github.com/databricks/databricks-sdk-go` from v0.128.0 to v0.132.0. * Bump Terraform provider to v1.115.0.
Changes
Fixes#4503.
Add
MarkTasksForDownloadthat computes a common base path across all notebook tasks before downloading, replacing the per-task loop injob.go. This preserves nested directory structure instead of flattening all notebooks intosrc/.Tests
commonDirPrefixandMarkTasksForDownload.bundle/generate/job_nested_notebooksreproducing the issue.python_job,ipynb_job,git_jobtests.Test are written by Claude Code