chore(ci): change benchmark parser input name

The use of "schema" was incorrect since it's meant to be used as
database name when sending data to Slab.
This commit is contained in:
David Testé
2022-11-23 13:26:02 +01:00
committed by David Testé
parent 7f65f4f527
commit 1e8c0df381
3 changed files with 5 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ jobs:
COMMIT_DATE="$(git --no-pager show -s --format=%cd --date=iso8601-strict ${{ github.sha }})"
COMMIT_HASH="$(git describe --tags --dirty)"
python3 ./ci/benchmark_parser.py compiler/benchmarks_results.json ${{ env.RESULTS_FILENAME }} \
--schema compiler_benchmarks \
--database compiler_benchmarks \
--hardware ${{ env.EC2_INSTANCE_TYPE }} \
--project-version ${COMMIT_HASH} \
--branch ${{ github.ref_name }} \

View File

@@ -100,7 +100,7 @@ jobs:
COMMIT_DATE="$(git --no-pager show -s --format=%cd --date=iso8601-strict ${{ github.sha }})"
COMMIT_HASH="$(git describe --tags --dirty)"
python3 ./ci/benchmark_parser.py compiler/benchmarks_results.json ${{ env.RESULTS_FILENAME }} \
--schema compiler_benchmarks \
--database compiler_benchmarks \
--hardware ${{ inputs.instance_type }} \
--project-version ${COMMIT_HASH} \
--branch ${{ github.ref_name }} \

View File

@@ -16,8 +16,8 @@ parser.add_argument('results_path',
'In a case of a directory, this script will attempt to parse all the'
'files containing a .json extension'))
parser.add_argument('output_file', help='File storing parsed results')
parser.add_argument('-s', '--schema', dest='schema', required=True,
help='Name of the database schema used to store results')
parser.add_argument('-d', '--database', dest='database', required=True,
help='Name of the database used to store results')
parser.add_argument('-w', '--hardware', dest='hardware', required=True,
help='Hardware reference used to perform benchmark')
parser.add_argument('-V', '--project-version', dest='project_version', required=True,
@@ -74,7 +74,7 @@ def dump_results(parsed_results, filename, input_args):
"""
filename.parent.mkdir(parents=True, exist_ok=True)
series = {
"schema": input_args.schema,
"database": input_args.database,
"hardware": input_args.hardware,
"project_version": input_args.project_version,
"branch": input_args.branch,