Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions acceptance/experimental/air/run-submit/databricks.yml

This file was deleted.

3 changes: 0 additions & 3 deletions acceptance/experimental/air/run-submit/out.test.toml

This file was deleted.

46 changes: 0 additions & 46 deletions acceptance/experimental/air/run-submit/output.txt

This file was deleted.

11 changes: 0 additions & 11 deletions acceptance/experimental/air/run-submit/run.yaml.tmpl

This file was deleted.

18 changes: 0 additions & 18 deletions acceptance/experimental/air/run-submit/script

This file was deleted.

35 changes: 0 additions & 35 deletions acceptance/experimental/air/run-submit/test.toml

This file was deleted.

83 changes: 80 additions & 3 deletions acceptance/experimental/air/run/output.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,45 @@

=== dry-run (text)
>>> [CLI] experimental air run -f valid.yaml --dry-run
Dry run: configuration for "smoke-test" is valid; not submitting.
Dry run: "smoke-test" would deploy as this bundle (not deploying):

# Generated by `air export-bundle` from valid.yaml.
#
# Deploys the same workload as a durable Jobs resource. `bundle deploy` syncs this
# folder (including command.sh and your code) to the workspace; the task's
# command_path points at the synced command.sh. Before deploying, add a
# `targets` block with your workspace host. See the ai-compute DABs examples.
bundle:
name: smoke-test
resources:
jobs:
smoke-test:
name: smoke-test
tasks:
- task_key: smoke-test
environment_key: default
max_retries: 3
ai_runtime_task:
experiment: smoke-test
deployments:
- name: worker
command_path: command.sh
compute:
accelerator_type: GPU_1xH100
accelerator_count: 1
environments:
- environment_key: default
spec:
environment_version: "4"
experimental:
immutable_folder: true

# Appended by `air run` (host resolved from your CLI profile at deploy time):
targets:
dev:
mode: development
default: true


=== dry-run (json)
>>> [CLI] experimental air run -f valid.yaml --dry-run -o json
Expand All @@ -10,7 +48,8 @@ Dry run: configuration for "smoke-test" is valid; not submitting.
"ts": "[TIMESTAMP]",
"data": {
"status": "DRY_RUN_OK",
"dry_run": true
"dry_run": true,
"bundle": "# Generated by `air export-bundle` from valid.yaml.\n#\n# Deploys the same workload as a durable Jobs resource. `bundle deploy` syncs this\n# folder (including command.sh and your code) to the workspace; the task's\n# command_path points at the synced command.sh. Before deploying, add a\n# `targets` block with your workspace host. See the ai-compute DABs examples.\nbundle:\n name: smoke-test\nresources:\n jobs:\n smoke-test:\n name: smoke-test\n tasks:\n - task_key: smoke-test\n environment_key: default\n max_retries: 3\n ai_runtime_task:\n experiment: smoke-test\n deployments:\n - name: worker\n command_path: command.sh\n compute:\n accelerator_type: GPU_1xH100\n accelerator_count: 1\n environments:\n - environment_key: default\n spec:\n environment_version: \"4\"\nexperimental:\n immutable_folder: true\n\n# Appended by `air run` (host resolved from your CLI profile at deploy time):\ntargets:\n dev:\n mode: development\n default: true\n"
}
}

Expand All @@ -28,7 +67,45 @@ Exit code: 1

=== code_source config passes validation
>>> [CLI] experimental air run -f with-code-source.yaml --dry-run
Dry run: configuration for "smoke-test" is valid; not submitting.
Dry run: "smoke-test" would deploy as this bundle (not deploying):

# Generated by `air export-bundle` from with-code-source.yaml.
#
# Deploys the same workload as a durable Jobs resource. `bundle deploy` syncs this
# folder (including command.sh and your code) to the workspace; the task's
# command_path points at the synced command.sh. Before deploying, add a
# `targets` block with your workspace host. See the ai-compute DABs examples.
bundle:
name: smoke-test
resources:
jobs:
smoke-test:
name: smoke-test
tasks:
- task_key: smoke-test
environment_key: default
max_retries: 3
ai_runtime_task:
experiment: smoke-test
deployments:
- name: worker
command_path: command.sh
compute:
accelerator_type: GPU_1xH100
accelerator_count: 1
environments:
- environment_key: default
spec:
environment_version: "4"
experimental:
immutable_folder: true

# Appended by `air run` (host resolved from your CLI profile at deploy time):
targets:
dev:
mode: development
default: true


=== git.remote is rejected
>>> [CLI] experimental air run -f git-remote.yaml --dry-run
Expand Down
2 changes: 0 additions & 2 deletions acceptance/experimental/air/run/with-code-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ code_source:
type: snapshot
snapshot:
root_path: .
git:
branch: main
include_paths:
- src
Loading
Loading