Skip to content
Merged
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -918,9 +918,10 @@ func runTest(t *testing.T,
args := []string{"bash", "-euo", "pipefail", EntryPointScript}
cmd := exec.CommandContext(ctx, args[0], args[1:]...)

cfg, user := internal.PrepareServerAndClient(t, config, LogRequests, outputDir, testEnv)
cfg, user, workspaceID := internal.PrepareServerAndClient(t, config, LogRequests, outputDir, testEnv)
testdiff.PrepareReplacementsUser(t, &repls, user)
testdiff.PrepareReplacementsWorkspaceConfig(t, &repls, cfg)
repls.Set(workspaceID, "[WORKSPACE_ID]")

cmd.Env = auth.ProcessEnv(cfg)

Expand Down
4 changes: 2 additions & 2 deletions acceptance/air/cancel/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ Successfully requested cancellation for 2 run(s).
=== cancel --all
>>> [CLI] air cancel --all -y
Searching active runs for [USERNAME] in [DATABRICKS_URL]...
Successfully requested cancellation for run [NUMID]
Successfully requested cancellation for run [NUMID]
Successfully requested cancellation for run 334747067049496
Successfully requested cancellation for run 566001814929041

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.

Even if they're static, it would be nice to use replacements to set the right example.

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.

Not sure about this -- grepping the number I get exact point where it is coming from (test.toml [[Server]]). Grepping replacement I'd have one level of indirection there. We could use more memorable numbers, e.g. 111 and 222 but these ones are distinct enough.

Successfully requested cancellation for 2 run(s).
4 changes: 2 additions & 2 deletions acceptance/air/get-ai-runtime/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
│ │
╰────────────────────────────────────────────────────────────────╯

Run URL: [DATABRICKS_URL]/jobs/runs/123?o=[NUMID]
Run URL: [DATABRICKS_URL]/jobs/runs/123?o=[WORKSPACE_ID]
MLflow URL: [DATABRICKS_URL]/ml/experiments/exp1/runs/run1

=== get (json)
Expand All @@ -46,7 +46,7 @@ MLflow URL: [DATABRICKS_URL]/ml/experiments/exp1/runs/run1
"duration_seconds": 12,
"attempt_number": 0,
"experiment_name": "my-exp",
"dashboard_url": "[DATABRICKS_URL]/jobs/runs/123?o=[NUMID]",
"dashboard_url": "[DATABRICKS_URL]/jobs/runs/123?o=[WORKSPACE_ID]",
"mlflow_url": "[DATABRICKS_URL]/ml/experiments/exp1/runs/run1/artifacts/logs/node_0",
"est_remaining_seconds": null,
"est_percent_complete": null
Expand Down
4 changes: 2 additions & 2 deletions acceptance/air/get/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
│ │
╰────────────────────────────────────────────────────────────────╯

Run URL: [DATABRICKS_URL]/jobs/runs/123?o=[NUMID]
Run URL: [DATABRICKS_URL]/jobs/runs/123?o=[WORKSPACE_ID]
MLflow URL: [DATABRICKS_URL]/ml/experiments/exp1/runs/run1

=== get (json)
Expand All @@ -46,7 +46,7 @@ MLflow URL: [DATABRICKS_URL]/ml/experiments/exp1/runs/run1
"duration_seconds": 12,
"attempt_number": 0,
"experiment_name": "my-exp",
"dashboard_url": "[DATABRICKS_URL]/jobs/runs/123?o=[NUMID]",
"dashboard_url": "[DATABRICKS_URL]/jobs/runs/123?o=[WORKSPACE_ID]",
"mlflow_url": "[DATABRICKS_URL]/ml/experiments/exp1/runs/run1/artifacts/logs/node_0",
"est_remaining_seconds": null,
"est_percent_complete": null
Expand Down
6 changes: 3 additions & 3 deletions acceptance/air/help/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ Usage:
databricks air logs JOB_RUN_ID [flags]

Examples:
databricks air logs [NUMID]
databricks air logs [NUMID] --node 1 --retry 0
databricks air logs [NUMID] --download-to ./logs
databricks air logs 123456789
databricks air logs 123456789 --node 1 --retry 0
databricks air logs 123456789 --download-to ./logs

Flags:
--download-to string Download all logs to this directory instead of printing
Expand Down
46 changes: 23 additions & 23 deletions acceptance/air/image-push/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
>>> 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
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
Pushing nvidia/cuda:13.4.1 as my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04 using profile docker-test
Configured Docker credential helper for [NUMID].container.us-west-2.localhost
Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
Using local source image nvidia/cuda:13.4.1
Tagging image as [NUMID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
Pushing image to [NUMID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
Docker push progress
Pushed image.
Now you can set `environment.unity_catalog_image = my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04` in your YAML config and create a workload with `databricks air run -f config.yaml`.
Expand All @@ -31,20 +31,20 @@ Now you can set `environment.unity_catalog_image = my-catalog.my-schema.cuda:13.
=== docker commands
image ls --quiet nvidia/cuda:13.4.1
image inspect --format {{.Os}}/{{.Architecture}} nvidia/cuda:13.4.1
tag nvidia/cuda:13.4.1 [NUMID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
push [NUMID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
tag nvidia/cuda:13.4.1 [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
push [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04

=== missing image is pulled for AIR; destination defaults to source
>>> databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
Configured Docker credential helper for [NUMID].container.us-west-2.localhost
Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
Pulling source image example/image:v1 for linux/amd64
Docker pull progress
Tagging image as [NUMID].container.us-west-2.localhost/main.training.image:v1
Pushing image to [NUMID].container.us-west-2.localhost/main.training.image:v1
Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
Docker push progress
Pushed image.
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`.
Expand All @@ -53,13 +53,13 @@ Now you can set `environment.unity_catalog_image = main.training.image:v1` in yo
>>> databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --pull -o json
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
Configured Docker credential helper for [NUMID].container.us-west-2.localhost
Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
Pulling source image example/image:v1 for linux/amd64
Docker pull progress
Tagging image as [NUMID].container.us-west-2.localhost/main.training.image:v1
Pushing image to [NUMID].container.us-west-2.localhost/main.training.image:v1
Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
Docker push progress
Pushed image.

Expand All @@ -68,15 +68,15 @@ Pushed image.
"v": 1,
"data": {
"unity_catalog_image": "main.training.image:v1",
"registry_image": "[NUMID].container.us-west-2.localhost/main.training.image:v1"
"registry_image": "[WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1"
}
}

=== daemon failure must not pull
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
Configured Docker credential helper for [NUMID].container.us-west-2.localhost
Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
Cannot connect to the Docker daemon
Expand All @@ -86,7 +86,7 @@ Error: check local source image example/image:v1 (ensure Docker is running and a
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
Configured Docker credential helper for [NUMID].container.us-west-2.localhost
Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
Using local source image example/image:v1
Expand All @@ -97,7 +97,7 @@ Error: inspect source image example/image:v1: exit status 1
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
Configured Docker credential helper for [NUMID].container.us-west-2.localhost
Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
Using local source image example/image:v1
Expand All @@ -107,7 +107,7 @@ Error: source image example/image:v1 has platform "linux/arm64"; AIR requires li
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --pull
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
Configured Docker credential helper for [NUMID].container.us-west-2.localhost
Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
Pulling source image example/image:v1 for linux/amd64
Expand All @@ -118,7 +118,7 @@ Error: source image example/image:v1 has platform "linux/arm64"; AIR requires li
>>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --pull
Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
Pushing example/image:v1 as main.training.image:v1 using profile docker-test
Configured Docker credential helper for [NUMID].container.us-west-2.localhost
Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
Pulling source image example/image:v1 for linux/amd64
Expand Down Expand Up @@ -184,17 +184,17 @@ Error: invalid image repository name: catalog.schema.artifact must be 255 charac
=== all docker commands
image ls --quiet nvidia/cuda:13.4.1
image inspect --format {{.Os}}/{{.Architecture}} nvidia/cuda:13.4.1
tag nvidia/cuda:13.4.1 [NUMID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
push [NUMID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
tag nvidia/cuda:13.4.1 [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
push [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
image ls --quiet example/image:v1
pull --platform linux/amd64 example/image:v1
image inspect --format {{.Os}}/{{.Architecture}} example/image:v1
tag example/image:v1 [NUMID].container.us-west-2.localhost/main.training.image:v1
push [NUMID].container.us-west-2.localhost/main.training.image:v1
tag example/image:v1 [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
push [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
pull --platform linux/amd64 example/image:v1
image inspect --format {{.Os}}/{{.Architecture}} example/image:v1
tag example/image:v1 [NUMID].container.us-west-2.localhost/main.training.image:v1
push [NUMID].container.us-west-2.localhost/main.training.image:v1
tag example/image:v1 [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
push [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
image ls --quiet example/image:v1
image ls --quiet example/image:v1
image inspect --format {{.Os}}/{{.Architecture}} example/image:v1
Expand Down
8 changes: 4 additions & 4 deletions acceptance/air/list/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
=== list (text)
>>> [CLI] air list
Run ID Experiment Status Started Duration Progress MLflow User Accelerators
[NUMID] qwen-train ● SUCCESS [TIMESTAMP] 12s - qwen-train-001 [USERNAME] 8x H100
334747067049496 qwen-train ● SUCCESS [TIMESTAMP] 12s - qwen-train-001 [USERNAME] 8x H100

=== list (json)
>>> [CLI] air list -o json
Expand All @@ -12,7 +12,7 @@
"data": {
"runs": [
{
"run_id": "[NUMID]",
"run_id": "334747067049496",
"run_name": "qwen-train",
"user": "[USERNAME]",
"status": "SUCCESS",
Expand All @@ -26,7 +26,7 @@
=== list --all-status (text, via AiTrainingService index)
>>> [CLI] air list --all-status
Run ID Experiment Status Started Duration Progress MLflow User Accelerators
[NUMID] qwen-train ● SUCCESS [TIMESTAMP] 12s - qwen-train-001 [USERNAME] 8x H100
334747067049496 qwen-train ● SUCCESS [TIMESTAMP] 12s - qwen-train-001 [USERNAME] 8x H100

=== list --all-status (json)
>>> [CLI] air list --all-status -o json
Expand All @@ -36,7 +36,7 @@
"data": {
"runs": [
{
"run_id": "[NUMID]",
"run_id": "334747067049496",
"run_name": "qwen-train",
"user": "[USERNAME]",
"status": "SUCCESS",
Expand Down
2 changes: 1 addition & 1 deletion acceptance/bin/repls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pathlib import Path

# Order of the replacements added by the scripts, so that they are applied before the ones
# from the harness: a job id must become [MY_JOB] rather than [NUMID].
# from the harness: a job id must become [MY_JOB] even if a broader harness pattern matches it.
USER_ORDER = -100


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
}
],
"format": "MULTI_TASK",
"job_id": [NUMID],
"job_id": [TEST_JOB_ID],
"max_concurrent_runs": 1,
"name": "[default] My Wheel Job",
"queue": {
Expand Down
1 change: 1 addition & 0 deletions acceptance/bundle/artifacts/whl_dynamic/script
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ trace $CLI bundle validate -o json | nostamp | jq .artifacts
$CLI bundle plan -o json > tmp.plan.json 2>>LOG.plan
nostamp < tmp.plan.json > out.plan_create.json
$CLI bundle deploy $(readplanarg tmp.plan.json) &> LOG.deploy
replace_ids.py
cat LOG.deploy | contains.py "patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+" "patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+" > /dev/null

title "There are 2 original wheels and 2 patched ones"
Expand Down
4 changes: 2 additions & 2 deletions acceptance/bundle/bundle_tag/id/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Resources:
Jobs:
foo:
Name: Untitled
URL: [DATABRICKS_URL]/jobs/[NUMID]?w=[NUMID]
URL: [DATABRICKS_URL]/jobs/[FOO_ID]?w=[WORKSPACE_ID]

>>> [CLI] bundle destroy --auto-approve
The following resources will be deleted:
Expand All @@ -83,6 +83,6 @@ Destroy: 1 deleted
"method": "POST",
"path": "/api/2.2/jobs/delete",
"body": {
"job_id": [NUMID]
"job_id": [FOO_ID]
}
}
1 change: 1 addition & 0 deletions acceptance/bundle/bundle_tag/id/script
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ trace $CLI bundle validate
trace $CLI bundle validate -o json | nostamp | jq .resources
trace $CLI bundle plan
trace $CLI bundle deploy
replace_ids.py
trace print_requests.py --nostamp //jobs
trace $CLI bundle summary
trace $CLI bundle destroy --auto-approve
Expand Down
4 changes: 2 additions & 2 deletions acceptance/bundle/bundle_tag/url/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Resources:
Jobs:
foo:
Name: Untitled
URL: [DATABRICKS_URL]/jobs/[NUMID]?w=[NUMID]
URL: [DATABRICKS_URL]/jobs/[FOO_ID]?w=[WORKSPACE_ID]

>>> [CLI] bundle destroy --auto-approve
The following resources will be deleted:
Expand All @@ -83,6 +83,6 @@ Destroy: 1 deleted
"method": "POST",
"path": "/api/2.2/jobs/delete",
"body": {
"job_id": [NUMID]
"job_id": [FOO_ID]
}
}
1 change: 1 addition & 0 deletions acceptance/bundle/bundle_tag/url/script
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ trace $CLI bundle validate
trace $CLI bundle validate -o json | nostamp | jq .resources
trace $CLI bundle plan
trace $CLI bundle deploy
replace_ids.py
trace print_requests.py --nostamp //jobs
trace $CLI bundle summary
trace $CLI bundle destroy --auto-approve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
=== A malformed selector is reported as failed, exit 0
{
"status": "failed",
"error": "invalid --select-ids value \"no-such-id-999\", expected \u003ctype\u003e:\u003cid\u003e (e.g. jobs:[NUMID])",
"error": "invalid --select-ids value \"no-such-id-999\", expected \u003ctype\u003e:\u003cid\u003e (e.g. jobs:123456789)",
"files": null,
"changes": {}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Exit code: 1

=== A selector without a type is still rejected
>>> [CLI] bundle config-remote-sync --select-ids no-such-id-123
Error: invalid --select-ids value "no-such-id-123", expected <type>:<id> (e.g. jobs:[NUMID])
Error: invalid --select-ids value "no-such-id-123", expected <type>:<id> (e.g. jobs:123456789)

Exit code: 1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

>>> [CLI] bundle debug fetch-repository-info --path /Workspace/Users/[USERNAME]/test-folder-[UNIQUE_NAME]
Warn: failed to load git info for repo [NUMID]: Fault injected by test.
Warn: failed to load git info for repo [REPO_ID]: Fault injected by test.
{
"worktree_root": "/Workspace/Users/[USERNAME]/test-folder-[UNIQUE_NAME]",
"current_branch": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fault.py "GET /api/2.0/repos/*" 403 0 1
export MSYS_NO_PATHCONV=1

folder=/Workspace/Users/$CURRENT_USER_NAME/test-folder-$UNIQUE_NAME
$CLI repos create https://github.com/databricks/bundle-examples gitHub --path "$folder" > /dev/null
repo_id=$($CLI repos create https://github.com/databricks/bundle-examples gitHub --path "$folder" | jq -r .id)
add_repl "$repo_id" REPO_ID

trace $CLI bundle debug fetch-repository-info --path "$folder"
2 changes: 1 addition & 1 deletion acceptance/bundle/deploy/experimental-python/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
{
"created_time": [UNIX_TIME_MILLIS],
"creator_user_name": "[USERNAME]",
"job_id": [NUMID],
"job_id": [JOB1_ID],
"settings": {
"deployment": {
"kind": "BUNDLE",
Expand Down
7 changes: 5 additions & 2 deletions acceptance/bundle/deploy/experimental-python/script
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
trace uv run --quiet --with $DATABRICKS_BUNDLES_WHEEL -- $CLI bundle deploy

trace $CLI jobs list --output json | nostamp
trace $CLI jobs list --output json | tee jobs.json.tmp | nostamp
# Take the id from the listing rather than via replace_ids.py: that needs the bundles wheel
# (uv run), and uv cannot spawn a .py script on Windows. python3, not jq: the id exceeds 2^53.
add_repl "$(python3 -c 'import sys, json; print(json.load(sys.stdin)[0]["job_id"])' < jobs.json.tmp)" JOB1_ID
rm jobs.json.tmp
2 changes: 1 addition & 1 deletion acceptance/bundle/deploy/fail-on-active-runs/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Files: 2 uploaded, 0 deleted
Resources: 1 created, 0 changed, 0 deleted, 0 unchanged

>>> errcode [CLI] bundle deploy --fail-on-active-runs
Error: job [NUMID] is running
Error: job [MY_JOB_ID] is running


Exit code: 1
Expand Down
Loading
Loading