Skip to content

Commit 8b4f052

Browse files
janniklasroseIsaac
andauthored
acceptance: give title its own trailing newline (#7003)
Follow-up to the review thread on #6957 (#6957 (comment)). ## Problem The acceptance-test `title` helper printed `\n=== <label>` with **no trailing newline**, relying on a following `trace` (which prepends `\n`) to terminate the header line. This had two consequences: - When a `title` was followed by non-`trace` output, the header got mashed onto the output, e.g. `=== Recorded create-branch request bodies{`. - Authors compensated inconsistently: a bare `echo` after the title or a literal `\n` appended to the label. ## Change `title` now prints its own trailing newline, so it is self-contained: the header is always terminated and non-`trace` output is no longer mashed onto it. `trace` is unchanged (it still prepends a single blank line), so every `>>>` command block is uniformly preceded by one blank line, whether it follows a section header or earlier output. The now-redundant workarounds are removed (bare `echo`/`echo ""` after a title; trailing `\n` in labels) and all acceptance goldens regenerated. The net change to `acceptance/script.prepare` is a single trailing `\n` in `title`. ## Net effect on `output.txt` - Every `=== header` is followed by one blank line before its first `>>>` command. Previously a header was tight against the command only when `trace` happened to be the literal next line, and spaced otherwise. - `title` followed by non-`trace` output: no longer mashed onto the header line. - Consecutive section headers: separated by a blank line. - No other content changes: the only non-blank-line diffs are the mashed headers being split onto two lines. ## Testing Regenerated via `go test ./acceptance -update` on top of current `main` (merged in); full suite re-run without `-update` passes locally. Unrelated local drift that a full regen bakes in (the `job_permissions` deploy-order flake, the `fips` `DefaultGODEBUG` string from a non-pinned local toolchain, a `SIGPIPE` in `cmd/completion`, `cmd/api/request-handling` error wording) was reverted so this PR only carries the title/trace changes. ## Files Of the 573 goldens that changed, all but 18 differ only in blank lines. These 18 had a header mashed onto the following output (`=== header{`, `=== header: 0`, ...) and now have it on its own line: - `acceptance/bundle/config-remote-sync/output_json/output.txt` - `acceptance/bundle/deploy/immutable/basic/output.txt` - `acceptance/bundle/deployment/bind/experiment/output.txt` - `acceptance/bundle/deployment/bind/job/job-abort-bind/output.txt` - `acceptance/bundle/deployment/bind/job/job-spark-python-task/output.txt` - `acceptance/bundle/deployment/bind/job/stale-state/output.txt` - `acceptance/bundle/deployment/bind/schema/output.txt` - `acceptance/bundle/generate/pipeline_and_deploy/output.txt` - `acceptance/bundle/generate/python_job_and_deploy/output.txt` - `acceptance/bundle/resource_deps/loop_self/output.txt` - `acceptance/bundle/resources/apps/lifecycle-started-omitted/output.txt` - `acceptance/bundle/resources/dashboards/detect-change/output.txt` - `acceptance/bundle/resources/genie_spaces/version_migration/output.txt` - `acceptance/bundle/resources/models/readplan-permissions/output.txt` - `acceptance/bundle/resources/pipelines/auto-approve/output.txt` - `acceptance/bundle/resources/pipelines/recreate/output.txt` - `acceptance/bundle/resources/schemas/auto-approve/output.txt` - `acceptance/cmd/workspace/postgres/create-branch/output.txt` Scripts where a workaround was removed: <details> <summary>Bare <code>echo</code> after a <code>title</code> removed (46 scripts)</summary> - `acceptance/bundle/config-remote-sync/cli_defaults/script` - `acceptance/bundle/config-remote-sync/config_edits/script` - `acceptance/bundle/config-remote-sync/dashboard_etag/script` - `acceptance/bundle/config-remote-sync/flushed_cache/script` - `acceptance/bundle/config-remote-sync/formatting_preserved/script` - `acceptance/bundle/config-remote-sync/job_fields/script` - `acceptance/bundle/config-remote-sync/job_multiple_tasks/script` - `acceptance/bundle/config-remote-sync/job_params_variables/script` - `acceptance/bundle/config-remote-sync/job_pipeline_task/script` - `acceptance/bundle/config-remote-sync/json_status_missing_state/script` - `acceptance/bundle/config-remote-sync/json_status_selectors/script` - `acceptance/bundle/config-remote-sync/multiple_files/script` - `acceptance/bundle/config-remote-sync/multiple_resources/script` - `acceptance/bundle/config-remote-sync/output_no_changes/script` - `acceptance/bundle/config-remote-sync/pipeline_fields/script` - `acceptance/bundle/config-remote-sync/policy_injected_cluster_fields/script` - `acceptance/bundle/config-remote-sync/resolve_variables/script` - `acceptance/bundle/config-remote-sync/select_basic/script` - `acceptance/bundle/config-remote-sync/select_multiple/script` - `acceptance/bundle/config-remote-sync/skip_deployment/script` - `acceptance/bundle/config-remote-sync/skip_permissions/script` - `acceptance/bundle/config-remote-sync/split/cli_default_split_element/script` - `acceptance/bundle/config-remote-sync/split/dotted_target/script` - `acceptance/bundle/config-remote-sync/split/isolation/script` - `acceptance/bundle/config-remote-sync/split/keyed_edit/script` - `acceptance/bundle/config-remote-sync/split/keyed_remove/script` - `acceptance/bundle/config-remote-sync/split/keyed_rename/script` - `acceptance/bundle/config-remote-sync/split/keyed_twoblock/script` - `acceptance/bundle/config-remote-sync/split/multifile/script` - `acceptance/bundle/config-remote-sync/split/nested_add_split_parent/script` - `acceptance/bundle/config-remote-sync/split/nested_sequence/script` - `acceptance/bundle/config-remote-sync/split/positional/script` - `acceptance/bundle/config-remote-sync/split/remove_field_both_blocks/script` - `acceptance/bundle/config-remote-sync/split/remove_with_unrelated_add/script` - `acceptance/bundle/config-remote-sync/split/rename_ambiguous_pairing/script` - `acceptance/bundle/config-remote-sync/split/rename_ambiguous_single_block/script` - `acceptance/bundle/config-remote-sync/split/rename_two_removes_one_add/script` - `acceptance/bundle/config-remote-sync/split/target_variable/script` - `acceptance/bundle/config-remote-sync/split/variable_file_order/script` - `acceptance/bundle/config-remote-sync/target_override/script` - `acceptance/bundle/config-remote-sync/task_rename_revert/script` - `acceptance/bundle/config-remote-sync/validation_errors/script` - `acceptance/bundle/config-remote-sync/variable_reference_parent/script` - `acceptance/bundle/deploy/immutable/permissions-change/script` - `acceptance/bundle/resources/postgres_projects/recreate/script` - `acceptance/selftest/record_cloud/pipeline-crud/script` </details> <details> <summary>Trailing <code>\n</code> stripped from the <code>title</code> label (160 scripts)</summary> - `acceptance/air/image-push/script` - `acceptance/auth/bundle_default_profile/script` - `acceptance/auth/host-metadata-cache/script` - `acceptance/bundle/apps/delete_deleting/script` - `acceptance/bundle/artifacts/whl_dynamic/script` - `acceptance/bundle/debug/fetch-repository-info/script` - `acceptance/bundle/deploy/mlops-stacks/script` - `acceptance/bundle/deployment/bind/job/generate-and-bind/script` - `acceptance/bundle/deployment/bind/job/job-abort-bind/script` - `acceptance/bundle/deployment/bind/job/job-spark-python-task/script` - `acceptance/bundle/deployment/bind/job/stale-state/script` - `acceptance/bundle/deployment/bind/job/unreadable-state/script` - `acceptance/bundle/destroy/jobs-and-pipeline/script` - `acceptance/bundle/destroy/lineage-mismatch-after-redeploy/script` - `acceptance/bundle/escaped_refs/script` - `acceptance/bundle/generate/auto-bind/script` - `acceptance/bundle/git-metadata/script` - `acceptance/bundle/hashing/new-cli-on-old-state/script` - `acceptance/bundle/hashing/old-cli-on-new-state/script` - `acceptance/bundle/includes/plan_multifile/script` - `acceptance/bundle/local_state_staleness/script` - `acceptance/bundle/migrate/auto/apply-failure/script` - `acceptance/bundle/migrate/auto/artifacts/script` - `acceptance/bundle/migrate/auto/clean/script` - `acceptance/bundle/migrate/auto/default/script` - `acceptance/bundle/migrate/auto/empty-tfstate/script` - `acceptance/bundle/migrate/auto/envvar/script` - `acceptance/bundle/migrate/auto/push-failure/script` - `acceptance/bundle/migrate/auto/run-no-commit/script` - `acceptance/bundle/migrate/auto/tfbackup-failure/script` - `acceptance/bundle/resource_deps/escaped_ref/script` - `acceptance/bundle/resources/cluster_policies/definition_and_family_conflict/script` - `acceptance/bundle/resources/clusters/cluster_policy/script` - `acceptance/bundle/resources/clusters/deploy/local_ssd_count/script` - `acceptance/bundle/resources/clusters/deploy/local_ssd_count_update/script` - `acceptance/bundle/resources/clusters/deploy/simple/script` - `acceptance/bundle/resources/clusters/deploy/spot_bid_max_price_update/script` - `acceptance/bundle/resources/clusters/deploy/update-after-create/script` - `acceptance/bundle/resources/clusters/deploy/update-and-resize-autoscale/script` - `acceptance/bundle/resources/clusters/deploy/update-and-resize/script` - `acceptance/bundle/resources/clusters/deploy/use_preemptible_update/script` - `acceptance/bundle/resources/clusters/resize-terminated-fallback/script` - `acceptance/bundle/resources/dashboards/change-serialized-inline/script` - `acceptance/bundle/resources/dashboards/detect-change/script` - `acceptance/bundle/resources/dashboards/generate_inplace/script` - `acceptance/bundle/resources/job_runs/on_bundle_deploy/script` - `acceptance/bundle/resources/job_runs/on_file_change/script` - `acceptance/bundle/resources/job_runs/on_file_change_glob/script` - `acceptance/bundle/resources/jobs/check-metadata/script` - `acceptance/bundle/resources/jobs/cluster_policy/config_conflicts_policy/script` - `acceptance/bundle/resources/jobs/cluster_policy/default_flag/script` - `acceptance/bundle/resources/jobs/cluster_policy/fixed_addition/script` - `acceptance/bundle/resources/jobs/cluster_policy/owned_tag_drift/script` - `acceptance/bundle/resources/jobs/cluster_policy/policy_id_scoping/script` - `acceptance/bundle/resources/jobs/remote_matches_config/script` - `acceptance/bundle/resources/jobs/webhook-reorder-remote/script` - `acceptance/bundle/resources/model_serving_endpoints/basic/script` - `acceptance/bundle/resources/permissions/factcheck/script` - `acceptance/bundle/resources/permissions/jobs/delete_one/script` - `acceptance/bundle/resources/permissions/jobs/update/script` - `acceptance/bundle/resources/permissions/pipelines/update/script` - `acceptance/bundle/resources/pipelines/cluster_policy/script` - `acceptance/bundle/resources/volumes/change-comment/script` - `acceptance/bundle/resources/volumes/change-name/script` - `acceptance/bundle/resources/volumes/change-schema-name/script` - `acceptance/bundle/run/app-with-job/script` - `acceptance/bundle/select/basic/script` - `acceptance/bundle/select/deletion/script` - `acceptance/bundle/select/deletion_dependents/script` - `acceptance/bundle/select/deletion_saved_plan/script` - `acceptance/bundle/select/grants_permissions/script` - `acceptance/bundle/select/plan_file_survives_not_selected/script` - `acceptance/bundle/select/redeploy_unqualified/script` - `acceptance/bundle/state/engine_default/script` - `acceptance/bundle/state/engine_mismatch/script` - `acceptance/bundle/state/force_pull_commands/script` - `acceptance/bundle/state/newer_cli_version/script` - `acceptance/bundle/state/state_present/script` - `acceptance/bundle/sync/replace-node-type/script` - `acceptance/bundle/sync/zip-extract/script` - `acceptance/bundle/telemetry/deploy-immutable-snapshot/script` - `acceptance/bundle/templates-machinery/workspace_variable/input/script` - `acceptance/bundle/templates-machinery/workspace_variable/runtime/script` - `acceptance/bundle/templates/dbt-sql-workspace-id/script` - `acceptance/bundle/templates/default-minimal/profiles/script` - `acceptance/bundle/validate/presets_name_prefix_dev/script` - `acceptance/bundle/variables/reference-typo/script` - `acceptance/bundle/variables/sensitive/script` - `acceptance/cache/clear/script` - `acceptance/cache/simple/script` - `acceptance/cmd/aitools/claude-config-dir/script` - `acceptance/cmd/aitools/list/explicit-ref/script` - `acceptance/cmd/aitools/list/latest-lookup-fails/script` - `acceptance/cmd/aitools/list/latest/script` - `acceptance/cmd/aitools/list/pinned/script` - `acceptance/cmd/api/default-profile-vs-env/script` - `acceptance/cmd/api/default-profile/script` - `acceptance/cmd/api/profile-overrides-env/script` - `acceptance/cmd/api/request-handling/script` - `acceptance/cmd/auth/describe/account-host-with-workspace-id/script` - `acceptance/cmd/auth/describe/bundle-profile-env/script` - `acceptance/cmd/auth/describe/default-profile/script` - `acceptance/cmd/auth/describe/profile-overrides-env/script` - `acceptance/cmd/auth/docker/configure-errors/script` - `acceptance/cmd/auth/docker/configure-missing-region/script` - `acceptance/cmd/auth/docker/configure/script` - `acceptance/cmd/auth/docker/host/script` - `acceptance/cmd/auth/docker/invalid-refresh-token/script` - `acceptance/cmd/auth/docker/token/script` - `acceptance/cmd/auth/login/configure-serverless/script` - `acceptance/cmd/auth/login/custom-config-file/script` - `acceptance/cmd/auth/login/device-code/non-interactive/concurrent/script` - `acceptance/cmd/auth/login/device-code/non-interactive/errors/script` - `acceptance/cmd/auth/login/device-code/non-interactive/flags/script` - `acceptance/cmd/auth/login/device-code/non-interactive/nominal/script` - `acceptance/cmd/auth/login/device-code/precondition/script` - `acceptance/cmd/auth/login/device-code/unsupported-host/script` - `acceptance/cmd/auth/login/host-arg-overrides-profile/script` - `acceptance/cmd/auth/login/host-from-profile/script` - `acceptance/cmd/auth/login/preserve-fields/script` - `acceptance/cmd/auth/logout/default-profile/script` - `acceptance/cmd/auth/logout/delete-clears-default/script` - `acceptance/cmd/auth/logout/delete-pat-token-profile/script` - `acceptance/cmd/auth/logout/error-cases/script` - `acceptance/cmd/auth/logout/last-non-default/script` - `acceptance/cmd/auth/logout/ordering-preserved/script` - `acceptance/cmd/auth/logout/pending-device-code-login/script` - `acceptance/cmd/auth/logout/stale-account-id-workspace-host/script` - `acceptance/cmd/auth/logout/token-only-shared-host/script` - `acceptance/cmd/auth/logout/token-only/script` - `acceptance/cmd/auth/profiles/script` - `acceptance/cmd/auth/storage-modes/env-overrides-config/script` - `acceptance/cmd/auth/storage-modes/plaintext-env-default/script` - `acceptance/cmd/auth/switch/nominal/script` - `acceptance/cmd/auth/token/default-profile/script` - `acceptance/cmd/configure/clears-oauth-on-pat/script` - `acceptance/cmd/configure/clears-serverless-when-cluster-from-env/script` - `acceptance/cmd/psql/completions/script` - `acceptance/cmd/version/script` - `acceptance/cmd/workspace/apps/run-local-node/script` - `acceptance/cmd/workspace/apps/run-local/script` - `acceptance/cmd/workspace/arg-validation/script` - `acceptance/cmd/workspace/clusters-list/script` - `acceptance/cmd/workspace/put-secret/script` - `acceptance/cmd/workspace/uc-renames/script` - `acceptance/pipelines/history/basic/script` - `acceptance/pipelines/show/basic/script` - `acceptance/pipelines/show/exact-limit/script` - `acceptance/pipelines/show/limit-hint/script` - `acceptance/pipelines/show/rendering/script` - `acceptance/selftest/selection/script` - `acceptance/selftest/selection_exclusions/script` - `acceptance/selftest/uuid/script` - `acceptance/ssh/agent-launchers/script` - `acceptance/ssh/bulk-transfer/script` - `acceptance/ssh/connect-serverless-cpu/script` - `acceptance/ssh/connect-serverless-feature-disabled/script` - `acceptance/ssh/connect-serverless-port-forwarding-disabled/script` - `acceptance/ssh/reconnect-reused-name/script` - `acceptance/ssh/setup/script` </details> This pull request and its description were written by Isaac. --------- Co-authored-by: Isaac <no-reply@databricks.com>
1 parent c76b7d1 commit 8b4f052

779 files changed

Lines changed: 2471 additions & 639 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎acceptance/air/cancel/output.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

22
=== cancel by id (text)
3+
34
>>> [CLI] air cancel 123
45
Successfully requested cancellation for run 123
56

67
=== cancel by id (json)
8+
79
>>> [CLI] air cancel 123 -o json
810
{
911
"v": 1,
@@ -16,12 +18,14 @@ Successfully requested cancellation for run 123
1618
}
1719

1820
=== cancel multiple ids
21+
1922
>>> [CLI] air cancel 123 456
2023
Successfully requested cancellation for run 123
2124
Successfully requested cancellation for run 456
2225
Successfully requested cancellation for 2 run(s).
2326

2427
=== cancel --all
28+
2529
>>> [CLI] air cancel --all -y
2630
Searching active runs for [USERNAME] in [DATABRICKS_URL]...
2731
Successfully requested cancellation for run 334747067049496

‎acceptance/air/config-help/output.txt‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
=== command help
3+
34
>>> [CLI] air run --help
45
Submit a training workload to Databricks serverless GPU compute.
56

@@ -32,6 +33,7 @@ Global Flags:
3233
-t, --target string bundle target to use (if applicable)
3334

3435
=== schema overview
36+
3537
>>> [CLI] air run -h config
3638
config
3739
The run YAML schema. Pass a field path for details, e.g. config.compute.accelerator_type.
@@ -70,6 +72,7 @@ config
7072
Use "-h config.<field>" for details on a field.
7173

7274
=== nested object lists its fields
75+
7376
>>> [CLI] air run -h config.compute
7477
config.compute
7578
Which accelerators to run on and how many.
@@ -88,6 +91,7 @@ config.compute
8891
Use "-h config.compute.<field>" for details on a field.
8992

9093
=== new submission fields are documented
94+
9195
>>> [CLI] air run -h config.mlflow_artifact_location
9296
config.mlflow_artifact_location
9397
DBFS location where MLflow artifacts are written. A /Volumes path is normalized to dbfs:/Volumes/... .
@@ -124,6 +128,7 @@ config.environment.version
124128
Required: no
125129

126130
=== leaf field
131+
127132
>>> [CLI] air run -h config.compute.accelerator_type
128133
config.compute.accelerator_type
129134
Which accelerator to run on, e.g. GPU_1xA10. See https://docs.databricks.com/aws/en/machine-learning/ai-runtime/cli/yaml-config#reference for the current list of supported GPU types. Matched case-sensitively.
@@ -137,6 +142,7 @@ config.compute.accelerator_type
137142
Required: no
138143

139144
=== code source fields
145+
140146
>>> [CLI] air run -h config.code_source
141147
config.code_source
142148
Local code to upload and make available to the run.
@@ -150,6 +156,7 @@ config.code_source
150156
Use "-h config.code_source.<field>" for details on a field.
151157

152158
=== union field
159+
153160
>>> [CLI] air run -h config.code_source.git.remote
154161
config.code_source.git.remote
155162
No longer supported: the snapshot archives your local copy. Only false is accepted; use commit to pin a revision.
@@ -158,6 +165,7 @@ config.code_source.git.remote
158165
Required: no
159166

160167
=== git-pinned subdirectory documents root_path scoping
168+
161169
>>> [CLI] air run -h config.code_source.root_path
162170
config.code_source.root_path
163171
Root of the code source to archive. A git-pinned subdirectory packages only that subtree.
@@ -166,6 +174,7 @@ config.code_source.root_path
166174
Required: when code_source is set
167175

168176
=== the config. prefix is optional
177+
169178
>>> [CLI] air run -h compute.num_accelerators
170179
config.compute.num_accelerators
171180
Total number of GPUs to allocate. Must be a positive multiple of the accelerator type's per-node GPU count. See https://docs.databricks.com/aws/en/machine-learning/ai-runtime/cli/yaml-config#reference for supported GPU types.
@@ -174,11 +183,13 @@ config.compute.num_accelerators
174183
Required: no
175184

176185
=== unknown field suggests the near match
186+
177187
>>> [CLI] air run -h config.compute.acclerator_type
178188
Error: unknown config field "config.compute.acclerator_type"; did you mean "accelerator_type"?
179189

180190
fields under "config.compute" are: accelerator_type, num_accelerators, pool_id, priority_class
181191

182192
=== free-form map keys are not schema fields
193+
183194
>>> [CLI] air run -h config.parameters.learning_rate
184195
Error: "config.parameters" holds user-defined keys, so "learning_rate" is not part of the schema; see "config.parameters" instead

‎acceptance/air/convert-to-dabs/output.txt‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
=== convert an AIR run YAML into a DABs bundle (in place, next to the source)
3+
34
>>> [CLI] air convert-to-dabs train.yaml
45
Wrote a Databricks Asset Bundle to .:
56
databricks.yml
@@ -20,6 +21,7 @@ job and its uploaded files with:
2021
[CLI] bundle destroy
2122

2223
=== emitted databricks.yml (code_source packaged as a tgz artifact; no code is copied)
24+
2325
>>> cat databricks.yml
2426
bundle:
2527
name: torchrun-a10-smoke-test
@@ -65,11 +67,13 @@ resources:
6567
environment_version: "6"
6668

6769
=== the generated command.sh carries the run command
70+
6871
>>> cat generated_artifacts/command.sh
6972
cd $CODE_SOURCE_PATH
7073
torchrun --nproc_per_node=1 train.py
7174

7275
=== the emitted bundle validates
76+
7377
>>> [CLI] bundle validate
7478
Name: torchrun-a10-smoke-test
7579
Target: dev
@@ -80,12 +84,14 @@ Workspace:
8084
Validation OK!
8185

8286
=== re-converting refuses to clobber the generated bundle
87+
8388
>>> [CLI] air convert-to-dabs train.yaml
8489
Error: databricks.yml already exists in .; pass --force to overwrite or remove it
8590

8691
Exit code: 1
8792

8893
=== --force overwrites it
94+
8995
>>> [CLI] air convert-to-dabs train.yaml --force
9096
Wrote a Databricks Asset Bundle to .:
9197
databricks.yml
@@ -106,6 +112,7 @@ job and its uploaded files with:
106112
[CLI] bundle destroy
107113

108114
=== convert a B300 run using the current SDK
115+
109116
>>> [CLI] air convert-to-dabs b300.yaml --output-dir generated-b300
110117
Wrote a Databricks Asset Bundle to generated-b300:
111118
databricks.yml
@@ -127,6 +134,7 @@ job and its uploaded files with:
127134
[CLI] bundle destroy
128135

129136
=== the B300 bundle preserves its accelerator and AI Runtime version
137+
130138
>>> cat generated-b300/databricks.yml
131139
bundle:
132140
name: b300-smoke-test
@@ -159,6 +167,7 @@ resources:
159167
environment_version: "6"
160168

161169
=== the current SDK recognizes B300 so bundle validation is clean
170+
162171
>>> [CLI] bundle validate
163172
Name: b300-smoke-test
164173
Target: dev
@@ -169,6 +178,7 @@ Workspace:
169178
Validation OK!
170179

171180
=== databricks_ai versions use a base environment
181+
172182
>>> [CLI] air convert-to-dabs databricks-ai.yaml --force
173183
Wrote a Databricks Asset Bundle to .:
174184
databricks.yml
@@ -192,6 +202,7 @@ job and its uploaded files with:
192202
base_environment: workspace-base-environments/databricks_ai_v5
193203

194204
=== the Databricks AI bundle validates
205+
195206
>>> [CLI] bundle validate
196207
Name: databricks-ai-v5-smoke-test
197208
Target: dev

‎acceptance/air/get-ai-runtime/output.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
=== get (text)
3+
34
>>> [CLI] air get 123
45

56
╭─ Configuration ────────────────────────────────────────────────╮
@@ -35,6 +36,7 @@ Run URL: [DATABRICKS_URL]/jobs/runs/123?o=[WORKSPACE_ID]
3536
MLflow URL: [DATABRICKS_URL]/ml/experiments/exp1/runs/run1
3637

3738
=== get (json)
39+
3840
>>> [CLI] air get 123 -o json
3941
{
4042
"v": 1,

‎acceptance/air/get/output.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
=== get (text)
3+
34
>>> [CLI] air get 123
45

56
╭─ Configuration ────────────────────────────────────────────────╮
@@ -35,6 +36,7 @@ Run URL: [DATABRICKS_URL]/jobs/runs/123?o=[WORKSPACE_ID]
3536
MLflow URL: [DATABRICKS_URL]/ml/experiments/exp1/runs/run1
3637

3738
=== get (json)
39+
3840
>>> [CLI] air get 123 -o json
3941
{
4042
"v": 1,
@@ -54,12 +56,14 @@ MLflow URL: [DATABRICKS_URL]/ml/experiments/exp1/runs/run1
5456
}
5557

5658
=== invalid run id
59+
5760
>>> [CLI] air get notanumber
5861
Error: invalid JOB_RUN_ID "notanumber": must be a positive integer
5962

6063
Exit code: 1
6164

6265
=== invalid run id (json)
66+
6367
>>> [CLI] air get notanumber -o json
6468
{
6569
"v": 1,

‎acceptance/air/help/output.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
=== help
3+
34
>>> [CLI] air --help
45
Run and manage AI Runtime training workloads on Databricks serverless GPU compute.
56

@@ -30,6 +31,7 @@ Global Flags:
3031
Use "databricks air [command] --help" for more information about a command.
3132

3233
=== list help
34+
3335
>>> [CLI] air list --help
3436
List active runs for the current user.
3537

@@ -66,6 +68,7 @@ Global Flags:
6668
-t, --target string bundle target to use (if applicable)
6769

6870
=== get help
71+
6972
>>> [CLI] air get --help
7073
Show status, configuration, and timing details for a specified run.
7174

@@ -84,6 +87,7 @@ Global Flags:
8487
-t, --target string bundle target to use (if applicable)
8588

8689
=== pools help
90+
8791
>>> [CLI] air pools --help
8892
View provisioned GPU pools
8993

@@ -107,6 +111,7 @@ Global Flags:
107111
Use "databricks air pools [command] --help" for more information about a command.
108112

109113
=== images help
114+
110115
>>> [CLI] air images --help
111116
Manage container images for AI Runtime
112117

@@ -129,6 +134,7 @@ Global Flags:
129134
Use "databricks air images [command] --help" for more information about a command.
130135

131136
=== images push help
137+
132138
>>> [CLI] air images push --help
133139
This CLI command is in Preview. For current feature status and requirements, see:
134140
AWS: https://docs.databricks.com/aws/en/machine-learning/ai-runtime/cli/docker-images
@@ -162,6 +168,7 @@ Global Flags:
162168
-t, --target string bundle target to use (if applicable)
163169

164170
=== logs help
171+
165172
>>> [CLI] air logs --help
166173
Stream logs from an active run until it completes, or fetch logs from a
167174
completed run.
@@ -191,6 +198,7 @@ Global Flags:
191198
-t, --target string bundle target to use (if applicable)
192199

193200
=== cancel help
201+
194202
>>> [CLI] air cancel --help
195203
Cancel one or more runs by job run ID, or use --all to cancel
196204
all active runs submitted by the current user.

‎acceptance/air/image-push/output.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
=== push image
3+
34
>>> databricks air images push -p docker-test -s nvidia/cuda:13.4.1 --catalog my-catalog --schema my-schema --artifact cuda:13.4.1-cudnn-devel-ubuntu26.04
45
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
56
Pushing nvidia/cuda:13.4.1 as my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04 using profile docker-test
@@ -35,6 +36,7 @@ tag nvidia/cuda:13.4.1 [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.m
3536
push [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
3637

3738
=== missing image is pulled for AIR; destination defaults to source
39+
3840
>>> databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
3941
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
4042
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
@@ -50,6 +52,7 @@ Pushed image.
5052
Now you can set `environment.unity_catalog_image = main.training.image:v1` in your YAML config and create a workload with `databricks air run -f config.yaml`.
5153

5254
=== forced pull and JSON output
55+
5356
>>> databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --pull -o json
5457
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
5558
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
@@ -73,6 +76,7 @@ Pushed image.
7376
}
7477

7578
=== daemon failure must not pull
79+
7680
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
7781
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
7882
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
@@ -83,6 +87,7 @@ Cannot connect to the Docker daemon
8387
Error: check local source image example/image:v1 (ensure Docker is running and accessible): exit status 1
8488

8589
=== inspect failure must not pull
90+
8691
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
8792
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
8893
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
@@ -94,6 +99,7 @@ Docker inspect failed
9499
Error: inspect source image example/image:v1: exit status 1
95100

96101
=== incompatible local image must not be pushed
102+
97103
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
98104
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
99105
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
@@ -104,6 +110,7 @@ Using local source image example/image:v1
104110
Error: source image example/image:v1 has platform "linux/arm64"; AIR requires linux/amd64: use --pull to fetch a compatible image, or rebuild the source for linux/amd64
105111

106112
=== incompatible pulled image must not be pushed
113+
107114
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --pull
108115
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
109116
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
@@ -115,6 +122,7 @@ Docker pull progress
115122
Error: source image example/image:v1 has platform "linux/arm64"; AIR requires linux/amd64: use --pull to fetch a compatible image, or rebuild the source for linux/amd64
116123

117124
=== pull failure must not be pushed
125+
118126
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --pull
119127
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
120128
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
@@ -126,6 +134,7 @@ Docker pull failed
126134
Error: pull source image example/image:v1: exit status 1
127135

128136
=== invalid destination and removed flags
137+
129138
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --artifact invalid.name
130139
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
131140
Error: invalid artifact name "invalid.name": use lowercase letters and digits separated by one or two underscores or one or more hyphens
@@ -177,6 +186,7 @@ Global Flags:
177186

178187

179188
=== reject oversized catalog.schema.artifact before Docker operations
189+
180190
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --artifact aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
181191
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
182192
Error: invalid image repository name: catalog.schema.artifact must be 255 characters or less

0 commit comments

Comments
 (0)