Skip to content
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

Fixing run_workflow functionality for better error handling. #1159

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

FastLee
Copy link
Contributor

@FastLee FastLee commented Mar 28, 2024

This PR addressed issues with the integration test.
We improved handling of workflow runs.
Closes #1143
The 'run_workflow' method in 'workflows.py' has been updated to reliably handle job failures and provide better error information. Previously, the method used 'run_now' to start a job without waiting for it to finish, which could result in an incomplete or failed job. The updated code creates a 'job_initial_run' using 'run_now' and checks if a run ID is returned, indicating that the job has started successfully. If the job fails, an error is raised with more detailed information. Additionally, a new private method '_infer_error_from_job_run' is defined to infer the error from the job run object. In the test_installation.py file, the error handling in the integration test for the installation process has been improved. Previously, when an error occurred, the function wait_get_run_job_terminated_or_skipped would raise an OperationFailed exception, but the error message would not be properly propagated. This commit ensures that the error message is properly propagated when wait_get_run_job_terminated_or_skipped raises an OperationFailed exception. The test in test_install.py has also been updated to expect an Unknown error instead of a BadRequest error when running a specific workflow. These changes improve the reliability and robustness of the library by enhancing error handling and providing better error information.

@FastLee FastLee marked this pull request as ready for review March 28, 2024 19:30
@FastLee FastLee requested review from a team and william-conti March 28, 2024 19:30
Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.80%. Comparing base (8cae9e8) to head (e50fd82).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1159      +/-   ##
==========================================
+ Coverage   89.77%   89.80%   +0.03%     
==========================================
  Files          61       61              
  Lines        7246     7249       +3     
  Branches     1299     1300       +1     
==========================================
+ Hits         6505     6510       +5     
+ Misses        477      475       -2     
  Partials      264      264              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FastLee FastLee changed the title Addressed Bug Fixing run_workflow functionality for better error handling. Mar 28, 2024
Copy link

github-actions bot commented Mar 28, 2024

❌ 131/133 passed, 3 flaky, 2 failed, 20 skipped, 1h49m25s total

