Skip to content

Use TACL cluster in test_all_grant_types and wait for ANONYMOUS FILE grant #3800

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
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

JCZuurmond
Copy link
Contributor

@JCZuurmond JCZuurmond commented Feb 28, 2025

Changes

Use TACL cluster in test_all_grant_types and wait for ANONYMOUS FILE grant to improve stability of test.

Linked issues

Resolves #3798
Related to #3765

Tests

  • modified integration tests: test_all_grant_types & test_grant_findings

@JCZuurmond JCZuurmond added migrate/access-control Access Control to things bug/test-infra issues related to testing infrastructure internal this pull request won't appear in release notes labels Feb 28, 2025
@JCZuurmond JCZuurmond self-assigned this Feb 28, 2025
@JCZuurmond JCZuurmond requested a review from a team as a code owner February 28, 2025 12:05
@JCZuurmond JCZuurmond added this to UCX Feb 28, 2025
@JCZuurmond JCZuurmond moved this to Ready for Review in UCX Feb 28, 2025
Copy link

github-actions bot commented Feb 28, 2025

❌ 108/114 passed, 6 failed, 8 skipped, 7h28m40s total

❌ test_all_grant_types: AttributeError: 'list' object has no attribute 'object_type' (9m9.141s)
AttributeError: 'list' object has no attribute 'object_type'
14:33 INFO [databricks.labs.ucx.install] Creating ucx schemas...
[gw0] linux -- Python 3.10.17 /home/runner/work/ucx/ucx/.venv/bin/python
14:33 INFO [databricks.labs.ucx.install] Creating ucx schemas...
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.tables] fetching tables inventory
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.tables] crawling new set of snapshot data for tables
14:33 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_siojq] listing tables and views
14:33 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_siojq.dummy_tsduj] fetching table metadata
14:33 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_siojq.dummy_tytjp] fetching table metadata
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.tables] found 2 new records for tables
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.udfs] fetching udfs inventory
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.udfs] crawling new set of snapshot data for udfs
14:33 DEBUG [databricks.labs.ucx.hive_metastore.udfs] [hive_metastore.dummy_siojq] listing udfs
14:33 DEBUG [databricks.labs.ucx.hive_metastore.udfs] [hive_metastore.dummy_siojq.dummy_fbvap] fetching udf metadata
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.udfs] found 1 new records for udfs
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.grants] fetching grants inventory
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.grants] crawling new set of snapshot data for grants
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.tables] fetching tables inventory
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.udfs] fetching udfs inventory
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.grants] found 13 new records for grants
14:33 INFO [databricks.labs.ucx.install] Creating ucx schemas...
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.tables] fetching tables inventory
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.tables] crawling new set of snapshot data for tables
14:33 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_siojq] listing tables and views
14:33 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_siojq.dummy_tsduj] fetching table metadata
14:33 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_siojq.dummy_tytjp] fetching table metadata
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.tables] found 2 new records for tables
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.udfs] fetching udfs inventory
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.udfs] crawling new set of snapshot data for udfs
14:33 DEBUG [databricks.labs.ucx.hive_metastore.udfs] [hive_metastore.dummy_siojq] listing udfs
14:33 DEBUG [databricks.labs.ucx.hive_metastore.udfs] [hive_metastore.dummy_siojq.dummy_fbvap] fetching udf metadata
14:33 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.udfs] found 1 new records for udfs
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.grants] fetching grants inventory
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.grants] crawling new set of snapshot data for grants
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.tables] fetching tables inventory
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.udfs] fetching udfs inventory
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sc3jy.grants] found 13 new records for grants
[gw0] linux -- Python 3.10.17 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_migration_index_deleted_source: databricks.sdk.errors.platform.NotFound: [TABLE_OR_VIEW_NOT_FOUND] The table or view `hive_metastore`.`dummy_s2tgp`.`dummy_tq0vd` cannot be found. Verify the spelling and correctness of the schema and catalog. (1m39.234s)
... (skipped 476862 bytes)
databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_selmq.dummy_tzpyq] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_selmq.view3] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_s4e2d.dummy_tebis] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_zcbol.avro_serde_zcbol] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_zcbol.orc_serde_zcbol] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_zcbol.parquet_serde_zcbol] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_s5e1m.dummy_tllkv] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_shktz.dummy_t0ofn] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_shktz.dummy_tdjnk] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_shktz.dummy_tdz5n] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_shktz.dummy_tlyaw] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_shktz.dummy_tpw5b] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_yh36m.avro_serde_yh36m] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_yh36m.orc_serde_yh36m] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_yh36m.parquet_serde_yh36m] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sew28.dummy_t6ykk] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_yandq.avro_serde_yandq] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_yandq.orc_serde_yandq] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_yandq.parquet_serde_yandq] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_slcl8.dummy_tkxz0] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_s49ew.dummy_t4non] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_smgf7.grants] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_smgf7.groups] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_smgf7.migration_status] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_smgf7.tables] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_smgf7.udfs] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sl1ko.dummy_toi7g] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_xhsen.avro_serde_xhsen] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_xhsen.orc_serde_xhsen] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_xhsen.parquet_serde_xhsen] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_slcau.dummy_tc6bu] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_wxcfi.avro_serde_wxcfi] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_wxcfi.orc_serde_wxcfi] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_wxcfi.parquet_serde_wxcfi] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_vjayn.avro_serde_vjayn] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_vjayn.orc_serde_vjayn] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.hiveserde_in_place_vjayn.parquet_serde_vjayn] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sgzam.grants] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sgzam.groups] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sgzam.migration_status] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sgzam.tables] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sgzam.udfs] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.CLOUD_ENV_service_principals] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.clusters] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.code_patterns] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.directfs] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.directfs_in_paths] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.directfs_in_queries] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.external_locations] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.global_init_scripts] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.grant_detail] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.grants] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.groups] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.inferred_grants] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.jobs] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.lakeview_dashboards] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.logs] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.migration_status] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.misc_patterns] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.mounts] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.objects] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.permissions] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.pipelines] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.policies] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.query_problems] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.recon_results] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.reconciliation_results] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.redash_dashboards] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.submit_runs] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.table_estimates] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.table_failures] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.table_size] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.tables] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.udfs] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.used_tables] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.used_tables_in_paths] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.used_tables_in_queries] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.workflow_problems] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sglsw.workspace_objects] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sh0tg.dummy_txszk] fetching table metadata
14:41 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sxtjz.tables] found 1665 new records for tables
[gw1] linux -- Python 3.10.17 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_grant_findings: AttributeError: 'list' object has no attribute 'object_type' (56.326s)
AttributeError: 'list' object has no attribute 'object_type'
14:42 INFO [databricks.labs.ucx.install] Creating ucx schemas...
[gw0] linux -- Python 3.10.17 /home/runner/work/ucx/ucx/.venv/bin/python
14:42 INFO [databricks.labs.ucx.install] Creating ucx schemas...
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.tables] fetching tables inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.tables] crawling new set of snapshot data for tables
14:42 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sv4gh] listing tables and views
14:42 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sv4gh.dummy_tjcmn] fetching table metadata
14:42 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sv4gh.dummy_tvbea] fetching table metadata
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.tables] found 2 new records for tables
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.udfs] fetching udfs inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.udfs] crawling new set of snapshot data for udfs
14:42 DEBUG [databricks.labs.ucx.hive_metastore.udfs] [hive_metastore.dummy_sv4gh] listing udfs
14:42 DEBUG [databricks.labs.ucx.hive_metastore.udfs] [hive_metastore.dummy_sv4gh.dummy_ffabs] fetching udf metadata
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.udfs] found 1 new records for udfs
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.grants] fetching grants inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.grants] crawling new set of snapshot data for grants
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.tables] fetching tables inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.udfs] fetching udfs inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.grants] found 9 new records for grants
14:42 INFO [databricks.labs.ucx.install] Creating ucx schemas...
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.tables] fetching tables inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.tables] crawling new set of snapshot data for tables
14:42 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sv4gh] listing tables and views
14:42 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sv4gh.dummy_tjcmn] fetching table metadata
14:42 DEBUG [databricks.labs.ucx.hive_metastore.tables] [hive_metastore.dummy_sv4gh.dummy_tvbea] fetching table metadata
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.tables] found 2 new records for tables
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.udfs] fetching udfs inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.udfs] crawling new set of snapshot data for udfs
14:42 DEBUG [databricks.labs.ucx.hive_metastore.udfs] [hive_metastore.dummy_sv4gh] listing udfs
14:42 DEBUG [databricks.labs.ucx.hive_metastore.udfs] [hive_metastore.dummy_sv4gh.dummy_ffabs] fetching udf metadata
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.udfs] found 1 new records for udfs
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.grants] fetching grants inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.grants] crawling new set of snapshot data for grants
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.tables] fetching tables inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.udfs] fetching udfs inventory
14:42 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sevyy.grants] found 9 new records for grants
[gw0] linux -- Python 3.10.17 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_reflect_account_groups_on_workspace: TimeoutError: Timed out after 0:02:00 (3m40.373s)
... (skipped 965 bytes)
 "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/workspace_access/groups.py", line 635, in _try_fetch
    for row in self._sql_backend.fetch(f"SELECT * FROM {escape_sql_identifier(self.full_name)}"):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/core.py", line 344, in fetch_all
    execute_response = self.execute(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/core.py", line 268, in execute
    self._raise_if_needed(status)
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/core.py", line 478, in _raise_if_needed
    raise NotFound(error_message)
databricks.sdk.errors.platform.NotFound: [TABLE_OR_VIEW_NOT_FOUND] The table or view `hive_metastore`.`dummy_siqwz`.`groups` cannot be found. Verify the spelling and correctness of the schema and catalog.
If you did not qualify the name with a schema, verify the current_schema() output, or qualify the name with the correct schema and catalog.
To tolerate the error on drop use DROP VIEW IF EXISTS or DROP TABLE IF EXISTS. SQLSTATE: 42P01; line 1 pos 14
14:59 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_siqwz.groups] crawling new set of snapshot data for groups
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName,meta,externalId,members,roles,entitlements ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 71 WorkspaceGroup
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing account groups with id,displayName,externalId...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 155 account groups
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Group listing provided, a subset of all groups will be migrated
15:00 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_siqwz.groups] found 1 new records for groups
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Starting to rename 1 groups for migration...
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Renaming group: ucx_Ggiqa-ra78b3d068 (id=890375755392780) -> ucx-temp-ucx_Ggiqa-ra78b3d068
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group rename has possibly taken effect: ucx_Ggiqa-ra78b3d068 (id=890375755392780) -> ucx-temp-ucx_Ggiqa-ra78b3d068
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group rename has possibly taken effect: ucx_Ggiqa-ra78b3d068 (id=890375755392780) -> ucx-temp-ucx_Ggiqa-ra78b3d068
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group rename is assumed complete: ucx_Ggiqa-ra78b3d068 (id=890375755392780) -> ucx-temp-ucx_Ggiqa-ra78b3d068
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 136 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration reflects renamed group: 890375755392780 (renamed to ucx-temp-ucx_Ggiqa-ra78b3d068)
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 136 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration reflects renamed group: 890375755392780 (renamed to ucx-temp-ucx_Ggiqa-ra78b3d068)
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration showed all 1 renamed groups; assuming complete.
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing account groups with id,displayName,externalId...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 155 account groups
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=Group) with id,displayName,externalId,meta ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 65 Group
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName,meta,externalId,members,roles,entitlements ...
15:01 INFO [databricks.labs.ucx.workspace_access.groups] Found 71 WorkspaceGroup
15:01 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_siqwz.groups] fetching groups inventory
15:01 INFO [databricks.labs.ucx.workspace_access.groups] Starting to reflect 1 account groups into workspace for migration...
15:01 WARNING [databricks.labs.ucx.workspace_access.groups] Skipping ucx_Ggiqa-ra78b3d068: group already exists in workspace
14:57 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=Group) with id,displayName,externalId,meta ...
14:58 INFO [databricks.labs.ucx.workspace_access.groups] Found 64 Group
14:58 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName,meta,externalId,members,roles,entitlements ...
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Found 70 WorkspaceGroup
14:59 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_siqwz.groups] fetching groups inventory
14:59 DEBUG [databricks.labs.ucx.framework.crawlers] Inventory table not found
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/framework/crawlers.py", line 152, in _snapshot
    cached_results = list(fetcher())
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/workspace_access/groups.py", line 635, in _try_fetch
    for row in self._sql_backend.fetch(f"SELECT * FROM {escape_sql_identifier(self.full_name)}"):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/core.py", line 344, in fetch_all
    execute_response = self.execute(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/core.py", line 268, in execute
    self._raise_if_needed(status)
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/core.py", line 478, in _raise_if_needed
    raise NotFound(error_message)
databricks.sdk.errors.platform.NotFound: [TABLE_OR_VIEW_NOT_FOUND] The table or view `hive_metastore`.`dummy_siqwz`.`groups` cannot be found. Verify the spelling and correctness of the schema and catalog.
If you did not qualify the name with a schema, verify the current_schema() output, or qualify the name with the correct schema and catalog.
To tolerate the error on drop use DROP VIEW IF EXISTS or DROP TABLE IF EXISTS. SQLSTATE: 42P01; line 1 pos 14
14:59 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_siqwz.groups] crawling new set of snapshot data for groups
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName,meta,externalId,members,roles,entitlements ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 71 WorkspaceGroup
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing account groups with id,displayName,externalId...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 155 account groups
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Group listing provided, a subset of all groups will be migrated
15:00 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_siqwz.groups] found 1 new records for groups
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Starting to rename 1 groups for migration...
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Renaming group: ucx_Ggiqa-ra78b3d068 (id=890375755392780) -> ucx-temp-ucx_Ggiqa-ra78b3d068
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group rename has possibly taken effect: ucx_Ggiqa-ra78b3d068 (id=890375755392780) -> ucx-temp-ucx_Ggiqa-ra78b3d068
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group rename has possibly taken effect: ucx_Ggiqa-ra78b3d068 (id=890375755392780) -> ucx-temp-ucx_Ggiqa-ra78b3d068
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group rename is assumed complete: ucx_Ggiqa-ra78b3d068 (id=890375755392780) -> ucx-temp-ucx_Ggiqa-ra78b3d068
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 136 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration reflects renamed group: 890375755392780 (renamed to ucx-temp-ucx_Ggiqa-ra78b3d068)
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 136 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration reflects renamed group: 890375755392780 (renamed to ucx-temp-ucx_Ggiqa-ra78b3d068)
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration showed all 1 renamed groups; assuming complete.
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing account groups with id,displayName,externalId...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 155 account groups
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=Group) with id,displayName,externalId,meta ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 65 Group
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName,meta,externalId,members,roles,entitlements ...
15:01 INFO [databricks.labs.ucx.workspace_access.groups] Found 71 WorkspaceGroup
15:01 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_siqwz.groups] fetching groups inventory
15:01 INFO [databricks.labs.ucx.workspace_access.groups] Starting to reflect 1 account groups into workspace for migration...
15:01 WARNING [databricks.labs.ucx.workspace_access.groups] Skipping ucx_Ggiqa-ra78b3d068: group already exists in workspace
[gw2] linux -- Python 3.10.17 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_delete_ws_groups_should_delete_renamed_and_reflected_groups_only: TimeoutError: Timed out after 0:05:00 (9m5.241s)
... (skipped 4831 bytes)
-ucx_GvtHO-ra78b3d068)
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration showed all 1 renamed groups; assuming complete.
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing account groups with id,displayName,externalId...
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Found 155 account groups
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=Group) with id,displayName,externalId,meta ...
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Found 64 Group
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName,meta,externalId,members,roles,entitlements ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 71 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_s09cp.groups] fetching groups inventory
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Starting to reflect 1 account groups into workspace for migration...
15:00 WARNING [databricks.labs.ucx.workspace_access.groups] Skipping ucx_GvtHO-ra78b3d068: group already exists in workspace
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=Group) with id,displayName,externalId,meta ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 65 Group
15:00 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_s09cp.groups] fetching groups inventory
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Starting to remove 1 migrated workspace groups...
15:00 WARNING [databricks.labs.ucx.workspace_access.groups] Not deleting group ucx-temp-ucx_GvtHO-ra78b3d068(id=232592526224745) (originally ucx_GvtHO-ra78b3d068): its migrated account group (ucx_GvtHO-ra78b3d068) cannot be found.
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 136 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration does not contain any of the 0 deleted workspace groups; possibly deleted.
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 136 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration does not contain any of the 0 deleted workspace groups; possibly deleted.
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration omitted all 0 workspace groups; assuming deleted.
14:57 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=Group) with id,displayName,externalId,meta ...
14:57 INFO [databricks.labs.ucx.workspace_access.groups] Found 64 Group
14:57 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName,meta,externalId,members,roles,entitlements ...
14:57 INFO [databricks.labs.ucx.workspace_access.groups] Found 72 WorkspaceGroup
14:57 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_s09cp.groups] fetching groups inventory
14:57 DEBUG [databricks.labs.ucx.framework.crawlers] Inventory table not found
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/framework/crawlers.py", line 152, in _snapshot
    cached_results = list(fetcher())
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/workspace_access/groups.py", line 635, in _try_fetch
    for row in self._sql_backend.fetch(f"SELECT * FROM {escape_sql_identifier(self.full_name)}"):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/core.py", line 344, in fetch_all
    execute_response = self.execute(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/core.py", line 268, in execute
    self._raise_if_needed(status)
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/core.py", line 478, in _raise_if_needed
    raise NotFound(error_message)
databricks.sdk.errors.platform.NotFound: [TABLE_OR_VIEW_NOT_FOUND] The table or view `hive_metastore`.`dummy_s09cp`.`groups` cannot be found. Verify the spelling and correctness of the schema and catalog.
If you did not qualify the name with a schema, verify the current_schema() output, or qualify the name with the correct schema and catalog.
To tolerate the error on drop use DROP VIEW IF EXISTS or DROP TABLE IF EXISTS. SQLSTATE: 42P01; line 1 pos 14
14:57 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_s09cp.groups] crawling new set of snapshot data for groups
14:57 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName,meta,externalId,members,roles,entitlements ...
14:58 INFO [databricks.labs.ucx.workspace_access.groups] Found 72 WorkspaceGroup
14:58 INFO [databricks.labs.ucx.workspace_access.groups] Listing account groups with id,displayName,externalId...
14:58 INFO [databricks.labs.ucx.workspace_access.groups] Found 155 account groups
14:58 INFO [databricks.labs.ucx.workspace_access.groups] Group listing provided, a subset of all groups will be migrated
14:58 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_s09cp.groups] found 1 new records for groups
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Starting to rename 1 groups for migration...
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Renaming group: ucx_GvtHO-ra78b3d068 (id=232592526224745) -> ucx-temp-ucx_GvtHO-ra78b3d068
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Group still has old name; still waiting for rename to take effect: ucx_GvtHO-ra78b3d068 (id=232592526224745) -> ucx-temp-ucx_GvtHO-ra78b3d068
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Group still has old name; still waiting for rename to take effect: ucx_GvtHO-ra78b3d068 (id=232592526224745) -> ucx-temp-ucx_GvtHO-ra78b3d068
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Group rename has possibly taken effect: ucx_GvtHO-ra78b3d068 (id=232592526224745) -> ucx-temp-ucx_GvtHO-ra78b3d068
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Group rename has possibly taken effect: ucx_GvtHO-ra78b3d068 (id=232592526224745) -> ucx-temp-ucx_GvtHO-ra78b3d068
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Group rename is assumed complete: ucx_GvtHO-ra78b3d068 (id=232592526224745) -> ucx-temp-ucx_GvtHO-ra78b3d068
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Found 135 WorkspaceGroup
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration reflects renamed group: 232592526224745 (renamed to ucx-temp-ucx_GvtHO-ra78b3d068)
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Found 135 WorkspaceGroup
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration reflects renamed group: 232592526224745 (renamed to ucx-temp-ucx_GvtHO-ra78b3d068)
14:59 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration showed all 1 renamed groups; assuming complete.
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing account groups with id,displayName,externalId...
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Found 155 account groups
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=Group) with id,displayName,externalId,meta ...
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Found 64 Group
14:59 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName,meta,externalId,members,roles,entitlements ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 71 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_s09cp.groups] fetching groups inventory
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Starting to reflect 1 account groups into workspace for migration...
15:00 WARNING [databricks.labs.ucx.workspace_access.groups] Skipping ucx_GvtHO-ra78b3d068: group already exists in workspace
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=Group) with id,displayName,externalId,meta ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 65 Group
15:00 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_s09cp.groups] fetching groups inventory
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Starting to remove 1 migrated workspace groups...
15:00 WARNING [databricks.labs.ucx.workspace_access.groups] Not deleting group ucx-temp-ucx_GvtHO-ra78b3d068(id=232592526224745) (originally ucx_GvtHO-ra78b3d068): its migrated account group (ucx_GvtHO-ra78b3d068) cannot be found.
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 136 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration does not contain any of the 0 deleted workspace groups; possibly deleted.
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Listing workspace groups (resource_type=WorkspaceGroup) with id,displayName ...
15:00 INFO [databricks.labs.ucx.workspace_access.groups] Found 136 WorkspaceGroup
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration does not contain any of the 0 deleted workspace groups; possibly deleted.
15:00 DEBUG [databricks.labs.ucx.workspace_access.groups] Group enumeration omitted all 0 workspace groups; assuming deleted.
[gw9] linux -- Python 3.10.17 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_table_migration_job_refreshes_migration_status[hiveserde-migrate-external-tables-ctas]: AssertionError: Workflow failed: migrate-external-tables-ctas (30m46.29s)
... (skipped 3980 bytes)
..
14:53 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups...
14:53 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main...
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.install] Installation completed successfully! Please refer to the https://DATABRICKS_HOST/#workspace/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.Ui0G/README for the next steps.
14:53 INFO [databricks.labs.ucx.progress.install] Installation completed successfully!
14:53 DEBUG [databricks.labs.ucx.installer.workflows] starting assessment job: https://DATABRICKS_HOST#job/982892916449250
14:53 INFO [databricks.labs.ucx.installer.workflows] Started assessment job: https://DATABRICKS_HOST#job/982892916449250/runs/272780378069958
14:53 DEBUG [databricks.labs.ucx.installer.workflows] Validating assessment workflow: https://DATABRICKS_HOST#job/982892916449250
14:53 INFO [databricks.labs.ucx.installer.workflows] Identified a run in progress waiting for run completion
15:02 DEBUG [databricks.labs.ucx.installer.workflows] starting migrate-external-tables-ctas job: https://DATABRICKS_HOST#job/831213708667971
15:02 INFO [databricks.labs.ucx.installer.workflows] Started migrate-external-tables-ctas job: https://DATABRICKS_HOST#job/831213708667971/runs/975016507937098
15:02 DEBUG [databricks.labs.ucx.installer.workflows] Validating migrate-external-tables-ctas workflow: https://DATABRICKS_HOST#job/831213708667971
15:02 INFO [databricks.labs.ucx.installer.workflows] Identified a run in progress waiting for run completion
14:52 DEBUG [databricks.labs.ucx.install] Cannot find previous installation: Path (/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.Ui0G/config.yml) doesn't exist.
14:52 INFO [databricks.labs.ucx.install] Please answer a couple of questions to configure Unity Catalog migration
14:52 INFO [databricks.labs.ucx.installer.hms_lineage] HMS lineage init script already exists and enabled
14:52 INFO [databricks.labs.ucx.install] Fetching installations...
14:52 WARNING [databricks.labs.ucx.install] Existing installation at /Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.Ui0G is corrupted. Skipping...
14:52 INFO [databricks.labs.ucx.installer.policy] Creating UCX cluster policy.
14:52 DEBUG [tests.integration.conftest] Waiting for clusters to start...
14:53 DEBUG [tests.integration.conftest] Waiting for clusters to start...
14:53 INFO [databricks.labs.ucx.install] Installing UCX v0.58.1+2020250502145324
14:53 INFO [databricks.labs.ucx.install] Creating ucx schemas...
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migration-progress-experimental
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-legacy
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-hiveserde-tables-in-place-experimental
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables-in-mounts-experimental
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-data-reconciliation
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-tables-ctas
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=failing
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=scan-tables-in-mounts-experimental
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
14:53 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
14:53 INFO [databricks.labs.ucx.install] Creating dashboards...
14:53 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress...
14:53 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
14:53 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration...
14:53 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
14:53 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress/main...
14:53 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
14:53 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
14:53 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
14:53 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
14:53 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups...
14:53 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main...
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
14:53 INFO [databricks.labs.ucx.install] Installation completed successfully! Please refer to the https://DATABRICKS_HOST/#workspace/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.Ui0G/README for the next steps.
14:53 INFO [databricks.labs.ucx.progress.install] Installation completed successfully!
14:53 DEBUG [databricks.labs.ucx.installer.workflows] starting assessment job: https://DATABRICKS_HOST#job/982892916449250
14:53 INFO [databricks.labs.ucx.installer.workflows] Started assessment job: https://DATABRICKS_HOST#job/982892916449250/runs/272780378069958
14:53 DEBUG [databricks.labs.ucx.installer.workflows] Validating assessment workflow: https://DATABRICKS_HOST#job/982892916449250
14:53 INFO [databricks.labs.ucx.installer.workflows] Identified a run in progress waiting for run completion
15:02 DEBUG [databricks.labs.ucx.installer.workflows] starting migrate-external-tables-ctas job: https://DATABRICKS_HOST#job/831213708667971
15:02 INFO [databricks.labs.ucx.installer.workflows] Started migrate-external-tables-ctas job: https://DATABRICKS_HOST#job/831213708667971/runs/975016507937098
15:02 DEBUG [databricks.labs.ucx.installer.workflows] Validating migrate-external-tables-ctas workflow: https://DATABRICKS_HOST#job/831213708667971
15:02 INFO [databricks.labs.ucx.installer.workflows] Identified a run in progress waiting for run completion
15:22 INFO [databricks.labs.ucx.install] Deleting UCX v0.58.1+2020250502145324 from https://DATABRICKS_HOST
15:22 INFO [databricks.labs.ucx.install] Deleting inventory database dummy_ssbdn
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=830822740282652, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=982892916449250, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=561939570456621, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=370653981344164, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=758752958494951, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=695298267382146, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=176262807945179, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=831213708667971, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=69316845039083, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=326866146542171, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=863727582599844, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=1084039391791580, as it is no longer needed
15:22 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=467561548163859, as it is no longer needed
15:22 INFO [databricks.labs.ucx.install] Deleting cluster policy
15:22 INFO [databricks.labs.ucx.install] Deleting secret scope
15:22 INFO [databricks.labs.ucx.install] UnInstalling UCX complete
[gw8] linux -- Python 3.10.17 /home/runner/work/ucx/ucx/.venv/bin/python

