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

Limit test scope for test_permission_for_files_anonymous_func #3681

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JCZuurmond
Copy link
Member

@JCZuurmond JCZuurmond commented Feb 13, 2025

Changes

Limit test scope for test_permission_for_files_anonymous_func

Linked issues

Unblocks #3680

Tests

  • modified integration tests: test_permission_for_files_anonymous_func

@JCZuurmond JCZuurmond added bug/test-infra issues related to testing infrastructure internal this pull request won't appear in release notes labels Feb 13, 2025
@JCZuurmond JCZuurmond requested a review from gueniai February 13, 2025 08:45
@JCZuurmond JCZuurmond self-assigned this Feb 13, 2025
@JCZuurmond JCZuurmond requested a review from a team as a code owner February 13, 2025 08:45
Copy link

github-actions bot commented Feb 13, 2025

❌ 217/219 passed, 2 failed, 15 skipped, 6h34m47s total

❌ test_migration_index_deleted_source: AssertionError: assert 'hive_metastore.dummy_s4d9c.dummy_tqpzo' in [] (14.083s)
AssertionError: assert 'hive_metastore.dummy_s4d9c.dummy_tqpzo' in []
 +  where 'hive_metastore.dummy_s4d9c.dummy_tqpzo' = TableInfo(access_point=None, browse_only=None, catalog_name='hive_metastore', columns=None, comment=None, created_at=N...le_type=<TableType.MANAGED: 'MANAGED'>, updated_at=None, updated_by=None, view_definition=None, view_dependencies=None).full_name
[gw7] linux -- Python 3.10.16 /home/runner/work/ucx/ucx/.venv/bin/python
16:19 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sascc.tables] fetching tables inventory
16:19 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/hive_metastore/tables.py", line 458, in _try_fetch
    for row in self._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_sascc`.`tables` 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
16:19 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sascc.tables] crawling new set of snapshot data for tables
16:19 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sascc.tables] found 0 new records for tables
16:19 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sascc.tables] fetching tables inventory
16:19 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/hive_metastore/tables.py", line 458, in _try_fetch
    for row in self._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_sascc`.`tables` 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
