Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandInguva committed Sep 29, 2023
1 parent 85c46c0 commit 80ca685
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions sdks/python/apache_beam/testing/analyzers/perf_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
import pandas as pd

from apache_beam.testing.analyzers import constants
from apache_beam.testing.analyzers.perf_analysis_utils import MetricsFetcher
from apache_beam.testing.analyzers.perf_analysis_utils import GitHubIssueMetaData
from apache_beam.testing.analyzers.perf_analysis_utils import BigQueryMetricsFetcher
from apache_beam.testing.analyzers.perf_analysis_utils import GitHubIssueMetaData
from apache_beam.testing.analyzers.perf_analysis_utils import MetricsFetcher
from apache_beam.testing.analyzers.perf_analysis_utils import create_performance_alert
from apache_beam.testing.analyzers.perf_analysis_utils import find_latest_change_point_index
from apache_beam.testing.analyzers.perf_analysis_utils import get_existing_issues_data
Expand Down Expand Up @@ -116,8 +116,7 @@ def run_change_point_analysis(
last_reported_issue_number = None
issue_metadata_table_name = f'{params.get("metrics_table")}_{metric_name}'
existing_issue_data = get_existing_issues_data(
table_name=issue_metadata_table_name,
big_query_metrics_fetcher=big_query_metrics_fetcher)
table_name=issue_metadata_table_name)

if existing_issue_data is not None:
existing_issue_timestamps = existing_issue_data[
Expand Down Expand Up @@ -183,7 +182,7 @@ def run(
tests_config: Dict[str, Dict[str, Any]] = read_test_config(config_file_path)

if not big_query_metrics_fetcher:
big_query_metrics_fetcher = BigQueryMetricsFetcher()
big_query_metrics_fetcher: MetricsFetcher = BigQueryMetricsFetcher()

for test_id, params in tests_config.items():
run_change_point_analysis(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ def fetch_metric_data(
metric_name,
test_name=None) -> Tuple[List[Union[int, float]], List[pd.Timestamp]]:
"""
Define schema and fetch the timestamp values and metric values
from BigQuery.
Define SQL query and fetch the timestamp values and metric values
from BigQuery tables.
"""


Expand Down

0 comments on commit 80ca685

Please sign in to comment.