Remove `from . import` from benchmarking scripts. (#27977)

pull/27979/head
Paulo Castello da Costa 3 years ago committed by GitHub
parent 5f8c7074bf
commit 567c9db86c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tools/run_tests/performance/bq_upload_result.py
  2. 6
      tools/run_tests/performance/loadtest_config.py
  3. 3
      tools/run_tests/performance/loadtest_template.py
  4. 5
      tools/run_tests/performance/massage_qps_stats.py

@ -25,7 +25,8 @@ import sys
import time
import uuid
from . import massage_qps_stats
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import massage_qps_stats
gcp_utils_dir = os.path.abspath(
os.path.join(os.path.dirname(__file__), '../../gcp/utils'))

@ -31,12 +31,12 @@ import os
import string
import sys
from typing import Any, Dict, Iterable, Mapping, Optional, Type
import uuid
import yaml
from . import scenario_config
from . import scenario_config_exporter
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import scenario_config
import scenario_config_exporter
CONFIGURATION_FILE_HEADER_COMMENT = """
# Load test configurations generated from a template by loadtest_config.py.

@ -31,7 +31,8 @@ from typing import Any, Dict, Iterable, List, Mapping, Type
import yaml
from . import loadtest_config
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import loadtest_config
TEMPLATE_FILE_HEADER_COMMENT = """
# Template generated from load test configurations by loadtest_template.py.

@ -14,7 +14,10 @@
# Autogenerated by tools/codegen/core/gen_stats_data.py
from . import massage_qps_stats_helpers
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import massage_qps_stats_helpers
def massage_qps_stats(scenario_result):

Loading…
Cancel
Save