-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show code problems found by workflow linter in the migration dashboard (
#1741) ## Changes Show the code problems found by the experimental workflow linter workflow in the migration dashboard. ### Linked issues Resolves #1539 ### Functionality - [ ] added relevant user documentation - [ ] added new CLI command - [ ] modified existing command: `databricks labs ucx ...` - [ ] added a new workflow - [x] modified existing workflow: `experimental-workflow-linter` - [ ] added a new table - [ ] modified existing table: `...` ### Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] manually tested - [ ] added unit tests - [ ] added integration tests - [ ] verified on staging environment (screenshot attached) --------- Co-authored-by: Serge Smertin <[email protected]>
- Loading branch information
1 parent
63bf0d4
commit f3f9d2a
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
src/databricks/labs/ucx/queries/migration/main/02_0_code_compatibility_problems.md
This file contains 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,11 @@ | ||
-- widget title=Workflow migration problems, row=2, col=0, size_x=2, size_y=8 | ||
|
||
## 2 - Code compatibility problems | ||
|
||
The table on the right assist with verifying if workflows are Unity Catalog compatible. It can be filtered on the path, | ||
problem code and workflow name. The table: | ||
- Points to a problem detected in the code using the code path, workflow & task reference and start/end line & column; | ||
- Explains the problem with a human-readable message and a code. | ||
|
||
The code compatibility problems are updated after running | ||
[Jobs Static Code Analysis Workflow](https://github.com/databrickslabs/ucx/blob/main/README.md#workflow-linter-workflow). |
14 changes: 14 additions & 0 deletions
14
src/databricks/labs/ucx/queries/migration/main/02_1_code_compatibility_problems.sql
This file contains 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,14 @@ | ||
-- viz type=table, name=Workflow migration problems, search_by=path,code,job_name, columns=path,code,message,workflow_id,workflow_name,task_key,start_line,start_col,end_line,end_col | ||
-- widget title=Workflow migration problems, row=2, col=2, size_x=4, size_y=8 | ||
SELECT | ||
path, | ||
code, | ||
message, | ||
job_id AS workflow_id, | ||
job_name AS workflow_name, | ||
task_key, | ||
start_line, | ||
start_col, | ||
end_line, | ||
end_col | ||
FROM $inventory.workflow_problems |
This file contains 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