16:19 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sascc.tables] crawling new set of snapshot data for tables
16:19 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sascc.tables] found 0 new records for tables
[gw7] linux -- Python 3.10.16 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_permission_for_files_anonymous_func: AssertionError: assert 'sdk-svFX-ra78b35f86' in {} (15m11.141s)
AssertionError: assert 'sdk-svFX-ra78b35f86' in {}
 +  where 'sdk-svFX-ra78b35f86' = Group(display_name='sdk-svFX-ra78b35f86', entitlements=[], external_id=None, groups=[], id='10079472931583', members=[...[], schemas=[<GroupSchema.URN_IETF_PARAMS_SCIM_SCHEMAS_CORE_2_0_GROUP: 'urn:ietf:params:scim:schemas:core:2.0:Group'>]).display_name
16:47 INFO [databricks.sdk] Using Databricks Metadata Service authentication
[gw3] linux -- Python 3.10.16 /home/runner/work/ucx/ucx/.venv/bin/python
16:47 INFO [databricks.sdk] Using Databricks Metadata Service authentication
16:47 INFO [databricks.labs.pytester.fixtures.iam] Workspace group sdk-svFX-ra78b35f86: https://DATABRICKS_HOST#setting/accounts/groups/10079472931583
16:47 INFO [databricks.labs.pytester.fixtures.iam] Workspace group sdk-YZ38-ra78b35f86: https://DATABRICKS_HOST#setting/accounts/groups/647912098651348
16:47 DEBUG [tests.integration.workspace_access.test_tacl] old=sdk-svFX-ra78b35f86, new=sdk-YZ38-ra78b35f86
16:47 INFO [databricks.labs.pytester.fixtures.baseline] Created hive_metastore.dummy_sk2l3 schema: https://DATABRICKS_HOST/#explore/data/hive_metastore/dummy_sk2l3
16:47 INFO [databricks.labs.pytester.fixtures.baseline] Created ucx_Cet9DtquinYLXlnk catalog: https://DATABRICKS_HOST/#explore/data/ucx_Cet9DtquinYLXlnk
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.grants] fetching grants inventory
16:47 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/hive_metastore/grants.py", line 239, in _try_fetch
    for row in self._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_sk2l3`.`grants` 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
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.grants] crawling new set of snapshot data for grants
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.tables] fetching tables inventory
16:47 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/hive_metastore/tables.py", line 458, in _try_fetch
    for row in self._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_sk2l3`.`tables` 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
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.tables] crawling new set of snapshot data for tables
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.tables] found 0 new records for tables
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.udfs] fetching udfs inventory
16:47 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/hive_metastore/udfs.py", line 63, in _try_fetch
    for row in self._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_sk2l3`.`udfs` 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
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.udfs] crawling new set of snapshot data for udfs
16:48 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.udfs] found 0 new records for udfs
16:50 INFO [databricks.labs.blueprint.parallel] listing grants for hive_metastore 3/3, rps: 0.018/sec
16:50 INFO [databricks.labs.blueprint.parallel] Finished 'listing grants for hive_metastore' tasks: 100% results available (3/3). Took 0:02:46.872546
16:50 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.grants] found 6 new records for grants
16:50 INFO [databricks.labs.blueprint.parallel] apply_tasks: crawlers 6/6, rps: 5644.403/sec
16:50 INFO [databricks.labs.blueprint.parallel] Finished 'apply_tasks: crawlers' tasks: 100% results available (6/6). Took 0:00:00.001441
16:51 INFO [databricks.labs.blueprint.parallel] Finished 'apply_tasks: appliers' tasks: 33% results available (2/6). Took 0:00:57.315641
17:02 ERROR [databricks.labs.ucx.hive_metastore.grants] Couldn't fetch grants for object ANY FILE : 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-d8f9b4bf54e60113320549a82b4bb63c-28de736f16b6de70-00]
16:47 INFO [databricks.sdk] Using Databricks Metadata Service authentication
16:47 INFO [databricks.labs.pytester.fixtures.iam] Workspace group sdk-svFX-ra78b35f86: https://DATABRICKS_HOST#setting/accounts/groups/10079472931583
16:47 INFO [databricks.labs.pytester.fixtures.iam] Workspace group sdk-YZ38-ra78b35f86: https://DATABRICKS_HOST#setting/accounts/groups/647912098651348
16:47 DEBUG [tests.integration.workspace_access.test_tacl] old=sdk-svFX-ra78b35f86, new=sdk-YZ38-ra78b35f86
16:47 INFO [databricks.labs.pytester.fixtures.baseline] Created hive_metastore.dummy_sk2l3 schema: https://DATABRICKS_HOST/#explore/data/hive_metastore/dummy_sk2l3
16:47 INFO [databricks.labs.pytester.fixtures.baseline] Created ucx_Cet9DtquinYLXlnk catalog: https://DATABRICKS_HOST/#explore/data/ucx_Cet9DtquinYLXlnk
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.grants] fetching grants inventory
16:47 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/hive_metastore/grants.py", line 239, in _try_fetch
    for row in self._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_sk2l3`.`grants` 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
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.grants] crawling new set of snapshot data for grants
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.tables] fetching tables inventory
16:47 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/hive_metastore/tables.py", line 458, in _try_fetch
    for row in self._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_sk2l3`.`tables` 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
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.tables] crawling new set of snapshot data for tables
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.tables] found 0 new records for tables
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.udfs] fetching udfs inventory
16:47 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/hive_metastore/udfs.py", line 63, in _try_fetch
    for row in self._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_sk2l3`.`udfs` 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
16:47 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.udfs] crawling new set of snapshot data for udfs
16:48 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.udfs] found 0 new records for udfs
16:50 INFO [databricks.labs.blueprint.parallel] listing grants for hive_metastore 3/3, rps: 0.018/sec
16:50 INFO [databricks.labs.blueprint.parallel] Finished 'listing grants for hive_metastore' tasks: 100% results available (3/3). Took 0:02:46.872546
16:50 DEBUG [databricks.labs.ucx.framework.crawlers] [hive_metastore.dummy_sk2l3.grants] found 6 new records for grants
16:50 INFO [databricks.labs.blueprint.parallel] apply_tasks: crawlers 6/6, rps: 5644.403/sec
16:50 INFO [databricks.labs.blueprint.parallel] Finished 'apply_tasks: crawlers' tasks: 100% results available (6/6). Took 0:00:00.001441
16:51 INFO [databricks.labs.blueprint.parallel] Finished 'apply_tasks: appliers' tasks: 33% results available (2/6). Took 0:00:57.315641
17:02 ERROR [databricks.labs.ucx.hive_metastore.grants] Couldn't fetch grants for object ANY FILE : 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-d8f9b4bf54e60113320549a82b4bb63c-28de736f16b6de70-00]
[gw3] linux -- Python 3.10.16 /home/runner/work/ucx/ucx/.venv/bin/python

Running from acceptance #8265

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants