Skip to content

Commit b81abea

Browse files
authored
Release v0.2.0 (#328)
# Version changelog ## 0.2.0 * Added retrieving for all account-level groups with matching names to workspace-level groups in case no explicit configuration ([#277](#277)). * Added crawler for Azure Service principals used for direct storage access ([#305](#305)). * Added more SQL queries to the assessment step dashboard ([#269](#269)). * Added filtering out for job clusters in the clusters crawler ([#298](#298)). * Added recording errors from `crawl_tables` step in `$inventory.table_failures` table and display counter on the dashboard ([#300](#300)). * Added comprehensive introduction user manual ([#273](#273)). * Added interactive tutorial for local group migration readme ([#291](#291)). * Added tutorial links to the landing page of documentation ([#290](#290)). * Added (internal) support for account-level configuration and multi-cloud workspace list ([#264](#264)). * Improved order of tasks in the README notebook ([#286](#286)). * Improved installation script to run in a Windows Git Bash terminal ([#282](#282)). * Improved installation script by setting log level to uppercase by default ([#271](#271)). * Improved installation finish messages within installer script ([#267](#267)). * Improved automation for `MANAGED` table migration and continued building tables migration component ([#295](#295)). * Fixed debug notebook code with refactored package structure ([#250](#250)) ([#265](#265)). * Fixed replacement of custom configured database to replicate in the report for external locations ([#296](#296)). * Removed redundant `notebooks` top-level folder ([#263](#263)). * Split checking for test failures and linting errors into independent GitHub Actions checks ([#287](#287)). * Verify query metadata for assessment dashboards during unit tests ([#294](#294)).
1 parent 82bdd33 commit b81abea

File tree

6 files changed

+34
-13
lines changed

6 files changed

+34
-13
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Version changelog
22

3+
## 0.2.0
4+
5+
* Added retrieving for all account-level groups with matching names to workspace-level groups in case no explicit configuration ([#277](https://github.com/databricks/ucx/pull/277)).
6+
* Added crawler for Azure Service principals used for direct storage access ([#305](https://github.com/databricks/ucx/pull/305)).
7+
* Added more SQL queries to the assessment step dashboard ([#269](https://github.com/databricks/ucx/pull/269)).
8+
* Added filtering out for job clusters in the clusters crawler ([#298](https://github.com/databricks/ucx/pull/298)).
9+
* Added recording errors from `crawl_tables` step in `$inventory.table_failures` table and display counter on the dashboard ([#300](https://github.com/databricks/ucx/pull/300)).
10+
* Added comprehensive introduction user manual ([#273](https://github.com/databricks/ucx/pull/273)).
11+
* Added interactive tutorial for local group migration readme ([#291](https://github.com/databricks/ucx/pull/291)).
12+
* Added tutorial links to the landing page of documentation ([#290](https://github.com/databricks/ucx/pull/290)).
13+
* Added (internal) support for account-level configuration and multi-cloud workspace list ([#264](https://github.com/databricks/ucx/pull/264)).
14+
* Improved order of tasks in the README notebook ([#286](https://github.com/databricks/ucx/pull/286)).
15+
* Improved installation script to run in a Windows Git Bash terminal ([#282](https://github.com/databricks/ucx/pull/282)).
16+
* Improved installation script by setting log level to uppercase by default ([#271](https://github.com/databricks/ucx/pull/271)).
17+
* Improved installation finish messages within installer script ([#267](https://github.com/databricks/ucx/pull/267)).
18+
* Improved automation for `MANAGED` table migration and continued building tables migration component ([#295](https://github.com/databricks/ucx/pull/295)).
19+
* Fixed debug notebook code with refactored package structure ([#250](https://github.com/databricks/ucx/pull/250)) ([#265](https://github.com/databricks/ucx/pull/265)).
20+
* Fixed replacement of custom configured database to replicate in the report for external locations ([#296](https://github.com/databricks/ucx/pull/296)).
21+
* Removed redundant `notebooks` top-level folder ([#263](https://github.com/databricks/ucx/pull/263)).
22+
* Split checking for test failures and linting errors into independent GitHub Actions checks ([#287](https://github.com/databricks/ucx/pull/287)).
23+
* Verify query metadata for assessment dashboards during unit tests ([#294](https://github.com/databricks/ucx/pull/294)).
24+
325
## 0.1.1
426

527
* Added batched iteration for `INSERT INTO` queries in `StatementExecutionBackend` with default `max_records_per_batch=1000` ([#237](https://github.com/databricks/ucx/pull/237)).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.1"
1+
__version__ = "0.2.0"

src/databricks/labs/ucx/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def _job_settings(self, step_name: str, dbfs_path: str):
393393
tasks = sorted([t for t in _TASKS.values() if t.workflow == step_name], key=lambda _: _.name)
394394
return {
395395
"name": self._name(step_name),
396-
"tags": {TAG_APP: self._app, TAG_STEP: step_name},
396+
"tags": {TAG_APP: self._app, TAG_STEP: step_name, "version": f"v{__version__}"},
397397
"job_clusters": self._job_clusters({t.job_cluster for t in tasks}),
398398
"email_notifications": email_notifications,
399399
"tasks": [self._job_task(task, dbfs_path) for task in tasks],

tests/integration/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,10 @@ def test_catalog_fixture(make_catalog):
8282

8383
@pytest.fixture
8484
def make_schema(sql_exec, make_random):
85-
def create(*, catalog="hive_metastore", schema):
85+
def create(*, catalog: str = "hive_metastore", schema: str | None = None):
8686
if schema is None:
87-
schema = f"{catalog}.ucx_S{make_random(4)}".lower()
88-
else:
89-
schema = f"{catalog}.{schema}"
87+
schema = f"ucx_S{make_random(4)}"
88+
schema = f"{catalog}.{schema}".lower()
9089
sql_exec(f"CREATE SCHEMA {schema}")
9190
return schema
9291

tests/integration/hive_metastore/test_migrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_migrate_managed_tables(ws, make_catalog, make_schema, make_table):
1515
schema_a = make_schema(catalog="hive_metastore")
1616
_, target_schema = schema_a.split(".")
1717

18-
make_schema(catalog=target_catalog, schema_name=target_schema)
18+
make_schema(catalog=target_catalog, schema=target_schema)
1919

2020
managed_table = make_table(schema=schema_a)
2121

tests/integration/test_installation.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ def test_jobs_with_no_inventory_database(
4747
sql_exec(f"GRANT MODIFY ON SCHEMA {schema_b} TO `{ws_group_b.display_name}`")
4848

4949
cluster_policy = make_cluster_policy()
50+
make_cluster_policy_permissions(
51+
object_id=cluster_policy.policy_id,
52+
permission_level=PermissionLevel.CAN_USE,
53+
group_name=ws_group_a.display_name,
54+
)
5055
cpp_src = ws.permissions.get("cluster-policies", cluster_policy.policy_id)
5156
cluster_policy_src_permissions = sorted(
5257
[_ for _ in cpp_src.access_control_list if _.group_name == ws_group_a.display_name],
5358
key=lambda p: p.group_name,
5459
)
55-
make_cluster_policy_permissions(
56-
object_id=cluster_policy.policy_id,
57-
permission_level=random.choice([PermissionLevel.CAN_USE]),
58-
group_name=ws_group_a.display_name,
59-
)
6060

6161
job = make_job()
6262
make_job_permissions(
@@ -86,7 +86,7 @@ def test_jobs_with_no_inventory_database(
8686
)
8787

8888
try:
89-
for step in ["assessment", "migrate-groups", "migrate-groups-cleanup"]:
89+
for step in ["assessment", "migrate-groups"]:
9090
logger.debug(f"starting {step} job: {ws.config.host}#job/{install._deployed_steps[step]}")
9191
ws.jobs.run_now(install._deployed_steps[step]).result()
9292

0 commit comments

Comments
 (0)