❌ test_running_real_assessment_job: TimeoutError: timed out after 0:20:00: (21m36.544s)
TimeoutError: timed out after 0:20:00:
21:53 INFO [databricks.labs.ucx.mixins.fixtures] Schema hive_metastore.ucx_spfex: https://DATABRICKS_HOST/explore/data/hive_metastore/ucx_spfex
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_spfex', metastore_id=None, name='ucx_spfex', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
[gw0] linux -- Python 3.10.14 /home/runner/work/ucx/ucx/.venv/bin/python
21:53 INFO [databricks.labs.ucx.mixins.fixtures] Schema hive_metastore.ucx_spfex: https://DATABRICKS_HOST/explore/data/hive_metastore/ucx_spfex
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_spfex', metastore_id=None, name='ucx_spfex', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added workspace user fixture: User(active=True, display_name='sdk-kfuq@example.com', emails=[ComplexValue(display=None, primary=True, ref=None, type='work', value='sdk-kfuq@example.com')], entitlements=[], external_id=None, groups=[], id='3547224314187631', name=Name(family_name=None, given_name='sdk-kfuq@example.com'), roles=[], schemas=[<UserSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_USER: 'urn:ietf:params:scim:schemas:core:2.0:User'>, <UserSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_EXTENSION_WORKSPACE_2_0_USER: 'urn:ietf:params:scim:schemas:extension:workspace:2.0:User'>], user_name='sdk-kfuq@example.com')
21:53 INFO [databricks.labs.ucx.mixins.fixtures] Workspace group ucx_3iId: https://DATABRICKS_HOST#setting/accounts/groups/845087348408926
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added workspace group fixture: Group(display_name='ucx_3iId', entitlements=[ComplexValue(display=None, primary=None, ref=None, type=None, value='allow-cluster-create')], external_id=None, groups=[], id='845087348408926', members=[ComplexValue(display='sdk-kfuq@example.com', primary=None, ref='Users/3547224314187631', type=None, value='3547224314187631')], meta=ResourceMeta(resource_type='WorkspaceGroup'), roles=[], schemas=[<GroupSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP: 'urn:ietf:params:scim:schemas:core:2.0:Group'>])
21:53 INFO [databricks.labs.ucx.mixins.fixtures] Account group ucx_3iId: https://accounts.CLOUD_ENVdatabricks.net/users/groups/714695022280197/members
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added account group fixture: Group(display_name='ucx_3iId', entitlements=[], external_id=None, groups=[], id='714695022280197', members=[ComplexValue(display='sdk-kfuq@example.com', primary=None, ref='Users/3547224314187631', type=None, value='3547224314187631')], meta=None, roles=[], schemas=[<GroupSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP: 'urn:ietf:params:scim:schemas:core:2.0:Group'>])
21:53 INFO [databricks.labs.ucx.mixins.fixtures] Cluster policy: https://DATABRICKS_HOST#setting/clusters/cluster-policies/view/0015FD2248E2A378
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added cluster policy fixture: CreatePolicyResponse(policy_id='0015FD2248E2A378')
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added cluster_policy permissions fixture: 0015FD2248E2A378 [group_name admins CAN_USE] -> [group_name ucx_3iId CAN_USE]
21:53 DEBUG [databricks.labs.ucx.install] Cannot find previous installation: Path (/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.b9Lw/config.yml) doesn't exist.
21:53 INFO [databricks.labs.ucx.install] Please answer a couple of questions to configure Unity Catalog migration
21:53 INFO [databricks.labs.ucx.installer.hms_lineage] HMS Lineage feature creates one system table named system.hms_to_uc_migration.table_access and helps in your migration process from HMS to UC by allowing you to programmatically query HMS lineage data.
21:53 INFO [databricks.labs.ucx.install] Fetching installations...
21:53 INFO [databricks.labs.ucx.installer.policy] Creating UCX cluster policy.
21:53 INFO [databricks.labs.ucx.install] Installing UCX v0.20.1+720240328215353
21:53 INFO [databricks.labs.ucx.install] Creating dashboards...
21:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:53 DEBUG [databricks.labs.ucx.framework.dashboards] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
21:53 DEBUG [databricks.labs.ucx.framework.dashboards] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
21:53 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
21:53 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [B9LW] UCX  Assessment (Estimates)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 01_0_group_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 01_0_group_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00_0_metastore_assignment.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00_0_metastore_assignment.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 02_0_data_modeling.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 02_0_data_modeling.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 03_0_data_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 03_0_data_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [B9LW] UCX  Assessment (Main)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 10___data_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 10___data_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 15___storage_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 15___storage_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 40___last_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 40___last_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 20___compute_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 20___compute_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00___assessment_overview.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00___assessment_overview.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 05___findings_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 05___findings_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 30_0_job_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 30_0_job_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [B9LW] UCX  Assessment (Azure)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [B9LW] UCX  Assessment (Interactive)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00_0_interactive.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00_0_interactive.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 02_0_cluster_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 02_0_cluster_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.installer.workflows] Creating jobs from tasks in main
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-experimental
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=099-destroy-schema
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
21:54 INFO [databricks.labs.ucx.install] Installation completed successfully! Please refer to the https://DATABRICKS_HOST/#workspace/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.b9Lw/README for the next steps.
21:54 DEBUG [databricks.labs.ucx.installer.workflows] starting assessment job: https://DATABRICKS_HOST#job/6718934475496
21:53 INFO [databricks.labs.ucx.mixins.fixtures] Schema hive_metastore.ucx_spfex: https://DATABRICKS_HOST/explore/data/hive_metastore/ucx_spfex
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_spfex', metastore_id=None, name='ucx_spfex', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added workspace user fixture: User(active=True, display_name='sdk-kfuq@example.com', emails=[ComplexValue(display=None, primary=True, ref=None, type='work', value='sdk-kfuq@example.com')], entitlements=[], external_id=None, groups=[], id='3547224314187631', name=Name(family_name=None, given_name='sdk-kfuq@example.com'), roles=[], schemas=[<UserSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_USER: 'urn:ietf:params:scim:schemas:core:2.0:User'>, <UserSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_EXTENSION_WORKSPACE_2_0_USER: 'urn:ietf:params:scim:schemas:extension:workspace:2.0:User'>], user_name='sdk-kfuq@example.com')
21:53 INFO [databricks.labs.ucx.mixins.fixtures] Workspace group ucx_3iId: https://DATABRICKS_HOST#setting/accounts/groups/845087348408926
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added workspace group fixture: Group(display_name='ucx_3iId', entitlements=[ComplexValue(display=None, primary=None, ref=None, type=None, value='allow-cluster-create')], external_id=None, groups=[], id='845087348408926', members=[ComplexValue(display='sdk-kfuq@example.com', primary=None, ref='Users/3547224314187631', type=None, value='3547224314187631')], meta=ResourceMeta(resource_type='WorkspaceGroup'), roles=[], schemas=[<GroupSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP: 'urn:ietf:params:scim:schemas:core:2.0:Group'>])
21:53 INFO [databricks.labs.ucx.mixins.fixtures] Account group ucx_3iId: https://accounts.CLOUD_ENVdatabricks.net/users/groups/714695022280197/members
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added account group fixture: Group(display_name='ucx_3iId', entitlements=[], external_id=None, groups=[], id='714695022280197', members=[ComplexValue(display='sdk-kfuq@example.com', primary=None, ref='Users/3547224314187631', type=None, value='3547224314187631')], meta=None, roles=[], schemas=[<GroupSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP: 'urn:ietf:params:scim:schemas:core:2.0:Group'>])
21:53 INFO [databricks.labs.ucx.mixins.fixtures] Cluster policy: https://DATABRICKS_HOST#setting/clusters/cluster-policies/view/0015FD2248E2A378
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added cluster policy fixture: CreatePolicyResponse(policy_id='0015FD2248E2A378')
21:53 DEBUG [databricks.labs.ucx.mixins.fixtures] added cluster_policy permissions fixture: 0015FD2248E2A378 [group_name admins CAN_USE] -> [group_name ucx_3iId CAN_USE]
21:53 DEBUG [databricks.labs.ucx.install] Cannot find previous installation: Path (/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.b9Lw/config.yml) doesn't exist.
21:53 INFO [databricks.labs.ucx.install] Please answer a couple of questions to configure Unity Catalog migration
21:53 INFO [databricks.labs.ucx.installer.hms_lineage] HMS Lineage feature creates one system table named system.hms_to_uc_migration.table_access and helps in your migration process from HMS to UC by allowing you to programmatically query HMS lineage data.
21:53 INFO [databricks.labs.ucx.install] Fetching installations...
21:53 INFO [databricks.labs.ucx.installer.policy] Creating UCX cluster policy.
21:53 INFO [databricks.labs.ucx.install] Installing UCX v0.20.1+720240328215353
21:53 INFO [databricks.labs.ucx.install] Creating dashboards...
21:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:53 DEBUG [databricks.labs.ucx.framework.dashboards] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
21:53 DEBUG [databricks.labs.ucx.framework.dashboards] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
21:53 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
21:53 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [B9LW] UCX  Assessment (Estimates)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 01_0_group_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 01_0_group_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00_0_metastore_assignment.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00_0_metastore_assignment.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 02_0_data_modeling.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 02_0_data_modeling.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 03_0_data_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 03_0_data_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [B9LW] UCX  Assessment (Main)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 10___data_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 10___data_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 15___storage_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 15___storage_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 40___last_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 40___last_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 20___compute_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 20___compute_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00___assessment_overview.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00___assessment_overview.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 05___findings_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 05___findings_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 30_0_job_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 30_0_job_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [B9LW] UCX  Assessment (Azure)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [B9LW] UCX  Assessment (Interactive)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00_0_interactive.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00_0_interactive.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 02_0_cluster_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 02_0_cluster_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.installer.workflows] Creating jobs from tasks in main
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-experimental
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=099-destroy-schema
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
21:54 INFO [databricks.labs.ucx.install] Installation completed successfully! Please refer to the https://DATABRICKS_HOST/#workspace/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.b9Lw/README for the next steps.
21:54 DEBUG [databricks.labs.ucx.installer.workflows] starting assessment job: https://DATABRICKS_HOST#job/6718934475496
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] clearing 1 cluster_policy permissions fixtures
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] removing cluster_policy permissions fixture: 0015FD2248E2A378 [group_name admins CAN_USE] -> [group_name ucx_3iId CAN_USE]
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] clearing 1 cluster policy fixtures
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] removing cluster policy fixture: CreatePolicyResponse(policy_id='0015FD2248E2A378')
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] clearing 1 workspace user fixtures
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] removing workspace user fixture: User(active=True, display_name='sdk-kfuq@example.com', emails=[ComplexValue(display=None, primary=True, ref=None, type='work', value='sdk-kfuq@example.com')], entitlements=[], external_id=None, groups=[], id='3547224314187631', name=Name(family_name=None, given_name='sdk-kfuq@example.com'), roles=[], schemas=[<UserSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_USER: 'urn:ietf:params:scim:schemas:core:2.0:User'>, <UserSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_EXTENSION_WORKSPACE_2_0_USER: 'urn:ietf:params:scim:schemas:extension:workspace:2.0:User'>], user_name='sdk-kfuq@example.com')
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] clearing 1 account group fixtures
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] removing account group fixture: Group(display_name='ucx_3iId', entitlements=[], external_id=None, groups=[], id='714695022280197', members=[ComplexValue(display='sdk-kfuq@example.com', primary=None, ref='Users/3547224314187631', type=None, value='3547224314187631')], meta=None, roles=[], schemas=[<GroupSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP: 'urn:ietf:params:scim:schemas:core:2.0:Group'>])
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] clearing 1 workspace group fixtures
22:14 DEBUG [databricks.labs.ucx.mixins.fixtures] removing workspace group fixture: Group(display_name='ucx_3iId', entitlements=[ComplexValue(display=None, primary=None, ref=None, type=None, value='allow-cluster-create')], external_id=None, groups=[], id='845087348408926', members=[ComplexValue(display='sdk-kfuq@example.com', primary=None, ref='Users/3547224314187631', type=None, value='3547224314187631')], meta=ResourceMeta(resource_type='WorkspaceGroup'), roles=[], schemas=[<GroupSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP: 'urn:ietf:params:scim:schemas:core:2.0:Group'>])
22:14 INFO [databricks.labs.ucx.install] Deleting UCX v0.20.1+720240328221446 from https://DATABRICKS_HOST
22:14 INFO [databricks.labs.ucx.install] Deleting inventory database ucx_spfex
22:15 INFO [databricks.labs.ucx.install] Deleting jobs
22:15 INFO [databricks.labs.ucx.install] Deleting migrate-groups-experimental job_id=424285600255186.
22:15 INFO [databricks.labs.ucx.install] Deleting 099-destroy-schema job_id=864664784073895.
22:15 INFO [databricks.labs.ucx.install] Deleting migrate-groups job_id=232931477410696.
22:15 INFO [databricks.labs.ucx.install] Deleting assessment job_id=6718934475496.
22:15 INFO [databricks.labs.ucx.install] Deleting validate-groups-permissions job_id=655641432133453.
22:15 INFO [databricks.labs.ucx.install] Deleting migrate-tables job_id=1050536574741580.
22:15 INFO [databricks.labs.ucx.install] Deleting remove-workspace-local-backup-groups job_id=197680898969787.
22:15 INFO [databricks.labs.ucx.install] Deleting cluster policy
22:15 INFO [databricks.labs.ucx.install] Deleting secret scope
22:15 INFO [databricks.labs.ucx.install] UnInstalling UCX complete
22:15 DEBUG [databricks.labs.ucx.mixins.fixtures] clearing 1 schema fixtures
22:15 DEBUG [databricks.labs.ucx.mixins.fixtures] removing schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_spfex', metastore_id=None, name='ucx_spfex', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
[gw0] linux -- Python 3.10.14 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_partitioned_tables: TimeoutError: Timed out after 0:05:00 (21m24.247s)
TimeoutError: Timed out after 0:05:00
21:54 INFO [databricks.labs.ucx.mixins.fixtures] Schema hive_metastore.ucx_saeob: https://DATABRICKS_HOST/explore/data/hive_metastore/ucx_saeob
21:54 DEBUG [databricks.labs.ucx.mixins.fixtures] added schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_saeob', metastore_id=None, name='ucx_saeob', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
[gw8] linux -- Python 3.10.14 /home/runner/work/ucx/ucx/.venv/bin/python
21:54 INFO [databricks.labs.ucx.mixins.fixtures] Schema hive_metastore.ucx_saeob: https://DATABRICKS_HOST/explore/data/hive_metastore/ucx_saeob
21:54 DEBUG [databricks.labs.ucx.mixins.fixtures] added schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_saeob', metastore_id=None, name='ucx_saeob', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
21:54 DEBUG [databricks.labs.ucx.install] Cannot find previous installation: Path (/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.BqLT/config.yml) doesn't exist.
21:54 INFO [databricks.labs.ucx.install] Please answer a couple of questions to configure Unity Catalog migration
21:54 INFO [databricks.labs.ucx.installer.hms_lineage] HMS Lineage feature creates one system table named system.hms_to_uc_migration.table_access and helps in your migration process from HMS to UC by allowing you to programmatically query HMS lineage data.
21:54 INFO [databricks.labs.ucx.install] Fetching installations...
21:54 INFO [databricks.labs.ucx.installer.policy] Creating UCX cluster policy.
21:54 INFO [databricks.labs.ucx.install] Installing UCX v0.20.1+720240328215408
21:54 INFO [databricks.labs.ucx.install] Creating dashboards...
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [BQLT] UCX  Assessment (Estimates)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 01_0_group_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 01_0_group_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00_0_metastore_assignment.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00_0_metastore_assignment.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 02_0_data_modeling.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 02_0_data_modeling.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 03_0_data_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 03_0_data_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [BQLT] UCX  Assessment (Main)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 10___data_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 10___data_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 15___storage_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 15___storage_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 40___last_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 40___last_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 20___compute_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 20___compute_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00___assessment_overview.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00___assessment_overview.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 05___findings_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 05___findings_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 30_0_job_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 30_0_job_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [BQLT] UCX  Assessment (Azure)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [BQLT] UCX  Assessment (Interactive)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00_0_interactive.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00_0_interactive.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 02_0_cluster_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 02_0_cluster_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.installer.workflows] Creating jobs from tasks in main
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=099-destroy-schema
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-experimental
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
21:54 INFO [databricks.labs.ucx.install] Installation completed successfully! Please refer to the https://DATABRICKS_HOST/#workspace/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.BqLT/README for the next steps.
21:54 INFO [databricks.labs.ucx.mixins.fixtures] Schema hive_metastore.ucx_skekj: https://DATABRICKS_HOST/explore/data/hive_metastore/ucx_skekj
21:54 DEBUG [databricks.labs.ucx.mixins.fixtures] added schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_skekj', metastore_id=None, name='ucx_skekj', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
21:54 DEBUG [databricks.labs.ucx.installer.workflows] starting assessment job: https://DATABRICKS_HOST#job/808527814716805
21:54 INFO [databricks.labs.ucx.mixins.fixtures] Schema hive_metastore.ucx_saeob: https://DATABRICKS_HOST/explore/data/hive_metastore/ucx_saeob
21:54 DEBUG [databricks.labs.ucx.mixins.fixtures] added schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_saeob', metastore_id=None, name='ucx_saeob', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
21:54 DEBUG [databricks.labs.ucx.install] Cannot find previous installation: Path (/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.BqLT/config.yml) doesn't exist.
21:54 INFO [databricks.labs.ucx.install] Please answer a couple of questions to configure Unity Catalog migration
21:54 INFO [databricks.labs.ucx.installer.hms_lineage] HMS Lineage feature creates one system table named system.hms_to_uc_migration.table_access and helps in your migration process from HMS to UC by allowing you to programmatically query HMS lineage data.
21:54 INFO [databricks.labs.ucx.install] Fetching installations...
21:54 INFO [databricks.labs.ucx.installer.policy] Creating UCX cluster policy.
21:54 INFO [databricks.labs.ucx.install] Installing UCX v0.20.1+720240328215408
21:54 INFO [databricks.labs.ucx.install] Creating dashboards...
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [BQLT] UCX  Assessment (Estimates)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 01_0_group_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 01_0_group_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00_0_metastore_assignment.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00_0_metastore_assignment.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 02_0_data_modeling.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 02_0_data_modeling.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 03_0_data_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 03_0_data_migration.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [BQLT] UCX  Assessment (Main)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 10___data_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 10___data_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 15___storage_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 15___storage_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 40___last_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 40___last_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 20___compute_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 20___compute_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00___assessment_overview.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00___assessment_overview.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 05___findings_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 05___findings_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 30_0_job_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 30_0_job_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [BQLT] UCX  Assessment (Azure)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Reading dashboard folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
21:54 INFO [databricks.labs.ucx.framework.dashboards] Creating dashboard [BQLT] UCX  Assessment (Interactive)...
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 00_0_interactive.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 00_0_interactive.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping query 02_0_cluster_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.framework.dashboards] Skipping viz 02_0_cluster_summary.md because it's a text widget
21:54 DEBUG [databricks.labs.ucx.installer.workflows] Creating jobs from tasks in main
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=099-destroy-schema
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-experimental
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
21:54 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
21:54 INFO [databricks.labs.ucx.install] Installation completed successfully! Please refer to the https://DATABRICKS_HOST/#workspace/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.BqLT/README for the next steps.
21:54 INFO [databricks.labs.ucx.mixins.fixtures] Schema hive_metastore.ucx_skekj: https://DATABRICKS_HOST/explore/data/hive_metastore/ucx_skekj
21:54 DEBUG [databricks.labs.ucx.mixins.fixtures] added schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_skekj', metastore_id=None, name='ucx_skekj', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
21:54 DEBUG [databricks.labs.ucx.installer.workflows] starting assessment job: https://DATABRICKS_HOST#job/808527814716805
22:15 DEBUG [databricks.labs.ucx.mixins.fixtures] clearing 0 table fixtures
22:15 INFO [databricks.labs.ucx.install] Deleting UCX v0.20.1+720240328221502 from https://DATABRICKS_HOST
22:15 INFO [databricks.labs.ucx.install] Deleting inventory database ucx_saeob
22:15 INFO [databricks.labs.ucx.install] Deleting jobs
22:15 INFO [databricks.labs.ucx.install] Deleting assessment job_id=808527814716805.
22:15 INFO [databricks.labs.ucx.install] Deleting remove-workspace-local-backup-groups job_id=231737448061417.
22:15 INFO [databricks.labs.ucx.install] Deleting 099-destroy-schema job_id=478653215576800.
22:15 INFO [databricks.labs.ucx.install] Deleting migrate-groups-experimental job_id=565983625055973.
22:15 INFO [databricks.labs.ucx.install] Deleting migrate-tables job_id=898894141569064.
22:15 INFO [databricks.labs.ucx.install] Deleting migrate-groups job_id=516327292645474.
22:15 INFO [databricks.labs.ucx.install] Deleting validate-groups-permissions job_id=541496690953759.
22:15 INFO [databricks.labs.ucx.install] Deleting cluster policy
22:15 INFO [databricks.labs.ucx.install] Deleting secret scope
22:15 INFO [databricks.labs.ucx.install] UnInstalling UCX complete
22:15 DEBUG [databricks.labs.ucx.mixins.fixtures] clearing 2 schema fixtures
22:15 DEBUG [databricks.labs.ucx.mixins.fixtures] removing schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_saeob', metastore_id=None, name='ucx_saeob', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
22:15 DEBUG [databricks.labs.ucx.mixins.fixtures] removing schema fixture: SchemaInfo(browse_only=None, catalog_name='hive_metastore', catalog_type=None, comment=None, created_at=None, created_by=None, effective_predictive_optimization_flag=None, enable_predictive_optimization=None, full_name='hive_metastore.ucx_skekj', metastore_id=None, name='ucx_skekj', owner=None, properties=None, storage_location=None, storage_root=None, updated_at=None, updated_by=None)
[gw8] linux -- Python 3.10.14 /home/runner/work/ucx/ucx/.venv/bin/python

Flaky tests:

  • 🤪 test_group_matching_names[True] (3.503s)
  • 🤪 test_repair_run_workflow_job (6m41.876s)
  • 🤪 test_running_real_migrate_groups_job (7m3.973s)

Running from acceptance #1861

Copy link
Contributor

@dmoore247 dmoore247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one change. You can count on me to look at error & exception messages :)

job_run = self._ws.jobs.get_run(job_initial_run.run_id)
raise self._infer_error_from_job_run(job_run) from err
return
raise NotFound(f"job run not found for {step}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include {job_id} in the NotFound message as part of the context, needed to aid troubleshooting.

Copy link
Collaborator

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

@nfx nfx merged commit 739c320 into main Mar 29, 2024
7 of 8 checks passed
@nfx nfx deleted the fix/fix_int_test_1143 branch March 29, 2024 08:24
nfx added a commit that referenced this pull request Mar 29, 2024
* Ensure proper sequencing of view migrations ([#1157](#1157)). In this release, we have introduced a `views_migrator` module and corresponding test cases to ensure proper sequencing of view migrations, addressing issue [#1132](#1132). The module contains two main classes: `ViewToMigrate` and `ViewsMigrator`. The former is responsible for parsing a view's SQL text and identifying its dependencies, while the latter sequences views based on their dependencies. The commit also adds a new method, `__hash__`, to the Table class, which returns a hash value of the key of the table, improving the handling of Table objects. Additionally, we have added unit tests and verified the changes on a staging environment. We have also introduced a new file `tables_and_views.json` for unit testing and added a `views_migrator` module that takes a `TablesCrawler` object and returns a sequence of tables (views) that need to be migrated in the correct order. The commit addresses various scenarios such as no views, direct views, indirect views, deep indirect views, invalid SQL, invalid SQL tables, and circular view references. This release is focused on improving the sequencing of view migrations and is accompanied by appropriate tests.
* Experimental support for scanning Delta Tables inside Mount Points ([#1095](#1095)). This commit introduces experimental support for scanning Delta Tables located inside mount points using a new `TablesInMounts` crawler. Users can now scan specific mount points using the `--include-mounts` flag and include Parquet files in the scan results with the `--include-parquet-files` flag. Additionally, the `--filter-paths` flag allows for filtering paths in a mount point and the `--max-depth` flag (currently unimplemented) will filter at a specific sub-folder depth in future development. The project dependencies have been updated to use `databricks-labs-lsql~=0.3.0`. This new feature provides a more granular and flexible way to scan Delta Tables, making the project more user-friendly and adaptable to various use cases.
* Fixed `NULL` values in `ucx.views.table_format` to have `UNKNOWN` value instead ([#1156](#1156)). This commit includes a fix for handling NULL values in the `table_format` column of Views in the `ucx.views.table_format` module. Previously, NULL values were displayed as-is, but now they will be replaced with the string "UNKNOWN". This change is part of the fix for issue [#115](#115)
* Fixing run_workflow functionality for better error handling ([#1159](#1159)). In this release, the `run_workflow` method in the `workflows.py` file has been updated to improve error handling by waiting for the job to terminate or skip before raising an error, allowing for a more detailed error message to be generated. A new method, `job_initial_run`, has been added to initiate a job run and return the run ID, raising a `NotFound` exception if the job run is not found. The `run_workflow` functionality in the `WorkflowsInstall` module has also been enhanced to handle unexpected error types and improve overall error handling during the installation of products. New test cases have been added and existing ones updated to check how the code handles errors when the run ID is not found or when an `OperationFailed` exception is raised during the installation process. These changes improve the robustness and stability of the system.
* Use experimental Permissions Migration API also for Legacy Table ACLs ([#1161](#1161)). This release introduces several changes to the group permissions migration functionality and associated tests. The experimental Permissions Migration API is now being utilized for Legacy Table ACLs, which has led to the removal of the verification step from the experimental group migration job. The `TableAclSupport` import and class have been removed, as they are no longer needed. A new `apply_to_renamed_groups` method has been added for production usage, and a `apply_to_groups_with_different_names` method has been added for integration testing, both of which are part of the Permissions Migration API. Additionally, two tests have been added to support the experimental permissions migration for a group with the same name in the workspace and account. The `permission_manager` parameter has been removed from several test functions in the `test_generic.py` file and replaced with the `MigrationState` class, which is used directly with the `WorkspaceClient` object to apply permissions to groups with different names. The `test_some_entitlements` function in the `test_scim.py` file has also been updated to use the `MigratedGroup` class and the `MigrationState` class's `apply_to_groups_with_different_names` method. Finally, new tests for the Permissions Migration API have been added to the `test_tacl.py` file in the `tests/integration/workspace_access` directory to verify the behavior of the Permissions Migration API when migrating different grants.
@nfx nfx mentioned this pull request Mar 29, 2024
nfx added a commit that referenced this pull request Mar 29, 2024
* Ensure proper sequencing of view migrations
([#1157](#1157)). In this
release, we have introduced a `views_migrator` module and corresponding
test cases to ensure proper sequencing of view migrations, addressing
issue [#1132](#1132). The
module contains two main classes: `ViewToMigrate` and `ViewsMigrator`.
The former is responsible for parsing a view's SQL text and identifying
its dependencies, while the latter sequences views based on their
dependencies. The commit also adds a new method, `__hash__`, to the
Table class, which returns a hash value of the key of the table,
improving the handling of Table objects. Additionally, we have added
unit tests and verified the changes on a staging environment. We have
also introduced a new file `tables_and_views.json` for unit testing and
added a `views_migrator` module that takes a `TablesCrawler` object and
returns a sequence of tables (views) that need to be migrated in the
correct order. The commit addresses various scenarios such as no views,
direct views, indirect views, deep indirect views, invalid SQL, invalid
SQL tables, and circular view references. This release is focused on
improving the sequencing of view migrations and is accompanied by
appropriate tests.
* Experimental support for scanning Delta Tables inside Mount Points
([#1095](#1095)). This
commit introduces experimental support for scanning Delta Tables located
inside mount points using a new `TablesInMounts` crawler. Users can now
scan specific mount points using the `--include-mounts` flag and include
Parquet files in the scan results with the `--include-parquet-files`
flag. Additionally, the `--filter-paths` flag allows for filtering paths
in a mount point and the `--max-depth` flag (currently unimplemented)
will filter at a specific sub-folder depth in future development. The
project dependencies have been updated to use
`databricks-labs-lsql~=0.3.0`. This new feature provides a more granular
and flexible way to scan Delta Tables, making the project more
user-friendly and adaptable to various use cases.
* Fixed `NULL` values in `ucx.views.table_format` to have `UNKNOWN`
value instead
([#1156](#1156)). This
commit includes a fix for handling NULL values in the `table_format`
column of Views in the `ucx.views.table_format` module. Previously, NULL
values were displayed as-is, but now they will be replaced with the
string "UNKNOWN". This change is part of the fix for issue
[#115](#115)
* Fixing run_workflow functionality for better error handling
([#1159](#1159)). In this
release, the `run_workflow` method in the `workflows.py` file has been
updated to improve error handling by waiting for the job to terminate or
skip before raising an error, allowing for a more detailed error message
to be generated. A new method, `job_initial_run`, has been added to
initiate a job run and return the run ID, raising a `NotFound` exception
if the job run is not found. The `run_workflow` functionality in the
`WorkflowsInstall` module has also been enhanced to handle unexpected
error types and improve overall error handling during the installation
of products. New test cases have been added and existing ones updated to
check how the code handles errors when the run ID is not found or when
an `OperationFailed` exception is raised during the installation
process. These changes improve the robustness and stability of the
system.
* Use experimental Permissions Migration API also for Legacy Table ACLs
([#1161](#1161)). This
release introduces several changes to the group permissions migration
functionality and associated tests. The experimental Permissions
Migration API is now being utilized for Legacy Table ACLs, which has led
to the removal of the verification step from the experimental group
migration job. The `TableAclSupport` import and class have been removed,
as they are no longer needed. A new `apply_to_renamed_groups` method has
been added for production usage, and a
`apply_to_groups_with_different_names` method has been added for
integration testing, both of which are part of the Permissions Migration
API. Additionally, two tests have been added to support the experimental
permissions migration for a group with the same name in the workspace
and account. The `permission_manager` parameter has been removed from
several test functions in the `test_generic.py` file and replaced with
the `MigrationState` class, which is used directly with the
`WorkspaceClient` object to apply permissions to groups with different
names. The `test_some_entitlements` function in the `test_scim.py` file
has also been updated to use the `MigratedGroup` class and the
`MigrationState` class's `apply_to_groups_with_different_names` method.
Finally, new tests for the Permissions Migration API have been added to
the `test_tacl.py` file in the `tests/integration/workspace_access`
directory to verify the behavior of the Permissions Migration API when
migrating different grants.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure: test_running_real_validate_groups_permissions_job_fails
3 participants