Skip to content

Commit 3a21c11

Browse files
authored
Update testserver jobs to add server-side fields like real backend (#3909)
## Why Makes it easier to write local+cloud tests. Extracted from #3904
1 parent 7c3408e commit 3a21c11

File tree

50 files changed

+1305
-465
lines changed

Some content is hidden

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

50 files changed

+1305
-465
lines changed

acceptance/bundle/artifacts/whl_dynamic/out.plan_update.direct.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,17 @@
7171
}
7272
},
7373
"remote_state": {
74+
"created_time": [UNIX_TIME_MILLIS],
7475
"creator_user_name": "[USERNAME]",
7576
"job_id": [NUMID],
77+
"run_as_user_name": "[USERNAME]",
7678
"settings": {
7779
"deployment": {
7880
"kind": "BUNDLE",
7981
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
8082
},
8183
"edit_mode": "UI_LOCKED",
84+
"email_notifications": {},
8285
"environments": [
8386
{
8487
"environment_key": "test_env",
@@ -137,7 +140,9 @@
137140
},
138141
"task_key": "TestTask"
139142
}
140-
]
143+
],
144+
"timeout_seconds": 0,
145+
"webhook_notifications": {}
141146
}
142147
},
143148
"changes": {
@@ -151,6 +156,20 @@
151156
"tasks[1].libraries[0].whl": {
152157
"action": "update"
153158
}
159+
},
160+
"remote": {
161+
"email_notifications": {
162+
"action": "skip",
163+
"reason": "server_side_default"
164+
},
165+
"timeout_seconds": {
166+
"action": "skip",
167+
"reason": "server_side_default"
168+
},
169+
"webhook_notifications": {
170+
"action": "skip",
171+
"reason": "server_side_default"
172+
}
154173
}
155174
}
156175
}

acceptance/bundle/deploy/experimental-python/output.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Deployment complete!
88
>>> [CLI] jobs list --output json
99
[
1010
{
11+
"created_time": [UNIX_TIME_MILLIS],
1112
"creator_user_name": "[USERNAME]",
1213
"job_id": [NUMID],
1314
"settings": {
@@ -16,6 +17,7 @@ Deployment complete!
1617
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
1718
},
1819
"edit_mode": "UI_LOCKED",
20+
"email_notifications": {},
1921
"format": "MULTI_TASK",
2022
"max_concurrent_runs": 1,
2123
"name": "My Job",
@@ -30,7 +32,9 @@ Deployment complete!
3032
},
3133
"task_key": "my_notebook"
3234
}
33-
]
35+
],
36+
"timeout_seconds": 0,
37+
"webhook_notifications": {}
3438
}
3539
}
3640
]

acceptance/bundle/deploy/python-notebook/output.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Deployment complete!
88
>>> [CLI] jobs list --output json
99
[
1010
{
11+
"created_time": [UNIX_TIME_MILLIS],
1112
"creator_user_name": "[USERNAME]",
1213
"job_id": [NUMID],
1314
"settings": {
@@ -16,6 +17,7 @@ Deployment complete!
1617
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
1718
},
1819
"edit_mode": "UI_LOCKED",
20+
"email_notifications": {},
1921
"format": "MULTI_TASK",
2022
"max_concurrent_runs": 1,
2123
"name": "My Job",
@@ -30,7 +32,9 @@ Deployment complete!
3032
},
3133
"task_key": "my_notebook"
3234
}
33-
]
35+
],
36+
"timeout_seconds": 0,
37+
"webhook_notifications": {}
3438
}
3539
}
3640
]

acceptance/bundle/deployment/bind/job/noop-job/output.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,27 @@ Deployment complete!
1414

1515
>>> [CLI] jobs get [NUMID] --output json
1616
{
17+
"created_time":[UNIX_TIME_MILLIS],
18+
"creator_user_name":"[USERNAME]",
1719
"job_id":[NUMID],
20+
"run_as_user_name":"[USERNAME]",
1821
"settings": {
1922
"deployment": {
2023
"kind":"BUNDLE",
2124
"metadata_file_path":"/Workspace/Users/[USERNAME]/.bundle/my_project/default/state/metadata.json"
2225
},
2326
"edit_mode":"UI_LOCKED",
27+
"email_notifications": {},
2428
"format":"MULTI_TASK",
2529
"max_concurrent_runs":1,
2630
"name":"Updated Job",
2731
"queue": {
2832
"enabled":true
29-
}
33+
},
34+
"run_as": {
35+
"user_name":"[USERNAME]"
36+
},
37+
"timeout_seconds":0,
38+
"webhook_notifications": {}
3039
}
3140
}

acceptance/bundle/deployment/bind/job/python-job/output.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,27 @@ Deployment complete!
1414

1515
>>> [CLI] jobs get [NUMID] --output json
1616
{
17+
"created_time":[UNIX_TIME_MILLIS],
18+
"creator_user_name":"[USERNAME]",
1719
"job_id":[NUMID],
20+
"run_as_user_name":"[USERNAME]",
1821
"settings": {
1922
"deployment": {
2023
"kind":"BUNDLE",
2124
"metadata_file_path":"/Workspace/Users/[USERNAME]/.bundle/my_project/default/state/metadata.json"
2225
},
2326
"edit_mode":"UI_LOCKED",
27+
"email_notifications": {},
2428
"format":"MULTI_TASK",
2529
"max_concurrent_runs":1,
2630
"name":"Updated Job",
2731
"queue": {
2832
"enabled":true
29-
}
33+
},
34+
"run_as": {
35+
"user_name":"[USERNAME]"
36+
},
37+
"timeout_seconds":0,
38+
"webhook_notifications": {}
3039
}
3140
}

acceptance/bundle/deployment/unbind/job/output.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,24 @@ Deployment complete!
1818

1919
>>> [CLI] jobs get [NUMID] --output json
2020
{
21+
"created_time":[UNIX_TIME_MILLIS],
2122
"creator_user_name":"[USERNAME]",
2223
"job_id":[NUMID],
24+
"run_as_user_name":"[USERNAME]",
2325
"settings": {
2426
"deployment": {
2527
"kind":"BUNDLE",
2628
"metadata_file_path":"/Workspace/Users/[USERNAME]/.bundle/my_project/default/state/metadata.json"
2729
},
2830
"edit_mode":"UI_LOCKED",
31+
"email_notifications": {},
2932
"format":"MULTI_TASK",
3033
"max_concurrent_runs":1,
3134
"name":"My Job",
3235
"queue": {
3336
"enabled":true
34-
}
37+
},
38+
"timeout_seconds":0,
39+
"webhook_notifications": {}
3540
}
3641
}

acceptance/bundle/deployment/unbind/python-job/output.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,24 @@ Deployment complete!
1818

1919
>>> [CLI] jobs get [NUMID] --output json
2020
{
21+
"created_time":[UNIX_TIME_MILLIS],
2122
"creator_user_name":"[USERNAME]",
2223
"job_id":[NUMID],
24+
"run_as_user_name":"[USERNAME]",
2325
"settings": {
2426
"deployment": {
2527
"kind":"BUNDLE",
2628
"metadata_file_path":"/Workspace/Users/[USERNAME]/.bundle/my_project/default/state/metadata.json"
2729
},
2830
"edit_mode":"UI_LOCKED",
31+
"email_notifications": {},
2932
"format":"MULTI_TASK",
3033
"max_concurrent_runs":1,
3134
"name":"My Job",
3235
"queue": {
3336
"enabled":true
34-
}
37+
},
38+
"timeout_seconds":0,
39+
"webhook_notifications": {}
3540
}
3641
}

0 commit comments

Comments
 (0)