Skip to content

Clean up for workspace scan tables #2788

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 72 commits into from
Oct 3, 2024
Merged

Clean up for workspace scan tables #2788

merged 72 commits into from
Oct 3, 2024

Conversation

JCZuurmond
Copy link
Contributor

Had some dangling commits for #2754

@JCZuurmond JCZuurmond added tech debt chores and design flaws internal this pull request won't appear in release notes labels Oct 2, 2024
@JCZuurmond JCZuurmond self-assigned this Oct 2, 2024
@JCZuurmond JCZuurmond requested a review from a team as a code owner October 2, 2024 15:45
Copy link

github-actions bot commented Oct 2, 2024

❌ 4/5 passed, 1 failed, 8m21s total

❌ test_running_real_migration_progress_job: AssertionError: Workflow failed: assessment (5m57.324s)
AssertionError: Workflow failed: assessment
assert False
 +  where False = validate_step('assessment')
 +    where validate_step = <databricks.labs.ucx.installer.workflows.DeployedWorkflows object at 0x7fbf74167430>.validate_step
 +      where <databricks.labs.ucx.installer.workflows.DeployedWorkflows object at 0x7fbf74167430> = <tests.integration.conftest.MockInstallationContext object at 0x7fbf74164910>.deployed_workflows
[gw2] linux -- Python 3.10.15 /home/runner/work/ucx/ucx/.venv/bin/python
10:01 DEBUG [databricks.labs.ucx.install] Cannot find previous installation: Path (/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.wmG7/config.yml) doesn't exist.
10:01 INFO [databricks.labs.ucx.install] Please answer a couple of questions to configure Unity Catalog migration
10:01 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.
10:01 INFO [databricks.labs.ucx.install] Fetching installations...
10:01 INFO [databricks.labs.ucx.installer.policy] Creating UCX cluster policy.
10:01 DEBUG [tests.integration.conftest] Waiting for clusters to start...
10:03 DEBUG [tests.integration.conftest] Waiting for clusters to start...
10:03 INFO [databricks.labs.ucx.install] Installing UCX v0.38.1+9120241003100323
10:03 INFO [databricks.labs.ucx.install] Creating ucx schemas...
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=scan-tables-in-mounts-experimental
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=experimental-workflow-linter
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migration-progress-experimental
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-experimental
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-hiveserde-tables-in-place-experimental
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-data-reconciliation
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=failing
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-tables-ctas
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables-in-mounts-experimental
10:03 INFO [databricks.labs.ucx.install] Creating dashboards...
10:03 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
10:03 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
10:03 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main...
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.install] Installation completed successfully! Please refer to the https://DATABRICKS_HOST/#workspace/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.wmG7/README for the next steps.
10:03 DEBUG [databricks.labs.ucx.installer.workflows] starting assessment job: https://DATABRICKS_HOST#job/338545089711221
10:03 INFO [databricks.labs.ucx.installer.workflows] Started assessment job: https://DATABRICKS_HOST#job/338545089711221/runs/346021885675194
10:03 DEBUG [databricks.labs.ucx.installer.workflows] Waiting for completion of assessment job: https://DATABRICKS_HOST#job/338545089711221/runs/346021885675194
10:07 INFO [databricks.labs.ucx.installer.workflows] Completed assessment job run 346021885675194 with state: RunResultState.CANCELED (Run cancelled by user)
10:07 INFO [databricks.labs.ucx.installer.workflows] Completed assessment job run 346021885675194 duration: 0:03:15.370000 (2024-10-03 10:03:55.112000+00:00 thru 2024-10-03 10:07:10.482000+00:00)
10:07 DEBUG [databricks.labs.ucx.installer.workflows] Validating assessment workflow: https://DATABRICKS_HOST#job/338545089711221
10:01 DEBUG [databricks.labs.ucx.install] Cannot find previous installation: Path (/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.wmG7/config.yml) doesn't exist.
10:01 INFO [databricks.labs.ucx.install] Please answer a couple of questions to configure Unity Catalog migration
10:01 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.
10:01 INFO [databricks.labs.ucx.install] Fetching installations...
10:01 INFO [databricks.labs.ucx.installer.policy] Creating UCX cluster policy.
10:01 DEBUG [tests.integration.conftest] Waiting for clusters to start...
10:03 DEBUG [tests.integration.conftest] Waiting for clusters to start...
10:03 INFO [databricks.labs.ucx.install] Installing UCX v0.38.1+9120241003100323
10:03 INFO [databricks.labs.ucx.install] Creating ucx schemas...
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=scan-tables-in-mounts-experimental
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=experimental-workflow-linter
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migration-progress-experimental
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-experimental
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-hiveserde-tables-in-place-experimental
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-data-reconciliation
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=failing
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-tables-ctas
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
10:03 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables-in-mounts-experimental
10:03 INFO [databricks.labs.ucx.install] Creating dashboards...
10:03 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
10:03 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
10:03 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups...
10:03 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main...
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
10:03 INFO [databricks.labs.ucx.install] Installation completed successfully! Please refer to the https://DATABRICKS_HOST/#workspace/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.wmG7/README for the next steps.
10:03 DEBUG [databricks.labs.ucx.installer.workflows] starting assessment job: https://DATABRICKS_HOST#job/338545089711221
10:03 INFO [databricks.labs.ucx.installer.workflows] Started assessment job: https://DATABRICKS_HOST#job/338545089711221/runs/346021885675194
10:03 DEBUG [databricks.labs.ucx.installer.workflows] Waiting for completion of assessment job: https://DATABRICKS_HOST#job/338545089711221/runs/346021885675194
10:07 INFO [databricks.labs.ucx.installer.workflows] Completed assessment job run 346021885675194 with state: RunResultState.CANCELED (Run cancelled by user)
10:07 INFO [databricks.labs.ucx.installer.workflows] Completed assessment job run 346021885675194 duration: 0:03:15.370000 (2024-10-03 10:03:55.112000+00:00 thru 2024-10-03 10:07:10.482000+00:00)
10:07 DEBUG [databricks.labs.ucx.installer.workflows] Validating assessment workflow: https://DATABRICKS_HOST#job/338545089711221
10:07 INFO [databricks.labs.ucx.install] Deleting UCX v0.38.1+9120241003100323 from https://DATABRICKS_HOST
10:07 ERROR [databricks.labs.ucx.install] Check if /Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.wmG7 is present
[gw2] linux -- Python 3.10.15 /home/runner/work/ucx/ucx/.venv/bin/python

Running from acceptance #6312

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.

lgtm

@JCZuurmond
Copy link
Contributor Author

Integration test failure is unrelated to changes in the PR

@JCZuurmond JCZuurmond enabled auto-merge October 3, 2024 10:56
@nfx nfx disabled auto-merge October 3, 2024 11:22
@nfx nfx merged commit 6cc819a into main Oct 3, 2024
5 of 6 checks passed
@nfx nfx deleted the feat/add-workspace-scans-table branch October 3, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal this pull request won't appear in release notes tech debt chores and design flaws
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants