-
Notifications
You must be signed in to change notification settings - Fork 121
Translate relative paths root_path and glob.include for pipelines
#2931
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
063dfa5
Upgrade SDK to v0.70.0
pietern 6adc09e
Change how we detect SDK error
pietern 30cecdd
Fix tests
pietern 1ecf759
Whitespace
pietern bd3efa4
Translate relative pipelines `root_path` and `glob.include`
shreyas-goenka 62a48fb
-
shreyas-goenka fae99b6
-
shreyas-goenka 58f1a61
-
shreyas-goenka 167e5b8
-
shreyas-goenka 9fc74d6
Merge remote-tracking branch 'origin' into pipelines-patp-2
shreyas-goenka 81ad0dd
Merge remote-tracking branch 'origin' into pipelines-patp-2
shreyas-goenka 1711f4e
-
shreyas-goenka 4fa3961
-
shreyas-goenka 6d9216a
-
shreyas-goenka 8e01bef
-
shreyas-goenka 5db36ec
address comemnts
shreyas-goenka 825f572
-'
shreyas-goenka 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
4 changes: 4 additions & 0 deletions
4
acceptance/bundle/paths/pipeline_root_path_doesnotexist/databricks.yml
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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| resources: | ||
| pipelines: | ||
| abc: | ||
| root_path: "foo/bar/doesnotexist" |
13 changes: 13 additions & 0 deletions
13
acceptance/bundle/paths/pipeline_root_path_doesnotexist/output.txt
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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
|
|
||
| >>> [CLI] bundle validate | ||
| Error: stat foo/bar/doesnotexist: no such file or directory | ||
|
|
||
| Name: test-bundle | ||
| Target: default | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default | ||
|
|
||
| Found 1 error | ||
|
|
||
| Exit code: 1 |
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| errcode trace $CLI bundle validate |
4 changes: 4 additions & 0 deletions
4
acceptance/bundle/paths/pipeline_root_path_doesnotexist/test.toml
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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # Replace error message from windows | ||
| [[Repls]] | ||
| Old = "CreateFile foo/bar/doesnotexist: The system cannot find the path specified." | ||
| New = "stat foo/bar/doesnotexist: no such file or directory" |
5 changes: 5 additions & 0 deletions
5
acceptance/bundle/paths/pipelines_glob_include_and_root_path/databricks.yml
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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| bundle: | ||
| name: pipelines_relative_path_translation | ||
|
|
||
| include: | ||
| - resources/*.yml | ||
20 changes: 20 additions & 0 deletions
20
acceptance/bundle/paths/pipelines_glob_include_and_root_path/output.txt
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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
|
|
||
| >>> [CLI] bundle validate -o json | ||
| { | ||
| "one_libraries": [ | ||
| { | ||
| "glob": { | ||
| "include": "/Workspace/Users/[USERNAME]/.bundle/pipelines_relative_path_translation/default/files/src/pipeline_one/a/b/c/**" | ||
| } | ||
| } | ||
| ], | ||
| "two_libraries": [ | ||
| { | ||
| "glob": { | ||
| "include": "/Workspace/Users/me@company.com/a/b/c/**" | ||
| } | ||
| } | ||
| ], | ||
| "one_root_path": "/Workspace/Users/[USERNAME]/.bundle/pipelines_relative_path_translation/default/files/src/pipeline_one", | ||
| "two_root_path": "/Workspace/Users/me@company.com/src" | ||
| } |
15 changes: 15 additions & 0 deletions
15
acceptance/bundle/paths/pipelines_glob_include_and_root_path/resources/pipeline.yml
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| resources: | ||
| pipelines: | ||
| # relative paths should get translated to remote paths | ||
| one: | ||
| root_path: "../src/pipeline_one" | ||
| libraries: | ||
| - glob: | ||
| include: "../src/pipeline_one/a/b/c/**" | ||
|
|
||
| # absolute paths should remain as-is | ||
| two: | ||
| root_path: "/Workspace/Users/me@company.com/src" | ||
| libraries: | ||
| - glob: | ||
| include: "/Workspace/Users/me@company.com/a/b/c/**" |
1 change: 1 addition & 0 deletions
1
acceptance/bundle/paths/pipelines_glob_include_and_root_path/script
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| trace $CLI bundle validate -o json | jq '{one_libraries: .resources.pipelines.one.libraries, two_libraries: .resources.pipelines.two.libraries, one_root_path: .resources.pipelines.one.root_path, two_root_path: .resources.pipelines.two.root_path}' |
Empty file.
7 changes: 7 additions & 0 deletions
7
acceptance/bundle/paths/pipelines_root_path_outside_sync_root/a/b/c/databricks.yml
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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| bundle: | ||
| name: pipelines_root_path_outside_sync_root | ||
|
|
||
| resources: | ||
| pipelines: | ||
| abc: | ||
| root_path: ../../../src |
13 changes: 13 additions & 0 deletions
13
acceptance/bundle/paths/pipelines_root_path_outside_sync_root/output.txt
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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
|
|
||
| >>> [CLI] bundle validate | ||
| Error: path [TEST_TMP_DIR]/src is not contained in sync root path | ||
|
|
||
| Name: pipelines_root_path_outside_sync_root | ||
| Target: default | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/pipelines_root_path_outside_sync_root/default | ||
|
|
||
| Found 1 error | ||
|
|
||
| Exit code: 1 |
3 changes: 3 additions & 0 deletions
3
acceptance/bundle/paths/pipelines_root_path_outside_sync_root/script
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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| cd a/b/c | ||
|
|
||
| trace $CLI bundle validate |
Empty file.
3 changes: 3 additions & 0 deletions
3
acceptance/bundle/paths/pipelines_root_path_outside_sync_root/test.toml
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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [[Repls]] | ||
| Old = '\\' | ||
| New = '/' |
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 |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ Exit code: 7 | |
| === Custom output files - everything starting with out is captured and compared | ||
| >>> echo HELLO | ||
|
|
||
| === Custom regex can be specified in [[Repl]] section | ||
| === Custom regex can be specified in [[Repls]] section | ||
|
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. small typo fix. |
||
| 1234 | ||
| CUSTOM_NUMBER_REGEX | ||
| 123456 | ||
|
|
||
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
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.
One was removed, but this one was kept. Please keep consistency in mind.