From 19ac5a9eef0e8e244d9edd735e77e188e01e141c Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Tue, 24 Jun 2025 16:14:01 -0700 Subject: [PATCH 1/4] setup link Signed-off-by: Yang Wang --- .ci/scripts/benchmark_tooling/common.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.ci/scripts/benchmark_tooling/common.py b/.ci/scripts/benchmark_tooling/common.py index 521e9f3b3ce..bc1c4f65975 100644 --- a/.ci/scripts/benchmark_tooling/common.py +++ b/.ci/scripts/benchmark_tooling/common.py @@ -38,13 +38,3 @@ def read_all_csv_with_metadata(folder_path: str) -> List[Dict[str, Any]]: results.append({"groupInfo": meta, "df": df, "sheetName": fname}) print(f"successfully fetched {len(results)} sheets from {folder_path}") return results - - -import logging - -logging.basicConfig(level=logging.INFO) - -# For Excel files (assuming the Excel file is in the current directory) -file_path = "./private.xlsx" -res = read_excel_with_json_header(file_path) -logging.info(res) From b45d737652b476064d7c473a496e355b90be7598 Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Tue, 24 Jun 2025 16:23:41 -0700 Subject: [PATCH 2/4] setup link Signed-off-by: Yang Wang --- .../analyze_benchmark_stability.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py b/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py index 64e4b05df86..548f240cb62 100644 --- a/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py +++ b/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py @@ -66,7 +66,7 @@ def is_matching_dataset(primary_sheet, reference_sheet): def analyze_latency_stability( # noqa: C901 - primary_file, reference_file=None, output_dir="stability_analysis_results" + primary_file, reference_file=None, output_dir="stability_analysis_results",debug=False ): print(f"Analyzing latency stability from primary file: {primary_file}") if reference_file: @@ -81,6 +81,9 @@ def analyze_latency_stability( # noqa: C901 primary_datasets = {} documents = read_excel_with_json_header(primary_file) + if debug: + print(f"[Debug Mode] Printing documents: {documents}") + for document in documents: sheetName = document.get("sheetName", None) df = document.get("df", None) @@ -1547,11 +1550,17 @@ def main(): help="Directory to save analysis results (default: stability_analysis_results)", ) + parser.add_argument( + "--debug", + action="store_true", + help="Enable debug mode (default: False)", + ) + # Parse arguments args = parser.parse_args() # Run analysis - analyze_latency_stability(args.primary_file, args.reference_file, args.output_dir) + analyze_latency_stability(args.primary_file, args.reference_file, args.output_dir, args.debug) if __name__ == "__main__": From 544977d158c36fc89fdefa2a9479607815dd1f33 Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Tue, 24 Jun 2025 16:40:29 -0700 Subject: [PATCH 3/4] setup link Signed-off-by: Yang Wang --- .../analyze_benchmark_stability.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py b/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py index 548f240cb62..2233bfd0546 100644 --- a/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py +++ b/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py @@ -66,7 +66,10 @@ def is_matching_dataset(primary_sheet, reference_sheet): def analyze_latency_stability( # noqa: C901 - primary_file, reference_file=None, output_dir="stability_analysis_results",debug=False + primary_file, + reference_file=None, + output_dir="stability_analysis_results", + debug=False, ): print(f"Analyzing latency stability from primary file: {primary_file}") if reference_file: @@ -1551,16 +1554,18 @@ def main(): ) parser.add_argument( - "--debug", - action="store_true", - help="Enable debug mode (default: False)", + "--debug", + action="store_true", + help="Enable debug mode (default: False)", ) # Parse arguments args = parser.parse_args() # Run analysis - analyze_latency_stability(args.primary_file, args.reference_file, args.output_dir, args.debug) + analyze_latency_stability( + args.primary_file, args.reference_file, args.output_dir, args.debug + ) if __name__ == "__main__": From d8f2bb78e8c4239a2108dc87f6baeb0285ea9fcc Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Tue, 24 Jun 2025 22:06:32 -0700 Subject: [PATCH 4/4] setup link Signed-off-by: Yang Wang --- .ci/scripts/benchmark_tooling/analyze_benchmark_stability.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py b/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py index 60af747e8f7..d26ceb840f4 100644 --- a/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py +++ b/.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py @@ -1553,7 +1553,7 @@ def main(): args.reference_file, args.output_dir, args.verbose_level, - args.debug + args.debug, )