Skip to content

Commit

Permalink
correcting header checks
Browse files Browse the repository at this point in the history
  • Loading branch information
anushka567 committed Aug 22, 2024
1 parent b6d7aff commit cad6265
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/header-checker-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ allowedLicenses:
sourceFileExtensions:
- 'go'
- 'Makefile'
- 'json'
- 'yaml'
- 'yml'
- 'txt'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from gsheet import gsheet

WORKSHEET_NAME_FLAT = 'rename_metrics_flat'
WORKSHEET_NAME_GCS = 'rename_metrics_hns'
WORKSHEET_NAME_HNS = 'rename_metrics_hns'
SPREADSHEET_ID = '1UVEvsf49eaDJdTGLQU1rlNTIAxg8PZoNQCy_GX6Nw-A'

logging.basicConfig(
Expand Down Expand Up @@ -364,7 +364,7 @@ def _run_rename_benchmark(test_type,dir_config,num_samples,results,upload_gs):
if test_type == "flat":
worksheet= WORKSHEET_NAME_FLAT
else:
worksheet= WORKSHEET_NAME_GCS
worksheet= WORKSHEET_NAME_HNS

exit_code = _upload_to_gsheet(worksheet, upload_values,
SPREADSHEET_ID)
Expand All @@ -376,13 +376,13 @@ def _run_rename_benchmark(test_type,dir_config,num_samples,results,upload_gs):

if __name__ == '__main__':
argv = sys.argv
if len(argv) < 2:
if len(argv) < 3:
raise TypeError('Incorrect number of arguments.\n'
'Usage: '
'python3 renaming_benchmark.py [--upload_gs] [--num_samples NUM_SAMPLES] config_file bucket_type')

args = _parse_arguments(argv)
#check_dependencies(['gcloud', 'gcsfuse'], log)
check_dependencies(['gcloud', 'gcsfuse'], log)
results = dict() # Dict object to store the results corresonding to the test types.

_run_rename_benchmark(args.bucket_type, args.config_file, args.num_samples,
Expand Down

0 comments on commit cad6265

Please sign in to comment.