Skip to content

Commit

Permalink
Fix formatting and lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandInguva committed Oct 5, 2023
1 parent c3f6556 commit 34c5256
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions sdks/python/apache_beam/testing/analyzers/perf_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def run_change_point_analysis(
def run(
big_query_metrics_fetcher: MetricsFetcher = BigQueryMetricsFetcher(),
config_file_path: Optional[str] = None,
) -> None:
) -> None:
"""
run is the entry point to run change point analysis on test metric
data, which is read from config file, and if there is a performance
Expand All @@ -182,7 +182,6 @@ def run(

tests_config: Dict[str, Dict[str, Any]] = read_test_config(config_file_path)


for test_id, params in tests_config.items():
run_change_point_analysis(
params=params,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def filter_change_points_by_median_threshold(
return valid_change_points


class MetricsFetcher:
class MetricsFetcher(metaclass=abc.ABCMeta):
@abc.abstractmethod
def fetch_metric_data(
self,
Expand All @@ -244,9 +244,10 @@ def fetch_metric_data(
Define SQL query and fetch the timestamp values and metric values
from BigQuery tables.
"""
raise NotImplementedError


class BigQueryMetricsFetcher:
class BigQueryMetricsFetcher(MetricsFetcher):
def fetch_metric_data(
self,
*,
Expand Down

0 comments on commit 34c5256

Please sign in to comment.