-
Notifications
You must be signed in to change notification settings - Fork 141
direct: Fix jobs and pipelines RemoteType to be superset of StateType #4443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
denik
wants to merge
17
commits into
main
Choose a base branch
from
denik/jobs-pipelines-remotetype
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
367e222
direct: Fix jobs and pipelines RemoteType to be superset of StateType
denik 12be2c6
ignore_remote_changes for pipeline.id
denik e22809d
update tests
denik 6abb0b9
update test missing-map-key
denik c5d5599
update test
denik cd6aa80
update migrate/basic test
denik b204e45
rm unnecessary requests
denik c85e127
update refschema
denik f0b8c88
fix
denik 6ceda96
update
denik 75d3e6d
Add tests verifying JobRemote and PipelineRemote cover all SDK fields
denik 3ffbe79
Drop "id" changes from pipeline
denik 00de2be
Merge branch 'main' into denik/jobs-pipelines-remotetype
denik 6299e60
update test output
denik 0869f66
update default-python
denik 7ddc329
update migrate/default-python
denik 17aa0f1
update tests
denik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,33 +32,31 @@ | |
| "remote_state": { | ||
| "created_time": [UNIX_TIME_MILLIS][0], | ||
| "creator_user_name": "[USERNAME]", | ||
| "deployment": { | ||
| "kind": "BUNDLE", | ||
| "metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/state/metadata.json" | ||
| }, | ||
| "edit_mode": "UI_LOCKED", | ||
| "email_notifications": {}, | ||
| "format": "MULTI_TASK", | ||
| "job_id": [NUMID], | ||
| "max_concurrent_runs": 1, | ||
| "name": "Test Migration Job", | ||
| "queue": { | ||
| "enabled": true | ||
| }, | ||
| "run_as_user_name": "[USERNAME]", | ||
| "settings": { | ||
| "deployment": { | ||
| "kind": "BUNDLE", | ||
| "metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/state/metadata.json" | ||
| }, | ||
| "edit_mode": "UI_LOCKED", | ||
| "email_notifications": {}, | ||
| "format": "MULTI_TASK", | ||
| "max_concurrent_runs": 1, | ||
| "name": "Test Migration Job", | ||
| "queue": { | ||
| "enabled": true | ||
| }, | ||
| "tasks": [ | ||
| { | ||
| "notebook_task": { | ||
| "notebook_path": "/Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/files/notebook", | ||
| "source": "WORKSPACE" | ||
| }, | ||
| "task_key": "main" | ||
| } | ||
| ], | ||
| "timeout_seconds": 0, | ||
| "webhook_notifications": {} | ||
| } | ||
| "tasks": [ | ||
| { | ||
| "notebook_task": { | ||
| "notebook_path": "/Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/files/notebook", | ||
| "source": "WORKSPACE" | ||
| }, | ||
| "task_key": "main" | ||
| } | ||
| ], | ||
| "timeout_seconds": 0, | ||
| "webhook_notifications": {} | ||
| }, | ||
| "changes": { | ||
| "email_notifications": { | ||
|
|
@@ -136,46 +134,46 @@ | |
| "tags": { | ||
| "myjob_id": "[NUMID]", | ||
| "myjob_name": "Test Migrated Job", | ||
| "myjob_timeout": "", | ||
| "myjob_timeout": "${resources.jobs.test_job.timeout_seconds}", | ||
| "myvolume_id": "mycat.myschema.myvol", | ||
| "volume_catalog_name": "mycat", | ||
| "volume_storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/[UUID]/volumes/[UUID]" | ||
| } | ||
| }, | ||
| "vars": { | ||
| "tags.myjob_timeout": "${resources.jobs.test_job.timeout_seconds}" | ||
| } | ||
| }, | ||
| "remote_state": { | ||
| "channel": "CURRENT", | ||
| "creator_user_name": "[USERNAME]", | ||
| "deployment": { | ||
| "kind": "BUNDLE", | ||
| "metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/state/metadata.json" | ||
| }, | ||
| "edition": "ADVANCED", | ||
| "id": "[UUID]", | ||
| "last_modified": [UNIX_TIME_MILLIS][1], | ||
| "libraries": [ | ||
| { | ||
| "notebook": { | ||
| "path": "/Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/files/pipeline" | ||
| } | ||
| } | ||
| ], | ||
| "name": "Test Migration Pipeline", | ||
| "pipeline_id": "[UUID]", | ||
| "run_as_user_name": "[USERNAME]", | ||
| "spec": { | ||
| "channel": "CURRENT", | ||
| "deployment": { | ||
| "kind": "BUNDLE", | ||
| "metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/state/metadata.json" | ||
| }, | ||
| "edition": "ADVANCED", | ||
| "id": "[UUID]", | ||
| "libraries": [ | ||
| { | ||
| "notebook": { | ||
| "path": "/Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/files/pipeline" | ||
| } | ||
| } | ||
| ], | ||
| "name": "Test Migration Pipeline", | ||
| "storage": "dbfs:/pipelines/[UUID]", | ||
| "tags": { | ||
| "myjob_id": "[NUMID]", | ||
| "myjob_name": "Test Migration Job", | ||
| "myjob_timeout": "", | ||
| "myvolume_id": "mycat.myschema.myvol", | ||
| "volume_catalog_name": "mycat", | ||
| "volume_storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/[UUID]/volumes/[UUID]" | ||
| } | ||
| }, | ||
| "state": "IDLE" | ||
| "state": "IDLE", | ||
| "storage": "dbfs:/pipelines/[UUID]", | ||
| "tags": { | ||
| "myjob_id": "[NUMID]", | ||
| "myjob_name": "Test Migration Job", | ||
| "myjob_timeout": "0", | ||
| "myvolume_id": "mycat.myschema.myvol", | ||
| "volume_catalog_name": "mycat", | ||
| "volume_storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/[UUID]/volumes/[UUID]" | ||
| } | ||
| }, | ||
| "changes": { | ||
| "name": { | ||
|
|
@@ -194,6 +192,12 @@ | |
| "old": "Test Migration Job", | ||
| "new": "Test Migrated Job", | ||
| "remote": "Test Migration Job" | ||
| }, | ||
| "tags['myjob_timeout']": { | ||
| "action": "update", | ||
| "old": "0", | ||
| "new": "${resources.jobs.test_job.timeout_seconds}", | ||
| "remote": "0" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this downgrade during deploy?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't do any downgrades (yet). |
||
| } | ||
| } | ||
| }, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see this wasn't resolved before, but now it is.