Remove StaticTablesCrawler in favor of created database tracking #1392
Merged
Remove StaticTablesCrawler in favor of created database tracking #1392
StaticTablesCrawler in favor of created database tracking #1392Conversation
6c5d391 to
2dd6f51
Compare
nfx
commented
Apr 16, 2024
Comment on lines
+336
to
+359
| def with_dummy_grants_and_tacls(self): | ||
| self.sql_backend.save_table( | ||
| f"{self.inventory_database}.groups", | ||
| [ | ||
| MigratedGroup( | ||
| "group_id", | ||
| "test_group_ws", | ||
| "test_group_ac", | ||
| "tmp", | ||
| ) | ||
| ], | ||
| MigratedGroup, | ||
| ) | ||
| self.sql_backend.save_table( | ||
| f"{self.inventory_database}.grants", | ||
| [ | ||
| Grant( | ||
| "test_user", | ||
| "SELECT", | ||
| database="test_database", | ||
| table="test_table", | ||
| ) | ||
| ], | ||
| Grant, |
Collaborator
Author
There was a problem hiding this comment.
@nkvuong it's not clear what with_dummy_grants_and_tacls is doing
| include_databases=self.created_databases, | ||
| ) | ||
|
|
||
| def save_tables(self): |
Collaborator
Author
There was a problem hiding this comment.
it's clear why do we need save_mount, but why do we need save_tables?..
|
❌ 136/140 passed, 2 flaky, 4 failed, 20 skipped, 1h5m6s total ❌ test_running_real_validate_groups_permissions_job: [gw9] linux -- Python 3.10.14 /home/runner/work/ucx/ucx/.venv/bin/python (0s)❌ test_running_real_validate_groups_permissions_job_fails: [gw9] linux -- Python 3.10.14 /home/runner/work/ucx/ucx/.venv/bin/python (3ms)❌ test_running_real_assessment_job: [gw3] linux -- Python 3.10.14 /home/runner/work/ucx/ucx/.venv/bin/python (3ms)❌ test_running_real_migrate_groups_job: [gw3] linux -- Python 3.10.14 /home/runner/work/ucx/ucx/.venv/bin/python (2ms)Flaky tests:
Running from acceptance #2359 |
ericvergnaud
added a commit
to ericvergnaud/ucx
that referenced
this pull request
Apr 18, 2024
* main: Give all access connectors `Storage Blob Data Contributor` role (databrickslabs#1425) Addressed a bug with AWS UC Role Update. Adding unit tests. (databrickslabs#1429) Added integration tests with external HMS & Glue (databrickslabs#1408) Modified update existing role to amend the AssumeRole statement rather than rewriting it. (databrickslabs#1423) Extend service principal migration with option to create access connectors with managed identity for each storage account (databrickslabs#1417) A notebook linter to detect DBFS references within notebook cells (databrickslabs#1393) Remove `StaticTablesCrawler` in favor of created database tracking (databrickslabs#1392) Cleaned up integration test suite (databrickslabs#1422) # Conflicts: # tests/unit/source_code/test_notebook_linter.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims at speeding up real integration testing jobs and making them less flaky.