Running from acceptance #8590

@pritishpai pritishpai force-pushed the fix/grants-integration-tests branch from cfaceb2 to a7c762e Compare February 28, 2025 22:43
@JCZuurmond JCZuurmond force-pushed the fix/grants-integration-tests branch from a7c762e to e405ef6 Compare March 4, 2025 08:47
@JCZuurmond JCZuurmond assigned pritishpai and unassigned JCZuurmond Mar 4, 2025
Copy link
Contributor Author

@JCZuurmond JCZuurmond left a comment

Choose a reason for hiding this comment

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

@pritishpai : Handing over this PR to you. We looked into the issue yesterday and saw it might be an issue specific to our workspace.

I added some comments with my thoughts.

assert tables_crawler._catalog == udf._catalog
assert tables_crawler._schema == udf._schema
super().__init__(tables_crawler._sql_backend, tables_crawler._catalog, tables_crawler._schema, "grants", Grant)
def __init__(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decoupled the grantscrawler from the tables crawler for two reasons:

  1. IMO it is confusing because AFAIK this is the only crawler which does it. It also bears the question: why not tightly couple it with the UDFs crawler?
  2. The GrantsCrawler is expected to run against a different SqlBackend in the assessment workflow, namely the TACL cluster.

@@ -25,7 +35,7 @@ def _deployed_schema(runtime_ctx) -> None:


@retried(on=[NotFound, TimeoutError], timeout=dt.timedelta(minutes=3))
def test_all_grant_types(runtime_ctx: MockRuntimeContext, _deployed_schema: None):
def test_all_grant_types(runtime_ctx: MockRuntimeContext, sql_backend_tacl: SqlBackend, _deployed_schema: None):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am mimicking the assessment workflow here:

  1. TablesCrawler and UdfsCrawler run against the "regular" backend
  2. GrantsCrawler run against the "tacl" backend

wait_for_grants(contains_select_on_any_file, any_file=True)
# Only verifying the SELECT permission on ANY FILE and ANONYMOUS FUNCTION as those take a while to propagate.
wait_for_grants(grants_contain_select_action, any_file=True)
wait_for_grants(grants_contain_select_action, anonymous_function=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fails with the following error:

DatabricksServiceHttpClientException: TEMPORARILY_UNAVAILABLE: The service at /api/2.0/sql-acl/get-permissions is taking too long to process your request. Please try again later or try a faster operation. [TraceId: 00-afa5633f98d2b7cbc47937e9233436b5-c5249ad122b4daa2-00]

This endpoint API docs suggest to use the new API endpoint. However, the choice for API endpoint is not up to us as it we use SHOW GRANTS ... - not the API endpoints directly. (Note we might implicitly chose the endpoint with the runtime.)

@gueniai : Could you ask the endpoint team on guidance here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I tried manually last night and I could make the /api/2.0/sql-acl/get-permissions via a python api call. If the endpoint team can give us the revoke permissions or anything that can help us clear the dangling permissions it would help us a lot.

@pritishpai pritishpai force-pushed the fix/grants-integration-tests branch from e405ef6 to 9e44daa Compare March 6, 2025 04:16
@gueniai gueniai requested a review from FastLee March 7, 2025 15:31
@pritishpai pritishpai force-pushed the fix/grants-integration-tests branch from 9e44daa to f0dfe18 Compare May 2, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/test-infra issues related to testing infrastructure internal this pull request won't appear in release notes migrate/access-control Access Control to things
Projects
Status: Ready for Review
Development

Successfully merging this pull request may close these issues.

Test failure: test_all_grant_types
2 participants