-
Notifications
You must be signed in to change notification settings - Fork 74
Introduced Profiler Skeleton #2021
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
base: feature/synapse_profiler_scripts
Are you sure you want to change the base?
Introduced Profiler Skeleton #2021
Conversation
✅ 32/32 passed, 3 flaky, 2m14s total Flaky tests:
Running from acceptance #2538 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I proposed two small refactoring.
- use better name for the constant
PLATFORM_TO_PIPELINE_CFG
- inject the config in the constructor so we can get rid of patching in the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great foundation for an extensible profiler class. LGTM!
"synapse": "src/databricks/labs/lakebridge/resources/assessments/synapse/pipeline_config.yml", | ||
} | ||
|
||
# TODO modify this PLATFORM_TO_SOURCE_TECHNOLOGY.keys() once all platforms are supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
pipeline_config: PipelineConfig | None = None, | ||
) -> None: | ||
platform = self._platform.lower() | ||
if not pipeline_config: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function seems to only validate that pipeline_config
is not None, but _execute()
also handles FNF exceptions. Maybe consider collapsing these 2 functions into 1 for simplicity's sake.
|
||
@staticmethod | ||
def path_modifier(*, config_file: str | Path, path_prefix: Path = PRODUCT_PATH_PREFIX) -> PipelineConfig: | ||
# TODO: Make this work install during developer mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this TODO mean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
databricks labs install .
This is the developer mode we use, with the way the current path_modifier
is defined, and it doesn't pick up the latest changes unless it is installed in ~./.databricks/labs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes
What does this PR do?
Relevant implementation details
Caveats/things to watch out for when reviewing:
Linked issues
Resolves #..
Functionality
databricks labs lakebridge ...
Tests